/* */
/****************************************************************************/
+%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>