mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 03:24:00 +02:00
* include/ruby/ruby.h (PRI[diouxX]VALUE): printf format for VALUE.
* gc.c (assign_heap_slot): suppress a warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d457fdad2d
commit
0343750b62
3 changed files with 19 additions and 1 deletions
|
@ -85,12 +85,24 @@ typedef unsigned long VALUE;
|
|||
typedef unsigned long ID;
|
||||
# define SIGNED_VALUE long
|
||||
# define SIZEOF_VALUE SIZEOF_LONG
|
||||
# define PRIdVALUE "ld"
|
||||
# define PRIiVALUE "li"
|
||||
# define PRIoVALUE "lo"
|
||||
# define PRIuVALUE "lu"
|
||||
# define PRIxVALUE "lx"
|
||||
# define PRIXVALUE "lX"
|
||||
#elif SIZEOF_LONG_LONG == SIZEOF_VOIDP
|
||||
typedef unsigned LONG_LONG VALUE;
|
||||
typedef unsigned LONG_LONG ID;
|
||||
# define SIGNED_VALUE LONG_LONG
|
||||
# define LONG_LONG_VALUE 1
|
||||
# define SIZEOF_VALUE SIZEOF_LONG_LONG
|
||||
# define PRIdVALUE "lld"
|
||||
# define PRIiVALUE "lli"
|
||||
# define PRIoVALUE "llo"
|
||||
# define PRIuVALUE "llu"
|
||||
# define PRIxVALUE "llx"
|
||||
# define PRIXVALUE "llX"
|
||||
#else
|
||||
# error ---->> ruby requires sizeof(void*) == sizeof(long) to be compiled. <<----
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue