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
c14e322a
Commit
c14e322a
authored
Aug 01, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Use bison directives instead of defines to specify extra lexer parameters.
parent
f86c46f6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
wql.y
dlls/wbemprox/wql.y
+5
-7
No files found.
dlls/wbemprox/wql.y
View file @
c14e322a
...
@@ -30,11 +30,6 @@
...
@@ -30,11 +30,6 @@
#include "wine/debug.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "wine/unicode.h"
#define YYLEX_PARAM ctx
#define YYPARSE_PARAM ctx
#define YYERROR_DEBUG 1
#define YYERROR_VERBOSE 1
WINE_DEFAULT_DEBUG_CHANNEL(wbemprox);
WINE_DEFAULT_DEBUG_CHANNEL(wbemprox);
struct parser
struct parser
...
@@ -181,7 +176,7 @@ static struct expr *expr_propval( struct parser *parser, const struct property *
...
@@ -181,7 +176,7 @@ static struct expr *expr_propval( struct parser *parser, const struct property *
return e;
return e;
}
}
static int wql_error( const char *str );
static int wql_error(
struct parser *parser,
const char *str );
static int wql_lex( void *val, struct parser *parser );
static int wql_lex( void *val, struct parser *parser );
#define PARSER_BUBBLE_UP_VIEW( parser, result, current_view ) \
#define PARSER_BUBBLE_UP_VIEW( parser, result, current_view ) \
...
@@ -190,6 +185,9 @@ static int wql_lex( void *val, struct parser *parser );
...
@@ -190,6 +185,9 @@ static int wql_lex( void *val, struct parser *parser );
%}
%}
%lex-param { struct parser *ctx }
%parse-param { struct parser *ctx }
%error-verbose
%pure-parser
%pure-parser
%union
%union
...
@@ -691,7 +689,7 @@ static int wql_lex( void *p, struct parser *parser )
...
@@ -691,7 +689,7 @@ static int wql_lex( void *p, struct parser *parser )
return token;
return token;
}
}
static int wql_error( const char *str )
static int wql_error(
struct parser *parser,
const char *str )
{
{
ERR("%s\n", str);
ERR("%s\n", str);
return 0;
return 0;
...
...
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