]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - intrin.h
don't generate storep for vector field unless it's an ent field
[xonotic/gmqcc.git] / intrin.h
index d3d2df336f4711e9eeebd276c4a1fc532e399a44..fe9ee78631d38735d4d742113a66dc75270c54bd 100644 (file)
--- a/intrin.h
+++ b/intrin.h
@@ -2,7 +2,7 @@
 #define GMQCC_INTRIN_HDR
 #include "gmqcc.h"
 
-struct fold_t;
+struct fold;
 struct parser_t;
 
 struct ast_function;
@@ -23,14 +23,14 @@ struct intrin {
     intrin(parser_t *parser);
 
     ast_expression *debug_typestring();
-    ast_expression *fold(ast_value *val, ast_expression **exprs);
+    ast_expression *do_fold(ast_value *val, ast_expression **exprs);
     ast_expression *func_try(size_t offset, const char *compare);
     ast_expression *func_self(const char *name, const char *from);
     ast_expression *func(const char *name);
 
 protected:
     lex_ctx_t ctx() const;
-    ast_function *value(ast_value **out, const char *name, qcint_t vtype);
+    ast_function *value(ast_value **out, const char *name, qc_type vtype);
     void reg(ast_value *const value, ast_function *const func);
 
     ast_expression *nullfunc();
@@ -65,10 +65,9 @@ protected:
 
 private:
     parser_t *m_parser;
-    fold_t *m_fold;
+    fold *m_fold;
     std::vector<intrin_func_t> m_intrinsics;
     std::vector<ast_expression*> m_generated;
-
 };