From f9031559b712a269294d1dd1d6931fcf5f6236b8 Mon Sep 17 00:00:00 2001 From: rlar Date: Wed, 31 Aug 2016 20:01:56 +0200 Subject: [PATCH] rewrite in terms if line_nconc(), FIXME, why reverse ? --- src/frontend/inp.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/frontend/inp.c b/src/frontend/inp.c index 1284b8570..582bafe70 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -717,19 +717,7 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile) options (comfile == FALSE, filled in from circuit with .OPTIONS) into options, thus keeping com_options, options is loaded into circuit and freed when circuit is removed */ - if (!options && com_options) - options = inp_deckcopy(com_options); - else if (options && com_options) { - /* add a copy from com_options to end of options */ - struct line *new_options = options; - while (options) { - if (!options->li_next) - break; - options = options->li_next; - } - options->li_next = inp_deckcopy(com_options); - options = new_options; - } + options = line_nconc(options, inp_deckcopy(com_options)); options = line_reverse(options); /* prepare parse trees from 'temper' expressions */