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
This commit is contained in:
mame 2018-01-09 05:03:03 +00:00
Родитель 0d1630314b
Коммит 3a38b3c5d1
1 изменённых файлов: 0 добавлений и 9 удалений

Просмотреть файл

@ -66,15 +66,6 @@
#define RUBY_SET_YYLLOC(Current) \ #define RUBY_SET_YYLLOC(Current) \
rb_parser_set_code_range(parser, &(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 { enum lex_state_bits {
EXPR_BEG_bit, /* ignore newline, +/- is a sign. */ EXPR_BEG_bit, /* ignore newline, +/- is a sign. */
EXPR_END_bit, /* newline significant, +/- is an operator. */ EXPR_END_bit, /* newline significant, +/- is an operator. */