subckt.c, cleanup `doit()'
This commit is contained in:
parent
650352e3e8
commit
d6106cfbfc
|
|
@ -491,13 +491,13 @@ doit(struct line *deck, wordlist *modnames) {
|
||||||
|
|
||||||
/* cut the whole .subckt ... .ends sequence from the deck chain */
|
/* cut the whole .subckt ... .ends sequence from the deck chain */
|
||||||
|
|
||||||
line_free_x(c, FALSE);
|
line_free_x(c, FALSE); /* drop the .subckt card */
|
||||||
c = ends->li_next;
|
c = ends->li_next;
|
||||||
|
|
||||||
if (prev_of_c)
|
if (prev_of_c)
|
||||||
prev_of_c->li_next = ends->li_next;
|
prev_of_c->li_next = c;
|
||||||
else
|
else
|
||||||
deck = ends->li_next;
|
deck = c;
|
||||||
|
|
||||||
if (use_numparams == FALSE) {
|
if (use_numparams == FALSE) {
|
||||||
line_free_x(ends, FALSE); /* drop the .ends card */
|
line_free_x(ends, FALSE); /* drop the .ends card */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue