mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 05:47:42 +02:00
inpcom.c, inp_add_control_section(), emphasise two assertions
This commit is contained in:
@@ -1398,8 +1398,10 @@ inp_add_control_section(struct line *deck, int *line_number)
|
|||||||
found_control = FALSE;
|
found_control = FALSE;
|
||||||
|
|
||||||
if (!found_run) {
|
if (!found_run) {
|
||||||
|
// prev_card->li_next === c
|
||||||
prev_card->li_next = xx_new_line(c, copy("run"), (*line_number)++, 0);
|
prev_card->li_next = xx_new_line(c, copy("run"), (*line_number)++, 0);
|
||||||
prev_card = prev_card->li_next;
|
prev_card = prev_card->li_next;
|
||||||
|
// again: prev_card->li_next === c
|
||||||
found_run = TRUE;
|
found_run = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user