mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
glcpp: fix abuse of yylex
So glcpp tried to workaround yylex its own way, but failed,
do it properly.
This fixes another crash found after fixing the first crash.
this is a candidate for 9.0 and stable branches
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit 53d46bc787)
This commit is contained in:
parent
a834381506
commit
8f7990c5f2
2 changed files with 1 additions and 9 deletions
|
|
@ -31,7 +31,7 @@ AM_CFLAGS = \
|
||||||
$(LIBRARY_DEFINES) \
|
$(LIBRARY_DEFINES) \
|
||||||
$(API_DEFINES)
|
$(API_DEFINES)
|
||||||
|
|
||||||
AM_YFLAGS = -v -d
|
AM_YFLAGS = -v -d -p "glcpp_parser_"
|
||||||
AM_LFLAGS = --nounistd -o$(LEX_OUTPUT_ROOT).c
|
AM_LFLAGS = --nounistd -o$(LEX_OUTPUT_ROOT).c
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libglcpp.la
|
noinst_LTLIBRARIES = libglcpp.la
|
||||||
|
|
|
||||||
|
|
@ -133,8 +133,6 @@ _glcpp_parser_skip_stack_change_if (glcpp_parser_t *parser, YYLTYPE *loc,
|
||||||
static void
|
static void
|
||||||
_glcpp_parser_skip_stack_pop (glcpp_parser_t *parser, YYLTYPE *loc);
|
_glcpp_parser_skip_stack_pop (glcpp_parser_t *parser, YYLTYPE *loc);
|
||||||
|
|
||||||
#define yylex glcpp_parser_lex
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
glcpp_parser_lex (YYSTYPE *yylval, YYLTYPE *yylloc, glcpp_parser_t *parser);
|
glcpp_parser_lex (YYSTYPE *yylval, YYLTYPE *yylloc, glcpp_parser_t *parser);
|
||||||
|
|
||||||
|
|
@ -1197,12 +1195,6 @@ glcpp_parser_create (const struct gl_extensions *extensions, int api)
|
||||||
return parser;
|
return parser;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
glcpp_parser_parse (glcpp_parser_t *parser)
|
|
||||||
{
|
|
||||||
return yyparse (parser);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
glcpp_parser_destroy (glcpp_parser_t *parser)
|
glcpp_parser_destroy (glcpp_parser_t *parser)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue