better test loop

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-02 18:49:50 +01:00
parent b5970707c0
commit 5bef2f2870

View file

@ -25,8 +25,8 @@ bool preprocess(const char *filename)
printf("\n"); printf("\n");
else if (tok >= TOKEN_START && tok < TOKEN_EOF) else if (tok >= TOKEN_START && tok < TOKEN_EOF)
printf("%s", lex->tok.value); printf("%s", lex->tok.value);
else else if (tok < TOKEN_START)
printf("%c", tok); printf("%c", tok); /* these are characters */
#endif #endif
} while (tok < TOKEN_EOF); } while (tok < TOKEN_EOF);