From 367d59e2726866887b75822338fe7387c81ec298 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Fri, 9 Apr 2010 15:43:03 +0400 Subject: [PATCH] expand_mmacro: Use list helpers Signed-off-by: Cyrill Gorcunov --- preproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/preproc.c b/preproc.c index e0bfa0a5..ac6c1f91 100644 --- a/preproc.c +++ b/preproc.c @@ -4421,7 +4421,7 @@ static int expand_mmacro(Token * tline) m->next_active = istk->mstk; istk->mstk = m; - for (l = m->expansion; l; l = l->next) { + list_for_each(l, m->expansion) { Token **tail; ll = nasm_malloc(sizeof(Line)); @@ -4430,7 +4430,7 @@ static int expand_mmacro(Token * tline) istk->expansion = ll; tail = &ll->first; - for (t = l->first; t; t = t->next) { + list_for_each(t, l->first) { Token *x = t; switch (t->type) { case TOK_PREPROC_Q: -- 2.11.4.GIT