Commit 2d1b6182 authored by Alexandre Julliard's avatar Alexandre Julliard

msi: Change the prefix on bison-generated names to avoid the name-prefix directive.

parent bcdc5fb5
......@@ -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;
......
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment