]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
quotes around the variable name in some messages
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 19:35:47 +0000 (21:35 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 19:35:47 +0000 (21:35 +0200)
parser.c

index 1e5c959127b34a3639bd8182aed71c456f92969d..aa470f1e59deedcb8f0e72f085d356e95f24a3eb 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -1796,14 +1796,14 @@ static bool parser_variable(parser_t *parser, ast_block *localblock)
         if (!isfunc) {
             if (!localblock && (olddecl = parser_find_global(parser, parser_tokval(parser)))) {
                 ast_value_delete(var);
-                parseerror(parser, "global %s already declared here: %s:%i",
+                parseerror(parser, "global `%s` already declared here: %s:%i",
                            parser_tokval(parser), ast_ctx(olddecl).file, (int)ast_ctx(olddecl).line);
                 return false;
             }
 
             if (localblock && (olddecl = parser_find_local(parser, parser_tokval(parser), parser->blocklocal))) {
                 ast_value_delete(var);
-                parseerror(parser, "local %s already declared here: %s:%i",
+                parseerror(parser, "local `%s` already declared here: %s:%i",
                            parser_tokval(parser), ast_ctx(olddecl).file, (int)ast_ctx(olddecl).line);
                 return false;
             }