diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2010-04-09 15:43:03 +0400 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2010-04-10 00:13:57 +0400 |
commit | 367d59e2726866887b75822338fe7387c81ec298 (patch) | |
tree | 1e858e9777640f547fc161b60e518fec3425edfa /preproc.c | |
parent | f32ed14ebd1218377fe02700f81ea39c45af5684 (diff) | |
download | nasm-367d59e2726866887b75822338fe7387c81ec298.tar.gz nasm-367d59e2726866887b75822338fe7387c81ec298.tar.bz2 nasm-367d59e2726866887b75822338fe7387c81ec298.zip |
expand_mmacro: Use list helpers
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'preproc.c')
-rw-r--r-- | preproc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |