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
2d1b6182
Commit
2d1b6182
authored
Sep 11, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Change the prefix on bison-generated names to avoid the name-prefix directive.
parent
bcdc5fb5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
cond.y
dlls/msi/cond.y
+5
-6
sql.y
dlls/msi/sql.y
+5
-6
No files found.
dlls/msi/cond.y
View file @
2d1b6182
...
...
@@ -40,7 +40,7 @@
#
define
YYLEX_PARAM
info
#
define
YYPARSE_PARAM
info
static
int
COND
_error
(
const
char
*
str
);
static
int
cond
_error
(
const
char
*
str
);
WINE_DEFAULT_DEBUG_CHANNEL
(
msi
);
...
...
@@ -59,7 +59,7 @@ struct cond_str {
static
LPWSTR
COND_GetString
(
struct
cond_str
*
str
);
static
LPWSTR
COND_GetLiteral
(
struct
cond_str
*
str
);
static
int
COND
_lex
(
void
*
COND_lval
,
COND_input
*
info
);
static
int
cond
_lex
(
void
*
COND_lval
,
COND_input
*
info
);
static
const
WCHAR
szEmpty
[]
=
{
0
};
static
INT
compare_int
(
INT
a
,
INT
operator
,
INT
b
);
...
...
@@ -102,7 +102,6 @@ static BOOL num_from_prop( LPCWSTR p, INT *val )
%}
%
pure
-
parser
%
name
-
prefix
=
"COND_"
%
union
{
...
...
@@ -668,7 +667,7 @@ static int COND_GetOne( struct cond_str *str, COND_input *cond )
return
rc
;
}
static
int
COND
_lex
(
void
*
COND_lval
,
COND_input
*
cond
)
static
int
cond
_lex
(
void
*
COND_lval
,
COND_input
*
cond
)
{
int
rc
;
struct
cond_str
*
str
=
COND_lval
;
...
...
@@ -708,7 +707,7 @@ static LPWSTR COND_GetLiteral( struct cond_str *str )
return
ret
;
}
static
int
COND
_error
(
const
char
*
str
)
static
int
cond
_error
(
const
char
*
str
)
{
TRACE
(
"%s
\n
"
,
str
);
return
0
;
...
...
@@ -729,7 +728,7 @@ MSICONDITION MSI_EvaluateConditionW( MSIPACKAGE *package, LPCWSTR szCondition )
cond
.
n
=
0
;
cond
.
result
=
MSICONDITION_ERROR
;
if
(
!
COND
_parse( &cond ) )
if
(
!
cond
_parse( &cond ) )
r
=
cond
.
result
;
else
r
=
MSICONDITION_ERROR
;
...
...
dlls/msi/sql.y
View file @
2d1b6182
...
...
@@ -36,7 +36,7 @@
#define YYLEX_PARAM info
#define YYPARSE_PARAM info
extern int SQL
_error(const char *str);
static int sql
_error(const char *str);
WINE_DEFAULT_DEBUG_CHANNEL(msi);
...
...
@@ -51,7 +51,7 @@ typedef struct tag_SQL_input
static LPWSTR SQL_getstring( void *info, struct sql_str *str );
static INT SQL_getint( void *info );
static int
SQL
_lex( void *SQL_lval, SQL_input *info );
static int
sql
_lex( void *SQL_lval, SQL_input *info );
static void *parser_alloc( void *info, unsigned int sz );
static column_info *parser_alloc_column( void *info, LPCWSTR table, LPCWSTR column );
...
...
@@ -67,7 +67,6 @@ static struct expr * EXPR_wildcard( void *info );
%}
%pure-parser
%name-prefix="SQL_"
%union
{
...
...
@@ -687,7 +686,7 @@ static column_info *parser_alloc_column( void *info, LPCWSTR table, LPCWSTR colu
return col;
}
int SQL
_lex( void *SQL_lval, SQL_input *sql )
static int sql
_lex( void *SQL_lval, SQL_input *sql )
{
int token;
struct sql_str * str = SQL_lval;
...
...
@@ -753,7 +752,7 @@ INT SQL_getint( void *info )
return r;
}
int SQL
_error( const char *str )
static int sql
_error( const char *str )
{
return 0;
}
...
...
@@ -852,7 +851,7 @@ UINT MSI_ParseSQL( MSIDATABASE *db, LPCWSTR command, MSIVIEW **phview,
sql.view = phview;
sql.mem = mem;
r =
SQL
_parse(&sql);
r =
sql
_parse(&sql);
TRACE("Parse returned %d\n", r);
if( r )
...
...
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