with fprintf().
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
__func__,
tokenTypestr[tokenType]);
}
__func__,
tokenTypestr[tokenType]);
}
tokenType = FIN;
exit(EXIT_FAILURE);
}
tokenType = FIN;
exit(EXIT_FAILURE);
}
va_start(args, format);
fprintf(stdout, format, args);
va_end(args);
va_start(args, format);
fprintf(stdout, format, args);
va_end(args);
}
void pr_error(const char *format, ...) {
}
void pr_error(const char *format, ...) {
va_start(args, format);
fprintf(stderr, format, args);
va_end(args);
va_start(args, format);
fprintf(stderr, format, args);
va_end(args);
va_start(args, format);
fprintf(stderr, format, args);
va_end(args);
va_start(args, format);
fprintf(stderr, format, args);
va_end(args);
}
#else
void pr_debug(const char *format, ...);
}
#else
void pr_debug(const char *format, ...);
va_start(args, format);
fwprintf(stdout, format, args);
va_end(args);
va_start(args, format);
fwprintf(stdout, format, args);
va_end(args);
}
void wpr_error(const wchar_t *format, ...) {
}
void wpr_error(const wchar_t *format, ...) {
va_start(args, format);
fwprintf(stderr, format, args);
va_end(args);
va_start(args, format);
fwprintf(stderr, format, args);
va_end(args);
} else {
fwprintf(target, L"%20s\n", tokenTypestr[tokenType]);
}
} else {
fwprintf(target, L"%20s\n", tokenTypestr[tokenType]);
}
} else if (tokenType != MOTCLE && tokenType != NPARA && tokenType != SECTION && \
tokenType != SSECTION && tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
} else if (tokenType != MOTCLE && tokenType != NPARA && tokenType != SECTION && \
tokenType != SSECTION && tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
exit(EXIT_FAILURE);
}
#if DEBUG
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]);
analyze_P();
} else if (tokenType != SECTION && tokenType != SSECTION && tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
exit(EXIT_FAILURE);
}
} else if (tokenType != SECTION && tokenType != SSECTION && tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
exit(EXIT_FAILURE);
}
} else if (tokenType != SECTION && tokenType != SSECTION && tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
exit(EXIT_FAILURE);
}
#if DEBUG
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]);
analyze_TEXT();
} else if (tokenType != NPARA && tokenType != SECTION && tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
exit(EXIT_FAILURE);
}
} else if (tokenType != NPARA && tokenType != SECTION && tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
exit(EXIT_FAILURE);
}
} else if (tokenType != NPARA && tokenType != SECTION && tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
exit(EXIT_FAILURE);
}
#if DEBUG
exit(EXIT_FAILURE);
}
#if DEBUG
analyze_S2();
} else if (tokenType != SECTION && tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
analyze_S2();
} else if (tokenType != SECTION && tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
exit(EXIT_FAILURE);
}
#if DEBUG
exit(EXIT_FAILURE);
}
#if DEBUG
analyze_S1();
} else if (tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
analyze_S1();
} else if (tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
exit(EXIT_FAILURE);
}
#if DEBUG
exit(EXIT_FAILURE);
}
#if DEBUG
analyze_BODY();
if (tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
analyze_BODY();
if (tokenType != FIN) {
fprintf(stderr, "%s follows error on %s\n", __func__, tokenTypestr[tokenType]);
exit(EXIT_FAILURE);
}
fprintf(stdout, "successful syntactic analysis\n");
#if DEBUG
fprintf(stdout, "leaving %s\n", __func__);
#endif
exit(EXIT_FAILURE);
}
fprintf(stdout, "successful syntactic analysis\n");
#if DEBUG
fprintf(stdout, "leaving %s\n", __func__);
#endif