diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ruby.h | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -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, @@ -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; |