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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-05-12 12:13:01 +00:00
Родитель fa1e2d957e
Коммит d2b4011a94
2 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Sun May 12 21:12:42 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* 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@gmail.com> Wed May 8 13:46:52 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* include/ruby/intern.h (rb_iv_set, rb_iv_get): removed. Because * include/ruby/intern.h (rb_iv_set, rb_iv_get): removed. Because

Просмотреть файл

@ -239,6 +239,7 @@ VALUE rb_ull2inum(unsigned LONG_LONG);
#define ULL2NUM(v) rb_ull2inum(v) #define ULL2NUM(v) rb_ull2inum(v)
#endif #endif
#ifndef OFFT2NUM
#if SIZEOF_OFF_T > SIZEOF_LONG && defined(HAVE_LONG_LONG) #if SIZEOF_OFF_T > SIZEOF_LONG && defined(HAVE_LONG_LONG)
# define OFFT2NUM(v) LL2NUM(v) # define OFFT2NUM(v) LL2NUM(v)
#elif SIZEOF_OFF_T == SIZEOF_LONG #elif SIZEOF_OFF_T == SIZEOF_LONG
@ -246,6 +247,7 @@ VALUE rb_ull2inum(unsigned LONG_LONG);
#else #else
# define OFFT2NUM(v) INT2NUM(v) # define OFFT2NUM(v) INT2NUM(v)
#endif #endif
#endif
#if SIZEOF_SIZE_T > SIZEOF_LONG && defined(HAVE_LONG_LONG) #if SIZEOF_SIZE_T > SIZEOF_LONG && defined(HAVE_LONG_LONG)
# define SIZET2NUM(v) ULL2NUM(v) # define SIZET2NUM(v) ULL2NUM(v)