]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
ast_return_new doesn't take an operator, we use INSTR_RETURN always, never INSTR_DONE...
authorWolfgang Bumiller <wolfgang.linux@bumiller.com>
Thu, 26 Jul 2012 21:23:47 +0000 (23:23 +0200)
committerWolfgang Bumiller <wolfgang.linux@bumiller.com>
Thu, 26 Jul 2012 21:23:47 +0000 (23:23 +0200)
ast.c
ast.h

diff --git a/ast.c b/ast.c
index 56db3f94f872b678930e934ea9ca679c20bd4b25..f6e96c4f116b0df0f47adad4edaaa63a02f73dfe 100644 (file)
--- 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 86bb18379f277ca1710e8856f1655ef510d40cc3..4f901e894a243eefebb524ca0ba91f7771d04426 100644 (file)
--- 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*);