[前][次][番号順一覧][スレッド一覧]

ruby-changes:49702

From: mame <ko1@a...>
Date: Sun, 14 Jan 2018 23:09:47 +0900 (JST)
Subject: [ruby-changes:49702] mame:r61819 (trunk): parse.y: Remove a code for old yacc

mame	2018-01-14 23:09:41 +0900 (Sun, 14 Jan 2018)

  New Revision: 61819

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61819

  Log:
    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.

  Modified files:
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 61818)
+++ parse.y	(revision 61819)
@@ -788,15 +788,6 @@ PRINTF_ARGS(static void parser_compile_e https://github.com/ruby/ruby/blob/trunk/parse.y#L788
 # 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);
 %}

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]