Signed-off-by: gatecat <gatecat@ds0.me>
}
#include "bgl_type.h"
+extern "C" {
#include "bgl_bcomp.tab.h"
+}
#include "bgl_parse.h"
#include "bgl_util.h"
#include "bgl_class.h"
/* */
/****************************************************************************/
+%parse-param {void *parm}
+%lex-param {void *parm}
+
%{
#define YYDEBUG 1
-#define YYPARSE_PARAM parm
-#define YYLEX_PARAM parm
#define BGL_CONTEXT(x) ((bgl_getcontext(parm))->x)
#undef yyerror
-#define yyerror(x) bgl_bcomperror(x, (bgl_getcontext(parm)))
+#define yyerror(parm, x) bgl_bcomperror(x, (bgl_getcontext(parm)))
#include <stdio.h>
#include <string.h>
}
#include "mgl_type.h"
+extern "C" {
#include "mgl_scomp.tab.h"
+}
#include "mgl_parse.h"
#include "mgl_util.h"
#include "mgl_class.h"
/* */
/****************************************************************************/
+%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>