summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-14 14:09:41 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-14 14:09:41 +0000
commit269856a4a168d069efb23d7094109fd1165b5b17 (patch)
tree7d5e7b963917e6522b08342f12be9a8443e5600e
parent15352965c22e4eadef592a9c4efc8a8506fad4fe (diff)
parse.y: Remove a code for old yacc
The current parse.y won't compile with yacc since it depends on many bison's extensions. Also, configure.ac does not have a check for yacc, so the macro OLD_YACC is no longer used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--parse.y9
1 files changed, 0 insertions, 9 deletions
diff --git a/parse.y b/parse.y
index 44d1af9c98..ecc94d4d04 100644
--- a/parse.y
+++ b/parse.y
@@ -788,15 +788,6 @@ PRINTF_ARGS(static void parser_compile_error(struct parser_params*, const char *
# define PARSER_ARG p,
#endif
-/* Older versions of Yacc set YYMAXDEPTH to a very low value by default (150,
- for instance). This is too low for Ruby to parse some files, such as
- date/format.rb, therefore bump the value up to at least Bison's default. */
-#ifdef OLD_YACC
-#ifndef YYMAXDEPTH
-#define YYMAXDEPTH 10000
-#endif
-#endif
-
static void token_info_push(struct parser_params*, const char *token, const rb_code_location_t *loc);
static void token_info_pop(struct parser_params*, const char *token, const rb_code_location_t *loc);
%}