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

ruby-changes:54689

From: nobu <ko1@a...>
Date: Tue, 22 Jan 2019 16:25:14 +0900 (JST)
Subject: [ruby-changes:54689] nobu:r66905 (trunk): ripper.y: get rid of compile error

nobu	2019-01-22 16:25:08 +0900 (Tue, 22 Jan 2019)

  New Revision: 66905

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

  Log:
    ripper.y: get rid of compile error
    
    yystpcpy is always used by yysyntax_error in bison 2.3, but may
    not used by other than yytnamerr in newer bison.

  Modified files:
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 66904)
+++ parse.y	(revision 66905)
@@ -611,9 +611,6 @@ rb_strterm_mark(VALUE obj) https://github.com/ruby/ruby/blob/trunk/parse.y#L611
 
 #define yytnamerr(yyres, yystr) (YYSIZE_T)rb_yytnamerr(yyres, yystr)
 size_t rb_yytnamerr(char *yyres, const char *yystr);
-#ifdef RIPPER
-#define yystpcpy Not used
-#endif
 
 #define TOKEN2ID(tok) ( \
     tTOKEN_LOCAL_BEGIN<(tok)&&(tok)<tTOKEN_LOCAL_END ? TOKEN2LOCALID(tok) : \
@@ -11650,6 +11647,8 @@ Init_ripper(void) https://github.com/ruby/ruby/blob/trunk/parse.y#L11647
     id_warning = rb_intern_const("warning");
     id_gets = rb_intern_const("gets");
 
+    (void)yystpcpy; /* may not used in newer bison */
+
     InitVM(ripper);
 }
 

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

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