From: Wolfgang (Blub) Bumiller Date: Thu, 26 Apr 2012 08:28:42 +0000 (+0200) Subject: block and value codegen protos X-Git-Tag: 0.1-rc1~592 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c692794eb59e9ea97ecf47903ce7b7c90eab5268;p=xonotic%2Fgmqcc.git block and value codegen protos --- diff --git a/ast.c b/ast.c index c52a864..5b4b1de 100644 --- 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 1e2f0d1..4cbd453 100644 --- 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 *