]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Properly parse functions without parameters
authorWolfgang Bumiller <wolfgang.linux@bumiller.com>
Thu, 19 Jul 2012 17:53:58 +0000 (19:53 +0200)
committerWolfgang Bumiller <wolfgang.linux@bumiller.com>
Thu, 19 Jul 2012 17:53:58 +0000 (19:53 +0200)
parser.c

index 234cd0ed7b78f8c0eac311d743f58e2da3b4e833..5e4299726141193355d82935d9707330daf33e35 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -92,6 +92,9 @@ ast_value *parser_parse_type(parser_t *parser, bool *isfunc)
                 return NULL;
             }
 
+            if (parser->tok == ')')
+                break;
+
             param = parser_parse_type(parser, &dummy);
             (void)dummy;