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
f4af3134
Commit
f4af3134
authored
Jan 21, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Specify the bison prefix directly in the source files.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
363d078f
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
40 additions
and
16 deletions
+40
-16
asmshader.y
dlls/d3dcompiler_43/asmshader.y
+2
-0
ppl.l
dlls/d3dcompiler_43/ppl.l
+2
-2
ppy.y
dlls/d3dcompiler_43/ppy.y
+2
-0
cc_parser.y
dlls/jscript/cc_parser.y
+1
-0
parser.y
dlls/jscript/parser.y
+2
-1
cond.y
dlls/msi/cond.y
+3
-2
sql.y
dlls/msi/sql.y
+1
-0
xslpattern.h
dlls/msxml3/xslpattern.h
+1
-1
xslpattern.l
dlls/msxml3/xslpattern.l
+1
-0
xslpattern.y
dlls/msxml3/xslpattern.y
+1
-0
parser.y
dlls/vbscript/parser.y
+2
-1
wql.y
dlls/wbemprox/wql.y
+1
-0
dbg.y
programs/winedbg/dbg.y
+2
-0
makedep.c
tools/makedep.c
+3
-3
parser.y
tools/widl/parser.y
+4
-1
mcy.y
tools/wmc/mcy.y
+2
-0
parser.y
tools/wrc/parser.y
+6
-3
ppl.l
tools/wrc/ppl.l
+2
-2
ppy.y
tools/wrc/ppy.y
+2
-0
No files found.
dlls/d3dcompiler_43/asmshader.y
View file @
f4af3134
...
...
@@ -65,6 +65,8 @@ int asmshader_lex(void);
%}
%define api.prefix {asmshader_}
%union {
struct {
float val;
...
...
dlls/d3dcompiler_43/ppl.l
View file @
f4af3134
...
...
@@ -225,7 +225,7 @@ typedef struct macexpstackentry {
* Prototypes
*/
static void newline(int);
static int make_number(int radix,
YY
STYPE *val, const char *str, int len);
static int make_number(int radix,
PPY_
STYPE *val, const char *str, int len);
static void put_buffer(const char *s, int len);
/* Buffer management */
static void push_buffer(pp_entry_t *ppp, char *filename, char *incname, int pop);
...
...
@@ -829,7 +829,7 @@ static void newline(int dowrite)
*
*-------------------------------------------------------------------------
*/
static int make_number(int radix,
YY
STYPE *val, const char *str, int len)
static int make_number(int radix,
PPY_
STYPE *val, const char *str, int len)
{
int is_l = 0;
int is_ll = 0;
...
...
dlls/d3dcompiler_43/ppy.y
View file @
f4af3134
...
...
@@ -111,6 +111,8 @@ static int nmacro_args;
%}
%define api.prefix {ppy_}
%union{
int sint;
unsigned int uint;
...
...
dlls/jscript/cc_parser.y
View file @
f4af3134
...
...
@@ -30,6 +30,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(jscript);
%lex-param { parser_ctx_t *ctx }
%parse-param { parser_ctx_t *ctx }
%define api.prefix {cc_parser_}
%define api.pure
%start CCExpr
...
...
dlls/jscript/parser.y
View file @
f4af3134
...
...
@@ -128,13 +128,14 @@ static expression_t *new_literal_expression(parser_ctx_t*,literal_t*);
static expression_t *new_array_literal_expression(parser_ctx_t*,element_list_t*,int);
static expression_t *new_prop_and_value_expression(parser_ctx_t*,property_list_t*);
#define
YY
LTYPE unsigned
#define
PARSER_
LTYPE unsigned
#define YYLLOC_DEFAULT(Cur, Rhs, N) Cur = YYRHSLOC((Rhs), (N) ? 1 : 0)
%}
%lex-param { parser_ctx_t *ctx }
%parse-param { parser_ctx_t *ctx }
%define api.prefix {parser_}
%define api.pure
%start Script
...
...
dlls/msi/cond.y
View file @
f4af3134
...
...
@@ -114,6 +114,7 @@ static void value_free( struct value val )
%
lex
-
param
{
COND_input
*
info
}
%
parse
-
param
{
COND_input
*
info
}
%
define
api
.
prefix
{
cond_
}
%
define
api
.
pure
%
union
...
...
@@ -125,7 +126,7 @@ static void value_free( struct value val )
BOOL
bool
;
}
%
token
COND_SPACE
COND_EOF
%
token
COND_SPACE
%
token
COND_OR
COND_AND
COND_NOT
COND_XOR
COND_IMP
COND_EQV
%
token
COND_LT
COND_GT
COND_EQ
COND_NE
COND_GE
COND_LE
%
token
COND_ILT
COND_IGT
COND_IEQ
COND_INE
COND_IGE
COND_ILE
...
...
@@ -134,7 +135,7 @@ static void value_free( struct value val )
%
token
COND_PERCENT
COND_DOLLARS
COND_QUESTION
COND_AMPER
COND_EXCLAM
%
token
<
str
>
COND_IDENT
<
str
>
COND_NUMBER
<
str
>
COND_LITER
%
nonassoc
COND_ERROR
COND_EOF
%
nonassoc
COND_ERROR
%
type
<
bool
>
expression
boolean_term
boolean_factor
%
type
<
value
>
value
...
...
dlls/msi/sql.y
View file @
f4af3134
...
...
@@ -58,6 +58,7 @@ static struct expr * EXPR_wildcard( void *info );
%lex-param { SQL_input *info }
%parse-param { SQL_input *info }
%define api.prefix {sql_}
%define api.pure
%union
...
...
dlls/msxml3/xslpattern.h
View file @
f4af3134
...
...
@@ -38,7 +38,7 @@ typedef struct _parser_param {
int
err
;
}
parser_param
;
#define
YY
STYPE xmlChar*
#define
XSLPATTERN_
STYPE xmlChar*
#define YY_EXTRA_TYPE parser_param*
int
xslpattern_lex
(
xmlChar
**
,
void
*
)
DECLSPEC_HIDDEN
;
...
...
dlls/msxml3/xslpattern.l
View file @
f4af3134
...
...
@@ -26,6 +26,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(msxml);
#define SCAN xslpattern_get_extra(yyscanner)
#define YYSTYPE XSLPATTERN_STYPE
#define YY_INPUT(tok_buf, tok_len, max) \
do { \
...
...
dlls/msxml3/xslpattern.y
View file @
f4af3134
...
...
@@ -66,6 +66,7 @@ static void xslpattern_error(parser_param* param, void const* scanner, char cons
%start XSLPattern
%define api.prefix {xslpattern_}
%define api.pure
%parse-param {parser_param* p}
%parse-param {void* scanner}
...
...
dlls/vbscript/parser.y
View file @
f4af3134
...
...
@@ -81,13 +81,14 @@ static statement_t *link_statements(statement_t*,statement_t*);
#define CHECK_ERROR if(((parser_ctx_t*)ctx)->hres != S_OK) YYABORT
#define
YY
LTYPE unsigned
#define
PARSER_
LTYPE unsigned
#define YYLLOC_DEFAULT(Cur, Rhs, N) Cur = YYRHSLOC((Rhs), (N) ? 1 : 0)
%}
%lex-param { parser_ctx_t *ctx }
%parse-param { parser_ctx_t *ctx }
%define api.prefix {parser_}
%define api.pure
%start Program
...
...
dlls/wbemprox/wql.y
View file @
f4af3134
...
...
@@ -217,6 +217,7 @@ static int wql_lex( void *val, struct parser *parser );
%lex-param { struct parser *ctx }
%parse-param { struct parser *ctx }
%define parse.error verbose
%define api.prefix {wql_}
%define api.pure
%union
...
...
programs/winedbg/dbg.y
View file @
f4af3134
...
...
@@ -35,6 +35,8 @@ static void parser(const char*);
%}
%define api.prefix {dbg_}
%union
{
struct dbg_lvalue lvalue;
...
...
tools/makedep.c
View file @
f4af3134
...
...
@@ -2622,15 +2622,15 @@ static void output_source_y( struct makefile *make, struct incl_file *source, co
if
(
find_include_file
(
make
,
header
))
{
output
(
"%s: %s
\n
"
,
obj_dir_path
(
make
,
header
),
source
->
filename
);
output
(
"
\t
%s%s -
p %s_ -
o %s.tab.c -d %s
\n
"
,
cmd_prefix
(
"BISON"
),
bison
,
obj
,
obj
_dir_path
(
make
,
obj
),
source
->
filename
);
output
(
"
\t
%s%s -o %s.tab.c -d %s
\n
"
,
cmd_prefix
(
"BISON"
),
bison
,
obj_dir_path
(
make
,
obj
),
source
->
filename
);
output
(
"%s.tab.c: %s %s
\n
"
,
obj_dir_path
(
make
,
obj
),
source
->
filename
,
obj_dir_path
(
make
,
header
));
strarray_add
(
&
make
->
clean_files
,
header
);
}
else
output
(
"%s.tab.c: %s
\n
"
,
obj_dir_path
(
make
,
obj
),
source
->
filename
);
output
(
"
\t
%s%s -
p %s_ -o $@ %s
\n
"
,
cmd_prefix
(
"BISON"
),
bison
,
obj
,
source
->
filename
);
output
(
"
\t
%s%s -
o $@ %s
\n
"
,
cmd_prefix
(
"BISON"
),
bison
,
source
->
filename
);
}
...
...
tools/widl/parser.y
View file @
f4af3134
...
...
@@ -120,6 +120,9 @@ static statement_list_t *parameterized_type_stmts = NULL;
static typelib_t *current_typelib;
%}
%define api.prefix {parser_}
%union {
attr_t *attr;
attr_list_t *attr_list;
...
...
@@ -480,7 +483,7 @@ typedecl:
cppquote: tCPPQUOTE '(' aSTRING ')' { $$ = $3; }
;
import_start: tIMPORT aSTRING ';' { assert(yychar ==
YY
EMPTY);
import_start: tIMPORT aSTRING ';' { assert(yychar ==
PARSER_
EMPTY);
$$ = xmalloc(sizeof(struct _import_t));
$$->name = $2;
$$->import_performed = do_import($2);
...
...
tools/wmc/mcy.y
View file @
f4af3134
...
...
@@ -95,6 +95,8 @@ static struct cp_xlat *find_cpxlat(int lan);
%}
%define api.prefix {mcy_}
%union {
WCHAR *str;
unsigned num;
...
...
tools/wrc/parser.y
View file @
f4af3134
...
...
@@ -200,6 +200,9 @@ static resource_t *build_fontdir(resource_t **fnt, int nfnt);
static int rsrcid_to_token(int lookahead);
%}
%define api.prefix {parser_}
%union{
string_t *str;
int num;
...
...
@@ -487,11 +490,11 @@ resource
* want_id because we already have a lookahead that
* cannot be undone.
*/
if(yychar
!=
YY
EMPTY
&&
yychar
!=
tNL)
if(yychar
!=
PARSER_
EMPTY
&&
yychar
!=
tNL)
dont_want_id
=
1;
if(yychar
==
tNL)
yychar
=
YY
EMPTY;
/* Could use 'yyclearin', but we already need the*/
yychar
=
PARSER_
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");
...
...
@@ -2722,7 +2725,7 @@ static int rsrcid_to_token(int lookahead)
int token;
/* Get a token if we don'
t
have
one
yet
*/
if
(
lookahead
==
YY
EMPTY
)
if
(
lookahead
==
PARSER_
EMPTY
)
lookahead
=
yylex
();
/* Only numbers are possibly interesting */
...
...
tools/wrc/ppl.l
View file @
f4af3134
...
...
@@ -240,7 +240,7 @@ typedef struct macexpstackentry {
* Prototypes
*/
static void newline(int);
static int make_number(int radix,
YY
STYPE *val, const char *str, int len);
static int make_number(int radix,
PPY_
STYPE *val, const char *str, int len);
static void put_buffer(const char *s, int len);
/* Buffer management */
static void push_buffer(pp_entry_t *ppp, char *filename, char *incname, int pop);
...
...
@@ -796,7 +796,7 @@ static void newline(int dowrite)
*
*-------------------------------------------------------------------------
*/
static int make_number(int radix,
YY
STYPE *val, const char *str, int len)
static int make_number(int radix,
PPY_
STYPE *val, const char *str, int len)
{
int is_l = 0;
int is_ll = 0;
...
...
tools/wrc/ppy.y
View file @
f4af3134
...
...
@@ -115,6 +115,8 @@ static int nmacro_args;
%}
%define api.prefix {ppy_}
%union{
int sint;
unsigned int uint;
...
...
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