inpcom.c, inp_reorder_params_subckt(), reorder
This commit is contained in:
parent
f1380ab114
commit
53e83cdee3
|
|
@ -3891,16 +3891,17 @@ inp_reorder_params_subckt(struct names *subckt_w_params, struct line *subckt_car
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ciprefix(".para", curr_line)) {
|
if (ciprefix(".para", curr_line)) {
|
||||||
|
prev_card->li_next = c->li_next;
|
||||||
|
|
||||||
if (first_param_card)
|
if (first_param_card)
|
||||||
last_param_card->li_next = c;
|
last_param_card->li_next = c;
|
||||||
else
|
else
|
||||||
first_param_card = c;
|
first_param_card = c;
|
||||||
|
|
||||||
last_param_card = c;
|
last_param_card = c;
|
||||||
prev_card->li_next = c->li_next;
|
|
||||||
c = c->li_next;
|
|
||||||
|
|
||||||
last_param_card->li_next = NULL;
|
last_param_card->li_next = NULL;
|
||||||
|
c = prev_card->li_next;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -3946,16 +3947,17 @@ inp_reorder_params(struct names *subckt_w_params, struct line *list_head)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ciprefix(".para", curr_line)) {
|
if (ciprefix(".para", curr_line)) {
|
||||||
|
prev_card->li_next = c->li_next;
|
||||||
|
|
||||||
if (first_param_card)
|
if (first_param_card)
|
||||||
last_param_card->li_next = c;
|
last_param_card->li_next = c;
|
||||||
else
|
else
|
||||||
first_param_card = c;
|
first_param_card = c;
|
||||||
|
|
||||||
last_param_card = c;
|
last_param_card = c;
|
||||||
prev_card->li_next = c->li_next;
|
|
||||||
c = c->li_next;
|
|
||||||
|
|
||||||
last_param_card->li_next = NULL;
|
last_param_card->li_next = NULL;
|
||||||
|
c = prev_card->li_next;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue