mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
19991214
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ea14c6e09a
commit
d6657f1c07
11 changed files with 28 additions and 12 deletions
4
ruby.h
4
ruby.h
|
@ -89,7 +89,7 @@ extern "C" {
|
|||
---->> ruby requires sizeof(void*) == sizeof(long) to be compiled. <<----
|
||||
#endif
|
||||
typedef unsigned long VALUE;
|
||||
typedef unsigned int ID;
|
||||
typedef unsigned long ID;
|
||||
|
||||
#ifdef __STDC__
|
||||
# include <limits.h>
|
||||
|
@ -117,6 +117,8 @@ typedef unsigned int ID;
|
|||
#define INT2FIX(i) (VALUE)(((long)(i))<<1 | FIXNUM_FLAG)
|
||||
VALUE rb_int2inum _((long));
|
||||
#define INT2NUM(v) rb_int2inum(v)
|
||||
VALUE rb_uint2inum _((unsigned long));
|
||||
#define UINT2NUM(v) rb_uint2inum(v)
|
||||
|
||||
#define FIX2LONG(x) RSHIFT((long)x,1)
|
||||
#define FIX2ULONG(x) (((unsigned long)(x))>>1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue