зеркало из https://github.com/github/ruby.git
* include/ruby/ruby.h: Added NUM2MODET() and MODET2NUM() default definition.
Because r30686 introduced win32 build failure. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
29b1c2a501
Коммит
eea774d029
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Jan 30 01:02:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
|
* include/ruby/ruby.h: Added NUM2MODET() and MODET2NUM() default definition.
|
||||||
|
Because r30686 introduced win32 build failure.
|
||||||
|
|
||||||
Sat Jan 29 22:16:26 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
Sat Jan 29 22:16:26 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* array.c (rb_ary_join): [].join.encoding must be US-ASCII.
|
* array.c (rb_ary_join): [].join.encoding must be US-ASCII.
|
||||||
|
|
|
@ -315,6 +315,12 @@ rb_long2int(long n) {rb_long2int_internal(n, i); return i;}
|
||||||
#ifndef NUM2GIDT
|
#ifndef NUM2GIDT
|
||||||
#define NUM2GIDT(v) NUM2LONG(v)
|
#define NUM2GIDT(v) NUM2LONG(v)
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef NUM2MODET
|
||||||
|
#define NUM2MODET(v) NUM2INT(v)
|
||||||
|
#endif
|
||||||
|
#ifndef MODET2NUM
|
||||||
|
#define MODET2NUM(v) INT2NUM(v)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define FIX2LONG(x) (long)RSHIFT((SIGNED_VALUE)(x),1)
|
#define FIX2LONG(x) (long)RSHIFT((SIGNED_VALUE)(x),1)
|
||||||
#define FIX2ULONG(x) ((((VALUE)(x))>>1)&LONG_MAX)
|
#define FIX2ULONG(x) ((((VALUE)(x))>>1)&LONG_MAX)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче