Index: tool/lempar.c ================================================================== --- tool/lempar.c +++ tool/lempar.c @@ -60,11 +60,15 @@ #define YY_ACCEPT_ACTION (YYNSTATE+YYNRULE+1) #define YY_ERROR_ACTION (YYNSTATE+YYNRULE) /* The yyzerominor constant is used to initialize instances of ** YYMINORTYPE objects to zero. */ +#ifdef __cplusplus +static YYMINORTYPE yyzerominor; +#else static const YYMINORTYPE yyzerominor; +#endif /* Next are the tables used to determine what action to take based on the ** current state and lookahead token. These tables are used to implement ** functions that take a state number and lookahead value and return an ** action integer.