+ vfprintf(stderr, msg, ap);
+ fprintf (stderr, "\n");
+}
+
+void printmsg(int level, const char *name, size_t line, const char *msgtype, const char *msg, ...)
+{
+ va_list va;
+ va_start(va, msg);
+ vprintmsg(level, name, line, msgtype, msg, va);
+ va_end (va);
+}
+
+void cvprintmsg(lex_ctx ctx, int lvl, const char *msgtype, const char *msg, va_list ap)
+{
+ vprintmsg(lvl, ctx.file, ctx.line, msgtype, msg, ap);
+}