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

ruby-changes:28621

From: nobu <ko1@a...>
Date: Sun, 12 May 2013 21:13:11 +0900 (JST)
Subject: [ruby-changes:28621] nobu:r40673 (trunk): ruby.h: OFFT2NUM redefinition

nobu	2013-05-12 21:13:01 +0900 (Sun, 12 May 2013)

  New Revision: 40673

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

  Log:
    ruby.h: OFFT2NUM redefinition
    
    * include/ruby/ruby.h (OFFT2NUM): RUBY_REPLACE_TYPE also defines macro
      to convert int type to VALUE if found.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/ruby.h

Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 40672)
+++ include/ruby/ruby.h	(revision 40673)
@@ -239,6 +239,7 @@ VALUE rb_ull2inum(unsigned LONG_LONG); https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L239
 #define ULL2NUM(v) rb_ull2inum(v)
 #endif
 
+#ifndef OFFT2NUM
 #if SIZEOF_OFF_T > SIZEOF_LONG && defined(HAVE_LONG_LONG)
 # define OFFT2NUM(v) LL2NUM(v)
 #elif SIZEOF_OFF_T == SIZEOF_LONG
@@ -246,6 +247,7 @@ VALUE rb_ull2inum(unsigned LONG_LONG); https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L247
 #else
 # define OFFT2NUM(v) INT2NUM(v)
 #endif
+#endif
 
 #if SIZEOF_SIZE_T > SIZEOF_LONG && defined(HAVE_LONG_LONG)
 # define SIZET2NUM(v) ULL2NUM(v)
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40672)
+++ ChangeLog	(revision 40673)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun May 12 21:12:42 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* include/ruby/ruby.h (OFFT2NUM): RUBY_REPLACE_TYPE also defines macro
+	  to convert int type to VALUE if found.
+
 Wed May  8 13:46:52 2013  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* include/ruby/intern.h (rb_iv_set, rb_iv_get): removed. Because

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

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