Commit Graph

178 Commits

Author SHA1 Message Date
rlar 237406fb02 subckt.c, translate(), #8/8 whitespace and comments 2016-11-20 20:33:21 +01:00
rlar 17fa3a5120 subckt.c, translate(), #7/8 cleanup 2016-11-20 20:33:21 +01:00
rlar ea58e30e91 subckt.c, translate(), #6/8 cleanup 2016-11-20 20:33:20 +01:00
rlar 2a0df8354b subckt.c, translate(), #4/8 trailing 's' is never used 2016-11-20 20:33:17 +01:00
rlar 8563e0e8af subckt.c, translate(), #5/8 don't append trailing whitespace 2016-11-20 20:33:16 +01:00
rlar effa37e944 subckt.c, translate(), #3/8 simplify 2016-11-20 20:20:42 +01:00
rlar c8413a1947 subckt.c, translate(), #2/8 cleanup 2016-11-20 20:20:33 +01:00
rlar 0d91be3916 subckt.c, translate(), #1/8 cleanup 2016-11-20 20:20:22 +01:00
rlar bd46195d43 subckt.c, introduce translate_mod_name() 2016-11-19 14:01:00 +01:00
rlar 83943e7cd6 subckt.c, introduce translate_inst_name()
to abstract the instance name translation during netlist flattening
2016-11-19 14:01:00 +01:00
rlar c0bfb9ca1b subckt.c, introduce translate_node_name() 2016-11-19 14:00:59 +01:00
rlar 4dbffc9991 subckt.c, emphasize instance_name translation
When translating an instance_name in a subcircuit instance 'xfoo'
undconditionally express the exception for 'x' instances, which is:
  x42 --> xsub.x42
but for all others the first char (the devtype) is prepended
  r42 --> r.xsub.r42
2016-11-19 14:00:59 +01:00
rlar 178b6d074a subckt.c, translate(), emphasize instance_name translation 2016-11-19 14:00:59 +01:00
rlar aecf48475e subckt.c, emphasize token separator insertion 2016-11-19 14:00:59 +01:00
rlar 6bb93b68ac subckt.c, devmodtranslate(), dupplicate code 2016-11-19 14:00:59 +01:00
rlar 70dca32c2d undo a bogous hunk from commit "beautify code", Dec 16 2011 2016-11-19 14:00:59 +01:00
rlar 6d774d99b3 subckt.c, devmodtranslate(), rewrite using bxx_ facility 2016-11-19 14:00:59 +01:00
rlar b633362973 subckt.c, translate(), rewrite using bxx facility 2016-11-19 14:00:58 +01:00
rlar 78c611aa64 subckt.c, finishLine(), #6/6 unconditionally transform instance name in i() expression 2016-11-19 13:59:38 +01:00
rlar 30e515cc4d subckt.c, finishLine(), #5/6 move code up into if() body 2016-11-19 13:59:24 +01:00
rlar e54cc664da subckt.c, finishLine(), #4/6 drop condition which is always true 2016-11-19 13:59:15 +01:00
rlar f9e86cf1ee subckt.c, finishLine(), #3/6 drop condition which is always false 2016-11-19 13:59:05 +01:00
rlar 8b6a28789b subckt.c, finishLine(), #2/6 duplicate code into if/else body 2016-11-19 13:58:55 +01:00
rlar 3a79933d9c subckt.c, finishline(), #1/6 minor cleanup 2016-11-19 13:58:41 +01:00
rlar 2852776482 subckt.c, cleanup while() loop 2016-11-19 10:35:31 +01:00
rlar 0982953fca use strchr() instead of strstr() 2016-11-19 10:35:27 +01:00
rlar 77d195dbac subckt.c, numnodes(), #3/3 cleanup 2016-11-05 20:32:57 +01:00
rlar 94d8ca2c41 subckt.c, numnodes(), #2/2 cleanup 2016-11-05 20:32:57 +01:00
rlar 4bd446096e subckt.c, numnodes(), cleanup 2016-11-05 20:32:57 +01:00
rlar fa63b66c81 rename gettok_nc() --> nexttok(), and functionalize it 2016-11-05 20:32:57 +01:00
h_vogt 862df7fadb subckt.c, xpressn.c, spicenum.c, add level information for .subckt entries nupa_scan is totally without level info. This preliminary fix at least lets us decide to issue a warning if subckt have equal names and are on the same level. Still nupa_scan only enters the first entry into its hash table, irrespective of its level. 2016-11-05 20:32:54 +01:00
h_vogt 4234226713 subckt.c, do not put model names into numparam hash table xpressn.c, re-enable error message to alert name redefinition 2016-11-05 20:27:43 +01:00
h_vogt c554f5786a subckt.c, introduce new function inp_deckcopy_oc()
copy a deck
  without li_actual,
  without comment lines
  without .control section
2016-11-05 20:26:32 +01:00
dwarning 24dbbc393d remove the ancient nobjthack option to fake 3-terminal bjt's 2016-11-01 11:56:48 +01:00
dwarning 1e880deff4 allow 5-terminal bjt's in subckt expansion 2016-11-01 11:56:48 +01:00
h_vogt 6a0a6071a0 gettok_nc(&line): like gettok(), move pointer beyond next token in line, but without returning a string, without TMALLOC. Replaces constructs like tfree(gettok(&line)). 2016-10-15 15:06:20 +02:00
h_vogt 33b11f9598 comments improved 2016-08-15 11:26:55 +02:00
rlar d298d5cc2f use memset() instead of deprecated bzero() 2016-07-30 20:58:33 +02:00
rlar 5e04924890 cleanup `skip_ws()' usage 2016-03-22 15:26:11 +01:00
rlar b1d8b99018 skip-ws, #6/6, rename to match inpcom.c 2016-03-22 15:26:10 +01:00
rlar 22875d056b skip-ws, #5/6, use functional style 2016-03-22 15:26:09 +01:00
rlar d12679fccd skip-ws, #4/6, drop `TEMPORARY_SKIP_WS_X0'
use TEMPORARY_SKIP_WS_X1 instead of TEMPORARY_SKIP_WS_X0
2016-03-22 15:26:08 +01:00
rlar a86f2068c8 skip-ws, #3/6, use TEMPORARY macros, obj-invariant 2016-03-22 15:26:06 +01:00
rlar 6d1171ad6f skip-ws, #2/6, introduce "ngspice/stringskip.h"
with some temporary macros to skip whitespace
2016-03-22 15:26:05 +01:00
rlar 1ad65120d5 skip-ws, #1/6, prepare for rewrite, obj-invariant 2016-03-22 15:26:04 +01:00
rlar 4c1c95e20f everywhere, use `TMALLOC()' instead of `alloc()' 2016-03-21 21:22:07 +01:00
rlar 726d0be34c use char variants of the <ctype.h> toxxxx() family 2016-03-09 20:24:36 +01:00
rlar 71a7c3459b use char variants of the <ctype.h> isxxxx() family 2016-03-09 20:24:36 +01:00
rlar b663731379 rewrite model_bin_match(), rename --> model_name_match() 2014-08-09 18:17:34 +02:00
rlar 24a22f1398 subckt.c, treat "0" and "null" like any other global node 2014-07-26 20:23:26 +02:00