Fixes for recent yacc
[tas-yagle.git] / distrib / sources / mbkvrlog / mgl_scomp.yac
index f7bfc77b34bb3f4652fb26c41dd05f1a9a1080b3..5a51addc983017d272deef144e81582bbeec512f 100644 (file)
 /*                                                                          */
 /****************************************************************************/
 
+%parse-param {void *parm}
+%lex-param {void *parm}
+
 %{
 
 #define YYDEBUG 1
-#define YYPARSE_PARAM parm
-#define YYLEX_PARAM parm
 
 #define MGL_CONTEXT(x) ((mgl_getcontext(parm))->x)
 
 #undef yyerror
-#define yyerror(x) mgl_scomperror(x, (mgl_getcontext(parm)))
+#define yyerror(parm, x) mgl_scomperror(x, (mgl_getcontext(parm)))
 
 #include <stdio.h>
 #include <stdlib.h>