From 1e30c2b81d0b464a2cb8c7f517860f4193bc1d60 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Wed, 1 Jan 2014 05:12:21 -0500 Subject: [PATCH] Remove final attribute and bareword. [[definite]] is now old [[final]]. There is no bareword definite either. --- parser.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; } -- 2.39.2