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

ruby-changes:48109

From: yui-knk <ko1@a...>
Date: Sat, 21 Oct 2017 09:14:37 +0900 (JST)
Subject: [ruby-changes:48109] yui-knk:r60223 (trunk): Fix build on Windows

yui-knk	2017-10-21 09:14:32 +0900 (Sat, 21 Oct 2017)

  New Revision: 60223

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

  Log:
    Fix build on Windows
    
    * parse.y (new_cdecl_gen): Rename local variable name
      from cdecl to nd_cdecl. We can not use cdecl on Windows.

  Modified files:
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 60222)
+++ parse.y	(revision 60223)
@@ -9447,9 +9447,9 @@ new_postarg_gen(struct parser_params *pa https://github.com/ruby/ruby/blob/trunk/parse.y#L9447
 static NODE *
 new_cdecl_gen(struct parser_params *parser, ID v, NODE *val, NODE *path, int column)
 {
-    NODE *cdecl = NEW_CDECL(v, val, path);
-    nd_set_column(cdecl, column);
-    return cdecl;
+    NODE *nd_cdecl = NEW_CDECL(v, val, path);
+    nd_set_column(nd_cdecl, column);
+    return nd_cdecl;
 }
 
 static NODE *

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

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