mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-21 10:51:10 +00:00
Remove final attribute and bareword. [[definite]] is now old [[final]]. There is no bareword definite either.
This commit is contained in:
parent
26ab792f9c
commit
1e30c2b81d
1 changed files with 2 additions and 4 deletions
6
parser.c
6
parser.c
|
@ -2862,10 +2862,10 @@ static bool parse_qualifiers(parser_t *parser, bool with_local, int *cvq, bool *
|
|||
return false;
|
||||
}
|
||||
}
|
||||
else if (!strcmp(parser_tokval(parser), "final")) {
|
||||
else if (!strcmp(parser_tokval(parser), "definite")) {
|
||||
flags |= AST_FLAG_FINAL_DECL;
|
||||
if (!parser_next(parser) || parser->tok != TOKEN_ATTRIBUTE_CLOSE) {
|
||||
parseerror(parser, "`final` attribute has no parameters, expected `]]`");
|
||||
parseerror(parser, "`definite` attribute has no parameters, expected `]]`");
|
||||
*cvq = CV_WRONG;
|
||||
return false;
|
||||
}
|
||||
|
@ -2974,8 +2974,6 @@ static bool parse_qualifiers(parser_t *parser, bool with_local, int *cvq, bool *
|
|||
had_var = true;
|
||||
else if (!strcmp(parser_tokval(parser), "noref"))
|
||||
had_noref = true;
|
||||
else if (!strcmp(parser_tokval(parser), "final"))
|
||||
flags |= AST_FLAG_FINAL_DECL;
|
||||
else if (!had_const && !had_var && !had_noref && !had_attrib && !had_static && !flags) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue