]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
block and value codegen protos
authorWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 26 Apr 2012 08:28:42 +0000 (10:28 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 26 Apr 2012 08:28:50 +0000 (10:28 +0200)
ast.c
ast.h

diff --git a/ast.c b/ast.c
index c52a8644556ec58312c8512fc647c153f6c19e31..5b4b1de228c95244430d9a65570b2f9e6e6553c8 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -181,4 +181,13 @@ void ast_function_delete(ast_function *self)
 /* AST codegen aprt
  */
 
-/* TODO */
+/* Some dummies so it compiles... */
+bool ast_value_codegen(ast_value *self, ast_function *func, ir_value **out)
+{
+    return false;
+}
+
+bool ast_block_codegen(ast_block *self, ast_function *func, ir_value **out)
+{
+    return false;
+}
diff --git a/ast.h b/ast.h
index 1e2f0d1abfd960aa9002dcf250771ecc32c1f6ae..4cbd453411e709d007f59c04cd18e2113c7f407f 100644 (file)
--- a/ast.h
+++ b/ast.h
@@ -148,7 +148,7 @@ void ast_block_delete(ast_block*);
 MEM_VECTOR_PROTO(ast_block, ast_value*, locals);
 MEM_VECTOR_PROTO(ast_block, ast_expression*, exprs);
 
-bool ast_block_codegen(ast_block*, ir_function*, ir_value**);
+bool ast_block_codegen(ast_block*, ast_function*, ir_value**);
 
 /* Function
  *