-void con_close();
-void con_color(int state);
-void con_init ();
-void con_reset();
-int con_change(const char *out, const char *err);
-int con_verr (const char *fmt, va_list va);
-int con_vout (const char *fmt, va_list va);
-int con_err (const char *fmt, ...);
-int con_out (const char *fmt, ...);
+void con_close ();
+void con_init ();
+void con_reset ();
+void con_color (int);
+int con_change(const char *, const char *);
+int con_verr (const char *, va_list);
+int con_vout (const char *, va_list);
+int con_err (const char *, ...);
+int con_out (const char *, ...);
+
+/* error/warning interface */
+extern size_t compile_errors;
+extern size_t compile_warnings;
+
+void /********/ compile_error (lex_ctx ctx, /*LVL_ERROR*/ const char *msg, ...);
+void /********/ vcompile_error (lex_ctx ctx, /*LVL_ERROR*/ const char *msg, va_list ap);
+bool GMQCC_WARN compile_warning (lex_ctx ctx, int warntype, const char *fmt, ...);
+bool GMQCC_WARN vcompile_warning(lex_ctx ctx, int warntype, const char *fmt, va_list ap);