From 2779e38386a522cb701e1173a8770e86d7bb6c29 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 25 Jul 2003 07:11:42 +0000 Subject: [PATCH] (YYFREE, YYMALLOC): New macros. All uses of free, malloc changed to use these macros. --- data/yacc.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 */ -- 2.47.2