X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=ast.h;fp=ast.h;h=65abffdeaf1bc0485de4c461063735e41ff4f206;hp=a6ff49b29ffe34181d308edaafff1213956962cb;hb=f09c6a5d63faaad1b915868c461b658efd374a34;hpb=794396df792a4eba46ebbcfb364d4311c3a4ca72 diff --git a/ast.h b/ast.h index a6ff49b..65abffd 100644 --- a/ast.h +++ b/ast.h @@ -145,7 +145,7 @@ struct ast_expression : ast_node { ast_expression() {} ast_expression_codegen *codegen; - int vtype; + qc_type vtype; ast_expression *next; /* arrays get a member-count */ size_t count; @@ -173,13 +173,13 @@ struct ast_expression : ast_node { * is like creating a 'float foo', foo serving as the type's name. */ union basic_value_t { - qcfloat_t vfloat; - int vint; - vec3_t vvec; - const char *vstring; - int ventity; + qcfloat_t vfloat; + int vint; + vec3_t vvec; + const char *vstring; + int ventity; ast_function *vfunc; - ast_value *vfield; + ast_value *vfield; }; struct ast_value : ast_expression @@ -216,7 +216,7 @@ struct ast_value : ast_expression bool intrinsic; /* true if associated with intrinsic */ }; -ast_value* ast_value_new(lex_ctx_t ctx, const char *name, int qctype); +ast_value* ast_value_new(lex_ctx_t ctx, const char *name, qc_type qctype); ast_value* ast_value_copy(const ast_value *self); /* This will NOT delete an underlying ast_function */ void ast_value_delete(ast_value*);