]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.h
renaming ast_function::vtype to function_type
[xonotic/gmqcc.git] / ast.h
diff --git a/ast.h b/ast.h
index f348e4b0309bac100b0b15d92444390324f3c802..dcfffbafeee7d5fad6b56db53c9b7947fdb18b48 100644 (file)
--- a/ast.h
+++ b/ast.h
@@ -141,10 +141,9 @@ typedef bool ast_expression_codegen(ast_expression*,
  * type `expression`, so the ast_ident's codegen would search for
  * variables through the environment (or functions, constants...).
  */
-struct ast_expression {
+struct ast_expression : ast_node {
     ast_expression() {}
 
-    ast_node                node;
     ast_expression_codegen *codegen;
     int                     vtype;
     ast_expression         *next;
@@ -625,7 +624,7 @@ struct ast_function
 {
     ast_node node;
 
-    ast_value *vtype;
+    ast_value  *function_type;
     const char *name;
 
     int builtin;