]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - parser.h
Fix some things: get all the Quake mods to compile again (I broke binary expressions...
[xonotic/gmqcc.git] / parser.h
index c34d39baba108d68808873630651d5230a3cbaaf..b1c7a2085d298753f848deefc642aabca16df1e4 100644 (file)
--- a/parser.h
+++ b/parser.h
@@ -133,7 +133,9 @@ bool            fold_generate       (fold_t *, ir_builder *);
 ast_expression *fold_op             (fold_t *, const oper_info *, ast_expression **);
 ast_expression *fold_intrin         (fold_t *, const char      *, ast_expression **);
 
-int             fold_cond           (ir_value *, ast_function *, ast_ifthen *);
+ast_expression *fold_superfluous    (ast_expression *, ast_expression *, int);
+int             fold_cond_ifthen    (ir_value *, ast_function *, ast_ifthen  *);
+int             fold_cond_ternary   (ir_value *, ast_function *, ast_ternary *);
 
 /* intrin.c */
 intrin_t       *intrin_init            (parser_t *parser);