fflush(stderr);
}
-void wprint_token() {
+void wprint_token_stdout() {
+ if (tokenType == MOT || tokenType == MOTCLE) {
+ fwprintf(stdout, L"%20s: %ls\n", tokenTypestr[tokenType], token[tokenFound].value);
+ } else {
+ fwprintf(stdout, L"%20s\n", tokenTypestr[tokenType]);
+ }
+ fflush(stdout);
+}
+
+void wprint_token_target() {
if (tokenType == MOT || tokenType == MOTCLE) {
fwprintf(target, L"%20s: %ls\n", tokenTypestr[tokenType], token[tokenFound].value);
} else {
fwprintf(target, L"%20s\n", tokenTypestr[tokenType]);
}
- fflush(target);
}