mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-18 16:25:05 +08:00
nasm.c -- use list helpers
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
77df046f0b
commit
fcd0a74330
6
nasm.c
6
nasm.c
@ -284,7 +284,7 @@ static void emit_dependencies(StrList *list)
|
||||
}
|
||||
|
||||
linepos = fprintf(deps, "%s:", depend_target);
|
||||
for (l = list; l; l = l->next) {
|
||||
list_for_each(l, list) {
|
||||
len = strlen(l->str);
|
||||
if (linepos + len > 62) {
|
||||
fprintf(deps, " \\\n ");
|
||||
@ -295,11 +295,9 @@ static void emit_dependencies(StrList *list)
|
||||
}
|
||||
fprintf(deps, "\n\n");
|
||||
|
||||
for (l = list; l; l = nl) {
|
||||
list_for_each_safe(l, nl, list) {
|
||||
if (depend_emit_phony)
|
||||
fprintf(deps, "%s:\n\n", l->str);
|
||||
|
||||
nl = l->next;
|
||||
nasm_free(l);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user