nasm.c -- use list helpers

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2009-07-27 16:26:26 +04:00
parent 77df046f0b
commit fcd0a74330

6
nasm.c
View File

@ -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);
}