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

ruby-changes:12231

From: nobu <ko1@a...>
Date: Wed, 1 Jul 2009 06:47:30 +0900 (JST)
Subject: [ruby-changes:12231] Ruby:r23917 (trunk): * enum.c (enum_grep): gets rid of type-punning calls.

nobu	2009-07-01 06:47:14 +0900 (Wed, 01 Jul 2009)

  New Revision: 23917

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

  Log:
    * enum.c (enum_grep): gets rid of type-punning calls.

  Modified files:
    trunk/ChangeLog
    trunk/enum.c
    trunk/version.h

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 23916)
+++ ChangeLog	(revision 23917)
@@ -1,3 +1,7 @@
+Wed Jul  1 06:47:09 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* enum.c (enum_grep): gets rid of type-punning calls.
+
 Tue Jun 30 17:44:24 2009  Yukihiro Matsumoto  <matz@r...>
 
 	* re.c (reg_match_pos): adjust offset based on characters, not
@@ -9,7 +13,7 @@
 
 Tue Jun 30 16:57:07 2009  Nobuyoshi Nakada  <nobu@r...>
 
-	* tool/rbinstall.rb: renamed to get rid of collision agains
+	* tool/rbinstall.rb: renamed to get rid of collision against
 	  instruction.rb on command line completion of shell.
 
 	* tool/mkconfig.rb (RbConfig.expand): get rid of exceptions on
Index: enum.c
===================================================================
--- enum.c	(revision 23916)
+++ enum.c	(revision 23917)
@@ -31,8 +31,9 @@
 #define enum_yield rb_yield_values2
 
 static VALUE
-grep_i(VALUE i, VALUE *arg, int argc, VALUE *argv)
+grep_i(VALUE i, VALUE args, int argc, VALUE *argv)
 {
+    VALUE *arg = (VALUE *)args;
     ENUM_WANT_SVALUE();
 
     if (RTEST(rb_funcall(arg[0], id_eqq, 1, i))) {
@@ -42,8 +43,9 @@
 }
 
 static VALUE
-grep_iter_i(VALUE i, VALUE *arg, int argc, VALUE *argv)
+grep_iter_i(VALUE i, VALUE args, int argc, VALUE *argv)
 {
+    VALUE *arg = (VALUE *)args;
     ENUM_WANT_SVALUE();
 
     if (RTEST(rb_funcall(arg[0], id_eqq, 1, i))) {
Index: version.h
===================================================================
--- version.h	(revision 23916)
+++ version.h	(revision 23917)
@@ -1,5 +1,5 @@
 #define RUBY_VERSION "1.9.2"
-#define RUBY_RELEASE_DATE "2009-06-30"
+#define RUBY_RELEASE_DATE "2009-07-01"
 #define RUBY_PATCHLEVEL -1
 #define RUBY_BRANCH_NAME "trunk"
 
@@ -7,8 +7,8 @@
 #define RUBY_VERSION_MINOR 9
 #define RUBY_VERSION_TEENY 1
 #define RUBY_RELEASE_YEAR 2009
-#define RUBY_RELEASE_MONTH 6
-#define RUBY_RELEASE_DAY 30
+#define RUBY_RELEASE_MONTH 7
+#define RUBY_RELEASE_DAY 1
 
 #include "ruby/version.h"
 

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

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