ruby-changes:3258
From: ko1@a...
Date: 28 Dec 2007 13:07:51 +0900
Subject: [ruby-changes:3258] nobu - Ruby:r14751 (trunk): * gc.c (os_obj_of): returns an enumerator if no block given. based on
nobu 2007-12-28 13:07:33 +0900 (Fri, 28 Dec 2007)
New Revision: 14751
Modified files:
trunk/ChangeLog
trunk/gc.c
Log:
* gc.c (os_obj_of): returns an enumerator if no block given. based on
a patch from Yugui <yugui AT yugui.sakura.ne.jp>. [ruby-dev:32828]
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14751&r2=14750
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/gc.c?r1=14751&r2=14750
Index: ChangeLog
===================================================================
--- ChangeLog (revision 14750)
+++ ChangeLog (revision 14751)
@@ -1,3 +1,8 @@
+Fri Dec 28 13:07:31 2007 Nobuyoshi Nakada <nobu@r...>
+
+ * gc.c (os_obj_of): returns an enumerator if no block given. based on
+ a patch from Yugui <yugui AT yugui.sakura.ne.jp>. [ruby-dev:32828]
+
Fri Dec 28 11:46:04 2007 Nobuyoshi Nakada <nobu@r...>
* tool/ytab.sed: skip yydestruct hack unless yymsg exists, for bison
Index: gc.c
===================================================================
--- gc.c (revision 14750)
+++ gc.c (revision 14751)
@@ -1798,7 +1798,7 @@
*/
static VALUE
-os_each_obj(int argc, VALUE *argv)
+os_each_obj(int argc, VALUE *argv, VALUE os)
{
VALUE of;
@@ -1806,6 +1806,7 @@
if (rb_scan_args(argc, argv, "01", &of) == 0) {
of = 0;
}
+ RETURN_ENUMERATOR(os, 1, &of);
return os_obj_of(of);
}
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml