]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.c
Experimental support for implicit return assignments. This closes #107. To enable...
[xonotic/gmqcc.git] / ast.c
diff --git a/ast.c b/ast.c
index 01a08e5966072e3222a283c337483a718f453ed0..41dfb295614b9bb086382034fca62d13af71c749 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -1101,9 +1101,9 @@ ast_function* ast_function_new(lex_ctx ctx, const char *name, ast_value *vtype)
     vtype->hasvalue = true;
     vtype->constval.vfunc = self;
 
-    self->varargs     = NULL;
-    self->argc        = NULL;
-    self->fixedparams = NULL;
+    self->varargs          = NULL;
+    self->argc             = NULL;
+    self->fixedparams      = NULL;
 
     return self;
 }
@@ -1419,7 +1419,7 @@ error: /* clean up */
     return false;
 }
 
-static bool ast_local_codegen(ast_value *self, ir_function *func, bool param)
+bool ast_local_codegen(ast_value *self, ir_function *func, bool param)
 {
     ir_value *v = NULL;