]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
fixing that comment...
authorWolfgang Bumiller <wry.git@bumiller.com>
Wed, 29 May 2013 14:56:39 +0000 (16:56 +0200)
committerWolfgang Bumiller <wry.git@bumiller.com>
Wed, 29 May 2013 14:56:39 +0000 (16:56 +0200)
ast.c
parser.c

diff --git a/ast.c b/ast.c
index 4af3e3cafbd894c7b3beda8e736c0f48aec743ff..35b1a7dfa26b850f0c7103ec61b23da9792a13fb 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -1628,7 +1628,7 @@ bool ast_function_codegen(ast_function *self, ir_builder *ir)
         return true;
     }
 
-    // have a local return value variable?
+    /* have a local return value variable? */
     if (self->return_value) {
         if (!ast_local_codegen(self->return_value, self->ir_func, false))
             return false;
index 582379374a62f613b05f9e190bdbcfcf3c483de9..27c694d406955059e8400eb121c4dfb223734186 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -3731,7 +3731,7 @@ static bool parse_statement(parser_t *parser, ast_block *block, ast_expression *
             }
             return parse_typedef(parser);
         }
-        parseerror(parser, "Unexpected keyword");
+        parseerror(parser, "Unexpected keyword: `%s'", parser_tokval(parser));
         return false;
     }
     else if (parser->tok == '{')