79c115
Index: b/tests/test-bison-yylloc/main.c
79c115
===================================================================
79c115
--- a/tests/test-bison-yylloc/main.c
79c115
+++ b/tests/test-bison-yylloc/main.c
79c115
@@ -24,8 +24,6 @@
79c115
 #include "parser.h"
79c115
 #include "scanner.h"
79c115
 
79c115
-extern int testparse(yyscan_t);
79c115
-
79c115
 int main ( int argc, char** argv )
79c115
 {
79c115
     yyscan_t scanner;
79c115
Index: b/tests/test-bison-yylloc/parser.y
79c115
===================================================================
79c115
--- a/tests/test-bison-yylloc/parser.y
79c115
+++ b/tests/test-bison-yylloc/parser.y
79c115
@@ -21,6 +21,8 @@
79c115
  * PURPOSE.
79c115
  */
79c115
 
79c115
+%parse-param { void* scanner }
79c115
+
79c115
 /* 
79c115
    How to compile:
79c115
    bison --defines --output-file="parser.c" --name-prefix="test" parser.y
79c115
@@ -32,10 +34,8 @@
79c115
 #include "config.h"
79c115
 
79c115
 #define YYERROR_VERBOSE 1
79c115
-#define YYPARSE_PARAM scanner
79c115
 #define YYLEX_PARAM   scanner
79c115
 
79c115
-int yyerror(char* msg);
79c115
 extern int testget_lineno(void*);
79c115
 
79c115
 
79c115
@@ -89,7 +89,7 @@ line:
79c115
 
79c115
 %%
79c115
 
79c115
-int yyerror(char* msg) {
79c115
+int yyerror(void* scanner, char* msg) {
79c115
     fprintf(stderr,"%s\n",msg);
79c115
     return 0;
79c115
 }
79c115
Index: b/tests/test-bison-yylval/main.c
79c115
===================================================================
79c115
--- a/tests/test-bison-yylval/main.c
79c115
+++ b/tests/test-bison-yylval/main.c
79c115
@@ -24,8 +24,6 @@
79c115
 #include "parser.h"
79c115
 #include "scanner.h"
79c115
 
79c115
-extern int testparse(yyscan_t);
79c115
-
79c115
 int main ( int argc, char** argv )
79c115
 {
79c115
     yyscan_t scanner;
79c115
Index: b/tests/test-bison-yylval/parser.y
79c115
===================================================================
79c115
--- a/tests/test-bison-yylval/parser.y
79c115
+++ b/tests/test-bison-yylval/parser.y
79c115
@@ -25,6 +25,7 @@
79c115
    How to compile:
79c115
    bison --defines --output-file="parser.c" --name-prefix="test" parser.y
79c115
  */
79c115
+%parse-param { void* scanner }
79c115
 %{
79c115
 #include <stdio.h>
79c115
 #include <stdlib.h>
79c115
@@ -32,11 +33,8 @@
79c115
 #include "config.h"
79c115
 
79c115
 #define YYERROR_VERBOSE 1
79c115
-#define YYPARSE_PARAM scanner
79c115
 #define YYLEX_PARAM   scanner
79c115
 
79c115
-int yyerror(char* msg);
79c115
-
79c115
 
79c115
 /* A dummy function. A check against seg-faults in yylval->str. */
79c115
 int process_text(char* s) {
79c115
@@ -76,7 +74,7 @@ starttag:  LT      TAGNAME GT { process_
79c115
 endtag:    LTSLASH TAGNAME GT { process_text($2);free($2);} ;
79c115
 %%
79c115
 
79c115
-int yyerror(char* msg) {
79c115
+int yyerror(void* scanner, char* msg) {
79c115
     fprintf(stderr,"%s\n",msg);
79c115
     return 0;
79c115
 }