preproc.c: Use list_reverse helper

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2011-04-13 13:15:02 +04:00
parent 396b5dfe95
commit 3eba69a63a

@ -539,17 +539,11 @@ static size_t nasm_unquote_cstr(char *qstr, enum preproc_token directive)
*/
static Token *reverse_tokens(Token *t)
{
Token *prev = NULL;
Token *next;
Token *prev, *next;
while (t) {
next = t->next;
t->next = prev;
prev = t;
t = next;
}
list_reverse(t, prev, next);
return prev;
return t;
}
/*