Skip to content

Commit

Permalink
Fix compile error when using bison 3.6.1 (#2320)
Browse files Browse the repository at this point in the history
Workaround issue: bison 3.6.1 generated unexpected nested-comment
Closes: #2320
Signed-off-by: Huang Rui <vowstar@gmail.com>
  • Loading branch information
vowstar committed May 13, 2020
1 parent f005b7f commit 68d7596
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Garrett Smith
Geza Lore
Gianfranco Costamagna
Howard Su
Huang Rui
Iztok Jeras
James Hanlon
Jeremy Bennett
Expand Down
2 changes: 2 additions & 0 deletions src/bisonpre
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ sub clean_output {
$line =~ s!\(YY_\("!(YY_((char*)"!g;
# Fix bison 2.3 glr-parser warning about yyerrorloc.YYTYPE::yydummy uninit
$line =~ s!(YYLTYPE yyerrloc;)!$1 yyerrloc.yydummy=0;/*bisonpre*/!g;
# Fix bison 3.6.1 unexpected nested-comment
$line =~ s!/\* "/\*.*\*/" \*/!!g;
$fh->write($line);
}
$fh->close;
Expand Down

0 comments on commit 68d7596

Please sign in to comment.