]> granicus.if.org Git - yasm/commitdiff
Now that whitespace is mostly preserved, no need for the next token for
authorMichael Urman <mu@tortall.net>
Sun, 17 Mar 2002 05:23:56 +0000 (05:23 -0000)
committerMichael Urman <mu@tortall.net>
Sun, 17 Mar 2002 05:23:56 +0000 (05:23 -0000)
guessing whitespace insertion.

svn path=/trunk/yasm/; revision=514

modules/preprocs/yapp/yapp-preproc.c
src/preprocs/yapp/yapp-preproc.c

index 38bf9eac1f4d79fc900f24db12509e1ac61043cb..f38ca02226640a510243c7035ca81f50b29af7ff 100644 (file)
@@ -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);
index 38bf9eac1f4d79fc900f24db12509e1ac61043cb..f38ca02226640a510243c7035ca81f50b29af7ff 100644 (file)
@@ -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);