fix tests with bison3 OBS-URL: https://build.opensuse.org/request/show/267269 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/flex?expand=0&rev=16
55 lines
1.0 KiB
Diff
55 lines
1.0 KiB
Diff
--- flex-2.5.37.orig/tests/test-bison-yylloc/parser.y
|
|
+++ flex-2.5.37/tests/test-bison-yylloc/parser.y
|
|
@@ -22,6 +22,7 @@
|
|
*/
|
|
|
|
%parse-param { void* scanner }
|
|
+%lex-param { void* scanner }
|
|
|
|
/*
|
|
How to compile:
|
|
@@ -34,7 +35,6 @@
|
|
#include "config.h"
|
|
|
|
#define YYERROR_VERBOSE 1
|
|
-#define YYLEX_PARAM scanner
|
|
|
|
extern int testget_lineno(void*);
|
|
|
|
@@ -52,7 +52,7 @@ int process_text(char* s) {
|
|
|
|
%}
|
|
|
|
-%pure_parser
|
|
+%pure-parser
|
|
|
|
%union {
|
|
int lineno;
|
|
--- flex-2.5.37.orig/tests/test-bison-yylval/parser.y
|
|
+++ flex-2.5.37/tests/test-bison-yylval/parser.y
|
|
@@ -26,6 +26,7 @@
|
|
bison --defines --output-file="parser.c" --name-prefix="test" parser.y
|
|
*/
|
|
%parse-param { void* scanner }
|
|
+%lex-param { void* scanner }
|
|
%{
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
@@ -33,7 +34,6 @@
|
|
#include "config.h"
|
|
|
|
#define YYERROR_VERBOSE 1
|
|
-#define YYLEX_PARAM scanner
|
|
|
|
|
|
/* A dummy function. A check against seg-faults in yylval->str. */
|
|
@@ -49,7 +49,7 @@ int process_text(char* s) {
|
|
|
|
%}
|
|
|
|
-%pure_parser
|
|
+%pure-parser
|
|
|
|
%union {
|
|
long unused;
|