ruby-changes:49594
From: mame <ko1@a...>
Date: Tue, 9 Jan 2018 14:03:08 +0900 (JST)
Subject: [ruby-changes:49594] mame:r61709 (trunk): parse.y: Remove redefinition of malloc
mame 2018-01-09 14:03:03 +0900 (Tue, 09 Jan 2018) New Revision: 61709 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61709 Log: 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. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 61708) +++ parse.y (revision 61709) @@ -66,15 +66,6 @@ https://github.com/ruby/ruby/blob/trunk/parse.y#L66 #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. */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/