|
|
|
@ -149,7 +149,7 @@ collect_global_nodes(struct line *c) |
|
|
|
for (; c; c = c->li_next) |
|
|
|
if (ciprefix(".global", c->li_line)) { |
|
|
|
char *s = c->li_line; |
|
|
|
gettok_nc(&s); |
|
|
|
s = nexttok(s); |
|
|
|
while (*s) { |
|
|
|
char *t = skip_non_ws(s); |
|
|
|
global_nodes[num_global_nodes++] = copy_substring(s, t); |
|
|
|
@ -268,7 +268,7 @@ inp_subcktexpand(struct line *deck) { |
|
|
|
|
|
|
|
if (ciprefix(model, c->li_line)) { |
|
|
|
char *s = c->li_line; |
|
|
|
gettok_nc(&s); /* discard the model keyword */ |
|
|
|
s = nexttok(s); /* discard the model keyword */ |
|
|
|
modnames = wl_cons(gettok(&s), modnames); |
|
|
|
} /* model name finding routine */ |
|
|
|
} |
|
|
|
@ -480,7 +480,7 @@ doit(struct line *deck, wordlist *modnames) { |
|
|
|
|
|
|
|
sss = TMALLOC(struct subs, 1); |
|
|
|
|
|
|
|
gettok_nc(&s); |
|
|
|
s = nexttok(s); |
|
|
|
|
|
|
|
sss->su_name = gettok(&s); |
|
|
|
sss->su_args = copy(s); |
|
|
|
@ -613,7 +613,7 @@ doit(struct line *deck, wordlist *modnames) { |
|
|
|
/* prepend the translated model names to the list `modnames' */ |
|
|
|
modnames = modtranslate(su_deck, scname, modnames); |
|
|
|
|
|
|
|
gettok_nc(&t); /* Throw out the subcircuit refdes */ |
|
|
|
t = nexttok(t); /* Throw out the subcircuit refdes */ |
|
|
|
|
|
|
|
/* now invoke translate, which handles the remainder of the |
|
|
|
* translation. |
|
|
|
@ -1512,7 +1512,7 @@ numnodes(char *name, struct subs *subs, wordlist const *modnames) |
|
|
|
i = 0; |
|
|
|
s = buf; |
|
|
|
gotit = 0; |
|
|
|
gettok_nc(&s); /* Skip component name */ |
|
|
|
s = nexttok(s); /* Skip component name */ |
|
|
|
while ((i <= n) && (*s) && !gotit) { |
|
|
|
t = gettok_node(&s); /* get nodenames . . . */ |
|
|
|
for (wl = modnames; wl; wl = wl->wl_next) |
|
|
|
@ -1606,7 +1606,7 @@ modtranslate(struct line *c, char *subname, wordlist *new_modnames) |
|
|
|
#endif |
|
|
|
|
|
|
|
/* swallow ".model" */ |
|
|
|
gettok_nc(&t); |
|
|
|
t = nexttok(t); |
|
|
|
|
|
|
|
model_name = gettok(&t); |
|
|
|
|
|
|
|
|