va_start(args, format);
fprintf(stdout, format, args);
va_end(args);
+ fflush(stdout);
}
void pr_error(const char *format, ...) {
va_start(args, format);
fprintf(stderr, format, args);
va_end(args);
+ fflush(stderr);
}
#if DEBUG
va_start(args, format);
fprintf(stderr, format, args);
va_end(args);
+ fflush(stderr);
}
#else
void pr_debug(const char *format, ...);
va_start(args, format);
fwprintf(stdout, format, args);
va_end(args);
+ fflush(stdout);
}
void wpr_error(const wchar_t *format, ...) {
va_start(args, format);
fwprintf(stderr, format, args);
va_end(args);
+ fflush(stderr);
}
void wprint_token() {
} else {
fwprintf(target, L"%20s\n", tokenTypestr[tokenType]);
}
+ fflush(target);
}
} else if (tokenType != MOTCLE && tokenType != NPARA && tokenType != SECTION && \
tokenType != SSECTION && tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
+ fflush(stderr);
exit(EXIT_FAILURE);
}
#if DEBUG
analyze_P();
} else if (tokenType != SECTION && tokenType != SSECTION && tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
+ fflush(stderr);
exit(EXIT_FAILURE);
}
} else if (tokenType != SECTION && tokenType != SSECTION && tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
+ fflush(stderr);
exit(EXIT_FAILURE);
}
#if DEBUG
analyze_TEXT();
} else if (tokenType != NPARA && tokenType != SECTION && tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
+ fflush(stderr);
exit(EXIT_FAILURE);
}
} else if (tokenType != NPARA && tokenType != SECTION && tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
+ fflush(stderr);
exit(EXIT_FAILURE);
}
#if DEBUG
analyze_S2();
} else if (tokenType != SECTION && tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
+ fflush(stderr);
exit(EXIT_FAILURE);
}
#if DEBUG
analyze_S1();
} else if (tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
+ fflush(stderr);
exit(EXIT_FAILURE);
}
#if DEBUG
analyze_BODY();
if (tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
+ fflush(stderr);
exit(EXIT_FAILURE);
}
fprintf(stdout, "successful syntactic analysis\n");
#if DEBUG
fprintf(stdout, "leaving %s\n", __func__);
#endif
+ fflush(stdout);
}