@@ -333,7 +333,7 @@ enable_or_disable ("enable"|"disable")
333333<STRING_LITERAL >{whitespace } { /* ignore */ }
334334<STRING_LITERAL >{cpplineno } {
335335 preprocessor_line (yytext, PARSER);
336- PARSER. set_line_no (PARSER. get_line_no ()- 1 );
336+ // Line number already set by preprocessor_line
337337 }
338338<STRING_LITERAL >{cppstart }. * { /* ignore */ }
339339<STRING_LITERAL >" /*" { yy_push_state (STRING_LITERAL_COMMENT); /* C comment, ignore */ }
@@ -352,7 +352,7 @@ enable_or_disable ("enable"|"disable")
352352
353353<GRAMMAR >{cpplineno } {
354354 preprocessor_line (yytext, PARSER);
355- PARSER. set_line_no (PARSER. get_line_no ()- 1 );
355+ // Line number already set by preprocessor_line
356356 }
357357
358358<GRAMMAR >{cppstart }" pragma" {ws }" pack" {ws }" (" {ws }" push" {ws }" )" {ws }{newline } {
@@ -1620,7 +1620,7 @@ enable_or_disable ("enable"|"disable")
16201620<GCC_ASM >{
16211621{cpplineno } {
16221622 preprocessor_line (yytext, PARSER);
1623- PARSER. set_line_no (PARSER. get_line_no ()- 1 );
1623+ // Line number already set by preprocessor_line
16241624 }
16251625{ws } { /* ignore */ }
16261626{newline } { /* ignore */ }
@@ -1639,7 +1639,7 @@ enable_or_disable ("enable"|"disable")
16391639<GCC_ATTRIBUTE1 >{
16401640{cpplineno } {
16411641 preprocessor_line (yytext, PARSER);
1642- PARSER. set_line_no (PARSER. get_line_no ()- 1 );
1642+ // Line number already set by preprocessor_line
16431643 }
16441644{ws } { /* ignore */ }
16451645{newline } { /* ignore */ }
@@ -1650,7 +1650,7 @@ enable_or_disable ("enable"|"disable")
16501650<GCC_ATTRIBUTE1a >{
16511651{cpplineno } {
16521652 preprocessor_line (yytext, PARSER);
1653- PARSER. set_line_no (PARSER. get_line_no ()- 1 );
1653+ // Line number already set by preprocessor_line
16541654 }
16551655" (" { BEGIN (GCC_ATTRIBUTE2); PARSER.parenthesis_counter =0 ; return yytext[0 ]; }
16561656{ws } { /* ignore */ }
@@ -1711,7 +1711,7 @@ enable_or_disable ("enable"|"disable")
17111711<GCC_ATTRIBUTE3 >{ // an attribute we do process
17121712{cpplineno } {
17131713 preprocessor_line (yytext, PARSER);
1714- PARSER. set_line_no (PARSER. get_line_no ()- 1 );
1714+ // Line number already set by preprocessor_line
17151715 }
17161716" (" { PARSER.parenthesis_counter ++; loc (); return ' (' ; }
17171717" )" { if (PARSER.parenthesis_counter ==0 )
@@ -1774,7 +1774,7 @@ enable_or_disable ("enable"|"disable")
17741774<GCC_ATTRIBUTE5 >{ // end bit: the closing parenthesis
17751775{cpplineno } {
17761776 preprocessor_line (yytext, PARSER);
1777- PARSER. set_line_no (PARSER. get_line_no ()- 1 );
1777+ // Line number already set by preprocessor_line
17781778 }
17791779" )" { BEGIN (GRAMMAR); loc (); return yytext[0 ]; }
17801780{ws } { /* Throw away */ }
0 commit comments