inpcom.c, inp_add_control_section(), #1/2, emphasise two assertions

This commit is contained in:
rlar 2017-04-20 18:13:00 +02:00
parent 4ff9c0c166
commit 4ad53f0de8
1 changed files with 6 additions and 0 deletions

View File

@ -1398,15 +1398,21 @@ inp_add_control_section(struct line *deck, int *line_number)
found_control = FALSE;
if (!found_run) {
// c === prev_card->li_next
prev_card->li_next = xx_new_line(c, copy("run"), (*line_number)++, 0);
// c === prev_card->li_next->li_next
prev_card = prev_card->li_next;
// c === prev_card->li_next
found_run = TRUE;
}
if (cp_getvar("rawfile", CP_STRING, rawfile)) {
line = tprintf("write %s", rawfile);
// c === prev_card->li_next
prev_card->li_next = xx_new_line(c, line, (*line_number)++, 0);
// c === prev_card->li_next->li_next
prev_card = prev_card->li_next;
// c === prev_card->li_next
}
}