#include "token_t.h"
-
void diagnosticf(const char *fmt, ...);
void errorf(source_position_t pos, const char *fmt, ...);
void warningf(source_position_t pos, const char *fmt, ...);
-extern bool found_error;
+extern unsigned diagnostic_count;
+extern unsigned error_count;
+extern unsigned warning_count;
+
+/* true if warnings should be treated as errors */
+extern bool warnings_are_errors;
#endif