inpcom.c, abstraction, introduce expand_section_ref()

This commit is contained in:
rlar 2013-08-03 21:45:40 +02:00
parent 6c30ad1b1e
commit 0a2f5d2e55
1 changed files with 10 additions and 2 deletions

View File

@ -2359,7 +2359,15 @@ expand_section_references(struct line *c, char *dir_name)
char *line = c->li_line;
if (ciprefix(".lib", line)) {
c = expand_section_ref(c, line, dir_name);
}
}
}
static struct line *
expand_section_ref(struct line *c, char *line, char *dir_name)
{
char *s, *t, *y;
s = skip_non_ws(line);
@ -2442,8 +2450,8 @@ expand_section_references(struct line *c, char *dir_name)
*t = keep_char1;
*z = keep_char2;
}
}
}
return c;
}