Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
832d6985
Commit
832d6985
authored
Jan 24, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Group <INITIAL> tokens together.
parent
2b3a9101
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
parser.l
tools/widl/parser.l
+11
-6
No files found.
tools/widl/parser.l
View file @
832d6985
...
...
@@ -139,7 +139,6 @@ struct uuid *parse_uuid(const char *u)
**************************************************************************
*/
%%
<INITIAL>^{ws}*\#{ws}*pragma{ws}+ yy_push_state(PP_PRAGMA);
<PP_LINE>[^\n]* {
int lineno;
char *cptr, *fname;
...
...
@@ -177,7 +176,6 @@ struct uuid *parse_uuid(const char *u)
yy_pop_state();
}
<PP_PRAGMA>[^\n]* yylval->str = xstrdup(yytext); yy_pop_state(); return aPRAGMA;
<INITIAL>^{ws}*midl_pragma{ws}+warning return tPRAGMA_WARNING;
<INITIAL,ATTR>\" yy_push_state(QUOTE); cbufidx = 0;
<QUOTE>\" {
yy_pop_state();
...
...
@@ -207,10 +205,17 @@ struct uuid *parse_uuid(const char *u)
yylval->uuid = parse_uuid(yytext);
return aUUID;
}
<INITIAL>{double} {
yylval->dbl = strtod(yytext, NULL);
return aDOUBLE;
}
<INITIAL>{
^{ws}*\#{ws}*pragma{ws}+ { yy_push_state( PP_PRAGMA ); }
^{ws}*midl_pragma{ws}+warning { return tPRAGMA_WARNING; }
{double} {
yylval->dbl = strtod( yytext, NULL );
return aDOUBLE;
}
}
SAFEARRAY{ws}*/\( return tSAFEARRAY;
{cident} return kw_token(yytext, yylval);
...
...
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