(YYSTACK_RELOCATE): Use it to avoid a GCC warning.
(yystpcpy): Use prototype if __STDC__ is defined, not just
if __cplusplus is defined.
+ YYSTACK_GAP_MAX)
# endif
+ YYSTACK_GAP_MAX)
# endif
+# if defined (__STDC__) || defined (__cplusplus)
+# define YYPOINTER void *
+# else
+# define YYPOINTER char *
+# endif
+
/* Relocate the TYPE STACK from its old location to the new one. The
local variables YYSIZE and YYSTACKSIZE give the old and new number of
elements in the stack, and YYPTR gives the new location of the
/* Relocate the TYPE STACK from its old location to the new one. The
local variables YYSIZE and YYSTACKSIZE give the old and new number of
elements in the stack, and YYPTR gives the new location of the
YYSIZE_T yynewbytes; \
yymemcpy (yyptr, (char *) (Stack), \
yysize * (YYSIZE_T) sizeof (Type)); \
YYSIZE_T yynewbytes; \
yymemcpy (yyptr, (char *) (Stack), \
yysize * (YYSIZE_T) sizeof (Type)); \
- (Stack) = (Type *) yyptr; \
+ (Stack) = (Type *) (YYPOINTER) yyptr; \
yynewbytes = yystacksize * sizeof (Type) + YYSTACK_GAP_MAX; \
yynewbytes -= yynewbytes % sizeof (union yyalloc); \
yyptr += yynewbytes; \
yynewbytes = yystacksize * sizeof (Type) + YYSTACK_GAP_MAX; \
yynewbytes -= yynewbytes % sizeof (union yyalloc); \
yyptr += yynewbytes; \
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
YYDEST. */
static char *
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
YYDEST. */
static char *
+# if defined (__STDC__) || defined (__cplusplus)
+yystpcpy (char *yydest, const char *yysrc)
+# else
yystpcpy (yydest, yysrc)
char *yydest;
const char *yysrc;
yystpcpy (yydest, yysrc)
char *yydest;
const char *yysrc;
-# else
-yystpcpy (char *yydest, const char *yysrc)
# endif
{
register char *yyd = yydest;
# endif
{
register char *yyd = yydest;
yyerror ("parse error; also virtual memory exhausted");
}
else
yyerror ("parse error; also virtual memory exhausted");
}
else
-#endif /* YYERROR_VERBOSE */
+#endif /* defined (YYERROR_VERBOSE) */
yyerror ("parse error");
}
goto yyerrlab1;
yyerror ("parse error");
}
goto yyerrlab1;