inpcom.c, cleanup

This commit is contained in:
rlar 2013-07-31 22:08:56 +02:00
parent 0420c0604b
commit 366d79b9b9
1 changed files with 6 additions and 9 deletions

View File

@ -2344,8 +2344,10 @@ inp_remove_excess_ws(struct line *c)
static struct line *
expand_section_ref(struct line *c, char *line, char *dir_name)
expand_section_ref(struct line *c, char *dir_name)
{
char *line = c->li_line;
char *s, *t, *y;
s = skip_non_ws(line);
@ -2444,14 +2446,9 @@ expand_section_ref(struct line *c, char *line, char *dir_name)
static void
expand_section_references(struct line *c, char *dir_name)
{
for (; c; c = c->li_next) {
char *line = c->li_line;
if (ciprefix(".lib", line)) {
c = expand_section_ref(c, line, dir_name);
}
}
for (; c; c = c->li_next)
if (ciprefix(".lib", c->li_line))
c = expand_section_ref(c, dir_name);
}