From: Paul Eggert Date: Fri, 25 Jul 2003 07:11:42 +0000 (+0000) Subject: (YYFREE, YYMALLOC): New macros. X-Git-Tag: BISON-2_0~229 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/2779e38386a522cb701e1173a8770e86d7bb6c29?ds=inline (YYFREE, YYMALLOC): New macros. All uses of free, malloc changed to use these macros. --- diff --git a/data/yacc.c b/data/yacc.c index 73df3ac8..92c0ddec 100644 --- a/data/yacc.c +++ b/data/yacc.c @@ -216,6 +216,13 @@ b4_syncline([@oline@], [@ofile@])[ #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. */ # ifdef YYSTACK_USE_ALLOCA @@ -240,8 +247,8 @@ b4_syncline([@oline@], [@ofile@])[ # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # endif -# define YYSTACK_ALLOC malloc -# define YYSTACK_FREE free +# define YYSTACK_ALLOC YYMALLOC +# define YYSTACK_FREE YYFREE # endif #endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */