summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-05 15:43:10 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-05 15:43:10 +0000
commit8b719a3c92918f0456c16de5393970c6dfe045ce (patch)
tree5b75447084e6f50e41d2c8ff9fe82cf0c29a4063
parent40f7a28c6495e29759ce350b2c9b9fd901231eb4 (diff)
* 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
-rw-r--r--ChangeLog5
-rw-r--r--ruby.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4931836c9d..2c774c22da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,
diff --git a/ruby.h b/ruby.h
index 37e84b601a..70e00ee1a4 100644
--- a/ruby.h
+++ b/ruby.h
@@ -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;