From: Dale Weiler Date: Wed, 1 Jan 2014 10:12:21 +0000 (-0500) Subject: Remove final attribute and bareword. [[definite]] is now old [[final]]. There is... X-Git-Tag: xonotic-v0.8.0~26 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=1e30c2b81d0b464a2cb8c7f517860f4193bc1d60;p=xonotic%2Fgmqcc.git Remove final attribute and bareword. [[definite]] is now old [[final]]. There is no bareword definite either. --- diff --git a/parser.c b/parser.c index f531161..bb64f81 100644 --- a/parser.c +++ b/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; }