X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=parse.c;fp=parse.c;h=d2c90630b098ab34aac042bbf503394ecda550d8;hp=3555035848a11bdb8c597de1d162accb2c652385;hb=ebe77805eb38e16b43cef6cdec13fa1bf7548f7a;hpb=76a6ad2d96d67deba2e404c46954aa678d0def4b diff --git a/parse.c b/parse.c index 3555035..d2c9063 100644 --- a/parse.c +++ b/parse.c @@ -355,7 +355,7 @@ int parse_tree(struct lex_file *file) { } \ if (NAME != 'z') { \ if (token != ',' && token != ' ') { \ - error(ERROR_PARSE, "%s:%d invalid constant initializer element %c for vector (missing spaces, or comma delimited list?)\n", NAME, file->name, file->line); \ + error(ERROR_PARSE, "%s:%d invalid constant initializer element %c for vector (missing spaces, or comma delimited list?)\n", file->name, file->line, NAME); \ } \ } else if (token != '}') { \ error(ERROR_PARSE, "%s:%d Expected `}` on end of constant initialization for vector\n", file->name, file->line); \ @@ -393,7 +393,6 @@ int parse_tree(struct lex_file *file) { case TOKEN_ENTITY: case TOKEN_FLOAT: - if (!isdigit(token)) error(ERROR_PARSE, "%s:%d Expected numeric constant for float constant\n"); break;