mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
(YYFREE, YYMALLOC): New macros.
All uses of free, malloc changed to use these macros.
This commit is contained in:
11
data/yacc.c
11
data/yacc.c
@@ -216,6 +216,13 @@ b4_syncline([@oline@], [@ofile@])[
|
|||||||
|
|
||||||
#if ! defined (yyoverflow) || YYERROR_VERBOSE
|
#if ! defined (yyoverflow) || YYERROR_VERBOSE
|
||||||
|
|
||||||
|
# ifndef YYFREE
|
||||||
|
# define YYFREE free
|
||||||
|
# endif
|
||||||
|
# ifndef YYMALLOC
|
||||||
|
# define YYMALLOC malloc
|
||||||
|
# endif
|
||||||
|
|
||||||
/* The parser invokes alloca or malloc; define the necessary symbols. */
|
/* The parser invokes alloca or malloc; define the necessary symbols. */
|
||||||
|
|
||||||
# ifdef YYSTACK_USE_ALLOCA
|
# ifdef YYSTACK_USE_ALLOCA
|
||||||
@@ -240,8 +247,8 @@ b4_syncline([@oline@], [@ofile@])[
|
|||||||
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
|
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
|
||||||
# define YYSIZE_T size_t
|
# define YYSIZE_T size_t
|
||||||
# endif
|
# endif
|
||||||
# define YYSTACK_ALLOC malloc
|
# define YYSTACK_ALLOC YYMALLOC
|
||||||
# define YYSTACK_FREE free
|
# define YYSTACK_FREE YYFREE
|
||||||
# endif
|
# endif
|
||||||
#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
|
#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user