X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=intrin.h;h=fe9ee78631d38735d4d742113a66dc75270c54bd;hp=d3d2df336f4711e9eeebd276c4a1fc532e399a44;hb=047ecd426f4068566a2db97a894d00d98c66f345;hpb=7e0e041527e812a112635fe511fb1ad566b6c7fe diff --git a/intrin.h b/intrin.h index d3d2df3..fe9ee78 100644 --- 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 m_intrinsics; std::vector m_generated; - };