From: Wolfgang Bumiller Date: Wed, 29 May 2013 14:56:39 +0000 (+0200) Subject: fixing that comment... X-Git-Tag: v0.3.0~151^2~35 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=9167de1631b078c44ac5d03e135d291ffb0a965a fixing that comment... --- diff --git a/ast.c b/ast.c index 4af3e3c..35b1a7d 100644 --- 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; diff --git a/parser.c b/parser.c index 5823793..27c694d 100644 --- 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 == '{')