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

ruby-changes:13242

From: nobu <ko1@a...>
Date: Fri, 18 Sep 2009 23:59:43 +0900 (JST)
Subject: [ruby-changes:13242] Ruby:r25002 (trunk): * dir.c (GlobPathValue): adjust return types. based on a patch

nobu	2009-09-18 23:59:29 +0900 (Fri, 18 Sep 2009)

  New Revision: 25002

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25002

  Log:
    * dir.c (GlobPathValue): adjust return types.  based on a patch
      from Naohisa Goto at [ruby-dev:39350].

  Modified files:
    trunk/ChangeLog
    trunk/dir.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25001)
+++ ChangeLog	(revision 25002)
@@ -1,3 +1,8 @@
+Fri Sep 18 23:59:27 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* dir.c (GlobPathValue): adjust return types.  based on a patch
+	  from Naohisa Goto at [ruby-dev:39350].
+
 Fri Sep 18 23:51:17 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* marshal.c (r_object0): entry regexp object before its encoding
Index: dir.c
===================================================================
--- dir.c	(revision 25001)
+++ dir.c	(revision 25002)
@@ -343,7 +343,7 @@
     /* can contain null bytes as separators */	\
     (!RB_TYPE_P(str, T_STRING) ?		\
      FilePathValue(str) :			\
-     (safe) ? rb_check_safe_obj(str) : (str))
+     (safe) ? (rb_check_safe_obj(str), (str)) : (str))
 
 static VALUE
 dir_s_alloc(VALUE klass)

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

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