From: Michael Urman Date: Sun, 17 Mar 2002 05:23:56 +0000 (-0000) Subject: Now that whitespace is mostly preserved, no need for the next token for X-Git-Tag: v0.1.0~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9259c6ea656ae7eac959f5aba0a503cd53231550;p=yasm Now that whitespace is mostly preserved, no need for the next token for guessing whitespace insertion. svn path=/trunk/yasm/; revision=514 --- diff --git a/modules/preprocs/yapp/yapp-preproc.c b/modules/preprocs/yapp/yapp-preproc.c index 38bf9eac..f38ca022 100644 --- a/modules/preprocs/yapp/yapp-preproc.c +++ b/modules/preprocs/yapp/yapp-preproc.c @@ -618,9 +618,7 @@ yapp_preproc_input(char *buf, size_t max_size) /* convert saved stuff into output. we either have enough, or are EOF */ while (n < max_size && saved_length) { - source *next; src = SLIST_FIRST(&source_head); - next = SLIST_NEXT(src, next); if (max_size - n /* - 1 */ >= strlen(src->token.str)) { strcpy(buf+n, src->token.str); n += strlen(src->token.str); diff --git a/src/preprocs/yapp/yapp-preproc.c b/src/preprocs/yapp/yapp-preproc.c index 38bf9eac..f38ca022 100644 --- a/src/preprocs/yapp/yapp-preproc.c +++ b/src/preprocs/yapp/yapp-preproc.c @@ -618,9 +618,7 @@ yapp_preproc_input(char *buf, size_t max_size) /* convert saved stuff into output. we either have enough, or are EOF */ while (n < max_size && saved_length) { - source *next; src = SLIST_FIRST(&source_head); - next = SLIST_NEXT(src, next); if (max_size - n /* - 1 */ >= strlen(src->token.str)) { strcpy(buf+n, src->token.str); n += strlen(src->token.str);