doit, rewrite

This commit is contained in:
rlar 2012-03-11 10:50:58 +01:00
parent b29b3afee2
commit a69ddd9ad0
1 changed files with 3 additions and 2 deletions

View File

@ -553,9 +553,10 @@ doit(struct line *deck) {
error = 0;
/* Second pass: do the replacements. */
do { /* while (!error && numpasses-- && gotone) */
struct line *c, *lc;
struct line *c = deck;
struct line *lc = NULL;
gotone = FALSE;
for (c = deck, lc = NULL; c; ) {
while (c) {
if (ciprefix(invoke, c->li_line)) { /* found reference to .subckt (i.e. component with refdes X) */
char *tofree, *tofree2, *s, *t;