inpcom.c, expand_section_ref(), simplify

This commit is contained in:
rlar
2017-04-23 19:33:49 +02:00
parent ab76b8d12c
commit 942640ba5c
+2 -4
View File
@@ -2424,13 +2424,11 @@ expand_section_ref(struct line *c, char *dir_name)
struct line *t = section_def; struct line *t = section_def;
for (; t; t=t->li_next) { for (; t; t=t->li_next) {
newl = xx_new_line(NULL, copy(t->li_line), t->li_linenum, t->li_linenum_orig); newl = xx_new_line(NULL, copy(t->li_line), t->li_linenum, t->li_linenum_orig);
if (t != section_def) if (t == section_def) {
cend->li_next = newl;
else {
cend->li_next = newl;
newl->li_line[0] = '*'; newl->li_line[0] = '*';
newl->li_line[1] = '<'; newl->li_line[1] = '<';
} }
cend->li_next = newl;
cend = newl; cend = newl;
if(ciprefix(".endl", t->li_line)) if(ciprefix(".endl", t->li_line))
break; break;