Project

General

Profile

Backport #9015 ยป 0001-parse.y-fix-build-error-with-bison-3.0.patch

felipec (Felipe Contreras), 10/12/2013 04:38 PM

View differences:

parse.y
277 277
static int parser_yyerror(struct parser_params*, const char*);
278 278
#define yyerror(msg) parser_yyerror(parser, (msg))
279 279

  
280
#define YYLEX_PARAM parser
281

  
282 280
#define lex_strterm		(parser->parser_lex_strterm)
283 281
#define lex_state		(parser->parser_lex_state)
284 282
#define cond_stack		(parser->parser_cond_stack)
......
319 317
#define ruby_coverage		(parser->coverage)
320 318
#endif
321 319

  
320
#if YYPURE
322 321
static int yylex(void*, void*);
322
#else
323
static int yylex(void*);
324
#endif
323 325

  
324 326
#ifndef RIPPER
325 327
#define yyparse ruby_yyparse
......
610 612
#endif
611 613
%}
612 614

  
613
%pure_parser
615
%pure-parser
616
%lex-param {struct parser_params *parser}
614 617
%parse-param {struct parser_params *parser}
615 618

  
616 619
%union {
617
-