From: Wolfgang Bumiller Date: Thu, 26 Jul 2012 21:23:47 +0000 (+0200) Subject: ast_return_new doesn't take an operator, we use INSTR_RETURN always, never INSTR_DONE... X-Git-Tag: 0.1-rc1~395^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1f8ece7f206d2ffd38d8427be00013fcd8777249;p=xonotic%2Fgmqcc.git ast_return_new doesn't take an operator, we use INSTR_RETURN always, never INSTR_DONE for explicit returns --- diff --git a/ast.c b/ast.c index 56db3f9..f6e96c4 100644 --- a/ast.c +++ b/ast.c @@ -200,8 +200,7 @@ void ast_unary_delete(ast_unary *self) mem_d(self); } -ast_return* ast_return_new(lex_ctx ctx, int op, - ast_expression *expr) +ast_return* ast_return_new(lex_ctx ctx, ast_expression *expr) { ast_instantiate(ast_return, ctx, ast_return_delete); ast_expression_init((ast_expression*)self, (ast_expression_codegen*)&ast_return_codegen); diff --git a/ast.h b/ast.h index 86bb183..4f901e8 100644 --- a/ast.h +++ b/ast.h @@ -180,7 +180,6 @@ struct ast_return_s ast_expression *operand; }; ast_return* ast_return_new(lex_ctx ctx, - int op, ast_expression *expr); void ast_return_delete(ast_return*);