From 3a38b3c5d101ddd5715e9ac0f256426ce5dd58e0 Mon Sep 17 00:00:00 2001 From: mame Date: Tue, 9 Jan 2018 05:03:03 +0000 Subject: [PATCH] parse.y: Remove redefinition of malloc Because the purpose is now unsure (maybe, to support very old bison?). If an issue occurs, it should be resurrected with explicit comment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 9 --------- 1 file changed, 9 deletions(-) diff --git a/parse.y b/parse.y index 7fed236412..b743b7befe 100644 --- a/parse.y +++ b/parse.y @@ -66,15 +66,6 @@ #define RUBY_SET_YYLLOC(Current) \ rb_parser_set_code_range(parser, &(Current)) -#undef malloc -#undef realloc -#undef calloc -#undef free -#define malloc YYMALLOC -#define realloc YYREALLOC -#define calloc YYCALLOC -#define free YYFREE - enum lex_state_bits { EXPR_BEG_bit, /* ignore newline, +/- is a sign. */ EXPR_END_bit, /* newline significant, +/- is an operator. */