mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
tests: fix 250: parse.error=verbose overflow.
* tests/regression.at (parse.error=verbose overflow): Avoid the double inclusion of stdlib.h as it triggers hard errors.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2010-03-25 Akim Demaille <demaille@gostai.com>
|
||||||
|
|
||||||
|
tests: fix 250: parse.error=verbose overflow.
|
||||||
|
* tests/regression.at (parse.error=verbose overflow): Avoid the
|
||||||
|
double inclusion of stdlib.h as it triggers hard errors.
|
||||||
|
|
||||||
2010-03-23 Joel E. Denny <jdenny@ces.clemson.edu>
|
2010-03-23 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||||
|
|
||||||
portability: fix for BSD make.
|
portability: fix for BSD make.
|
||||||
|
|||||||
@@ -1366,9 +1366,12 @@ AT_DATA_GRAMMAR([input.y],
|
|||||||
large enough to overflow size_t. */
|
large enough to overflow size_t. */
|
||||||
#define YYSIZE_T unsigned char
|
#define YYSIZE_T unsigned char
|
||||||
|
|
||||||
/* Bring in malloc so yacc.c doesn't try to provide a malloc prototype
|
/* Bring in malloc and set _STDLIB_H so yacc.c doesn't try to
|
||||||
using our YYSIZE_T. */
|
provide a malloc prototype using our YYSIZE_T. */
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#ifndef _STDLIB_H
|
||||||
|
# define _STDLIB_H 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Max depth is usually much smaller than YYSTACK_ALLOC_MAXIMUM, and
|
/* Max depth is usually much smaller than YYSTACK_ALLOC_MAXIMUM, and
|
||||||
we don't want gcc to warn everywhere this constant would be too big
|
we don't want gcc to warn everywhere this constant would be too big
|
||||||
|
|||||||
Reference in New Issue
Block a user