Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c09a5da1
Commit
c09a5da1
authored
Jan 21, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc: Add a workaround for older bison versions.
Bison < 3.6 doesn't apply api.prefix to YYEMPTY. Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
599ecd97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
parser.y
tools/widl/parser.y
+1
-2
parser.y
tools/wrc/parser.y
+6
-3
No files found.
tools/widl/parser.y
View file @
c09a5da1
...
...
@@ -483,8 +483,7 @@ typedecl:
cppquote: tCPPQUOTE '(' aSTRING ')' { $$ = $3; }
;
import_start: tIMPORT aSTRING ';' { assert(yychar == PARSER_EMPTY);
$$ = xmalloc(sizeof(struct _import_t));
import_start: tIMPORT aSTRING ';' { $$ = xmalloc(sizeof(struct _import_t));
$$->name = $2;
$$->import_performed = do_import($2);
if (!$$->import_performed) yychar = aEOF;
...
...
tools/wrc/parser.y
View file @
c09a5da1
...
...
@@ -199,6 +199,9 @@ static resource_t *build_fontdirs(resource_t *tail);
static resource_t *build_fontdir(resource_t **fnt, int nfnt);
static int rsrcid_to_token(int lookahead);
/* bison >= 3.6 applies api.prefix also to YYEMPTY */
#define YYEMPTY (-2)
%}
%define api.prefix {parser_}
...
...
@@ -490,11 +493,11 @@ resource
* want_id because we already have a lookahead that
* cannot be undone.
*/
if(yychar
!=
PARSER_
EMPTY
&&
yychar
!=
tNL)
if(yychar
!=
YY
EMPTY
&&
yychar
!=
tNL)
dont_want_id
=
1;
if(yychar
==
tNL)
yychar
=
PARSER_
EMPTY;
/* Could use 'yyclearin', but we already need the*/
yychar
=
YY
EMPTY;
/* Could use 'yyclearin', but we already need the*/
/* direct access to yychar in rule 'usrcvt' below. */
else
if(yychar
==
tIDENT)
parser_warning("LANGUAGE
statement
not
delimited
with
newline;
next
identifier
might
be
wrong\n");
...
...
@@ -2725,7 +2728,7 @@ static int rsrcid_to_token(int lookahead)
int token;
/* Get a token if we don'
t
have
one
yet
*/
if
(
lookahead
==
PARSER_
EMPTY
)
if
(
lookahead
==
YY
EMPTY
)
lookahead
=
yylex
();
/* Only numbers are possibly interesting */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment