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");
else if (tok >= TOKEN_START && tok < TOKEN_EOF)
printf("%s", lex->tok.value);
else
printf("%c", tok);
else if (tok < TOKEN_START)
printf("%c", tok); /* these are characters */
#endif
} while (tok < TOKEN_EOF);