]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - gmqcc.h
Revert "Smaller memory footprint, 4/8 bytes vs 12/24 for individual token lex_ctx...
[xonotic/gmqcc.git] / gmqcc.h
diff --git a/gmqcc.h b/gmqcc.h
index eb0fc6ac0ca6446d4a67be40488e617836087cde..202ae14f9da3ddf7a431ff65e3e95fc146bbb48e 100644 (file)
--- a/gmqcc.h
+++ b/gmqcc.h
@@ -746,6 +746,10 @@ qcint     code_alloc_field   (code_t *, size_t qcsize);
 void      code_push_statement(code_t *, prog_section_statement *stmt, int linenum);
 void      code_pop_statement (code_t *);
 
+/*
+ * A shallow copy of a lex_file to remember where which ast node
+ * came from.
+ */
 typedef struct {
     const char *file;
     size_t      line;
@@ -796,10 +800,10 @@ extern size_t compile_errors;
 extern size_t compile_Werrors;
 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);
+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);
 void            compile_show_werrors(void);
 
 /*===================================================================*/