From 5944a2505a9c4e9788655ee515c4323d1c094e56 Mon Sep 17 00:00:00 2001 From: rlar Date: Fri, 18 Jul 2014 17:53:43 +0200 Subject: [PATCH] subckt.c, doit(), rename `lc' --> `prev_of_c' --- src/frontend/subckt.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/frontend/subckt.c b/src/frontend/subckt.c index 0e5816d9c..b126da74a 100644 --- a/src/frontend/subckt.c +++ b/src/frontend/subckt.c @@ -542,7 +542,7 @@ doit(struct line *deck, wordlist *modnames) { /* Second pass: do the replacements. */ do { /* while (!error && numpasses-- && gotone) */ struct line *c = deck; - struct line *lc = NULL; + struct line *prev_of_c = NULL; gotone = FALSE; while (c) { if (ciprefix(invoke, c->li_line)) { /* found reference to .subckt (i.e. component with refdes X) */ @@ -590,7 +590,7 @@ doit(struct line *deck, wordlist *modnames) { * instance of a subckt that is defined above at higher level. */ if (!sss) { - lc = c; + prev_of_c = c; c = c->li_next; tfree(tofree); tfree(tofree2); @@ -621,8 +621,8 @@ doit(struct line *deck, wordlist *modnames) { struct line *savenext = c->li_next; if (use_numparams == FALSE) { /* old style: c will drop a dangling pointer: memory leak */ - if (lc) - lc->li_next = lcc; + if (prev_of_c) + prev_of_c->li_next = lcc; else deck = lcc; } else { @@ -635,12 +635,12 @@ doit(struct line *deck, wordlist *modnames) { lcc->li_next = savenext; } c = lcc->li_next; - lc = lcc; + prev_of_c = lcc; tfree(tofree); tfree(tofree2); } /* if (ciprefix(invoke, c->li_line)) . . . */ else { - lc = c; + prev_of_c = c; c = c->li_next; } }