1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ruby.h (RSTRUCT_LEN, RSTRUCT_PTR): defined for source level

compatibility with ruby 1.9.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2006-02-05 15:43:10 +00:00
parent 40f7a28c64
commit 8b719a3c92
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Mon Feb 6 00:41:08 2006 Tanaka Akira <akr@m17n.org>
* ruby.h (RSTRUCT_LEN, RSTRUCT_PTR): defined for source level
compatibility with ruby 1.9.
Sun Feb 5 21:05:34 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* numeric.c (fix_to_s): removed workaround for radix 2. Historically,

2
ruby.h
View file

@ -401,6 +401,8 @@ struct RStruct {
long len;
VALUE *ptr;
};
#define RSTRUCT_LEN(st) (RSTRUCT(st)->len)
#define RSTRUCT_PTR(st) (RSTRUCT(st)->ptr)
struct RBignum {
struct RBasic basic;