inpcom.c, abstraction, introduce expand_section_ref()
This commit is contained in:
parent
6c30ad1b1e
commit
0a2f5d2e55
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue