From 9eddd1d80f43a28043d2691c84a9bb791706c893 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 24 Jun 2017 20:13:17 +0200 Subject: [PATCH] inpcom.c, inp_add_control_section(), #2/2, rewrite xx_new_line() insertion --- src/frontend/inpcom.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index de0ab81f8..8cfd1f574 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -1398,21 +1398,13 @@ 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 + prev_card = prev_card->li_next = xx_new_line(prev_card->li_next, copy("run"), (*line_number)++, 0); 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 + prev_card = prev_card->li_next = xx_new_line(prev_card->li_next, line, (*line_number)++, 0); } }