summaryrefslogtreecommitdiff
path: root/ruby.h
diff options
context:
space:
mode:
authorYukihiro Matsumoto <matz@ruby-lang.org>1995-04-10 18:36:06 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-17 22:09:32 +0900
commitb2420d8ffa4d347a75efbbdc376f4ce65c0eb172 (patch)
treebd40c44d9155d9cb10232a0e962dc1cc221c2c8b /ruby.h
parent11e21a36bc935088f88a7cd1548f8c74c3bf6099 (diff)
version 0.73v0_73
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-0.73.tar.gz Mon Apr 10 18:36:06 1995 Yukihiro Matsumoto (matz@ix-02) * version 0.73 Fri Apr 7 13:51:08 1995 Yukihiro Matsumoto (matz@ix-02) * cons.c->assoc.c: consの余計な機能は外してpairとしての機能だけを 残した.enumerableをincludeするのもやめた. * string.c(esub): 文字列置換イテレータ.perlのs///eの相当する.
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/ruby.h b/ruby.h
index aed41ee..24ebc4c 100644
--- a/ruby.h
+++ b/ruby.h
@@ -100,7 +100,7 @@ extern VALUE C_Data;
#define T_HASH 0x0a
#define T_STRUCT 0x0b
#define T_BIGNUM 0x0c
-#define T_CONS 0x0f
+#define T_ASSOC 0x0f
#define T_DATA 0x10
#define T_SCOPE 0xfe
@@ -216,13 +216,13 @@ struct RBignum {
USHORT *digits;
};
-struct RCons {
+struct RAssoc {
struct RBasic basic;
VALUE car, cdr;
};
-#define CAR(c) (RCONS(c)->car)
-#define CDR(c) (RCONS(c)->cdr)
+#define CAR(c) (RASSOC(c)->car)
+#define CDR(c) (RASSOC(c)->cdr)
#define R_CAST(st) (struct st*)
#define RBASIC(obj) (R_CAST(RBasic)(obj))
@@ -236,7 +236,7 @@ struct RCons {
#define RDATA(obj) (R_CAST(RData)(obj))
#define RSTRUCT(obj) (R_CAST(RStruct)(obj))
#define RBIGNUM(obj) (R_CAST(RBignum)(obj))
-#define RCONS(obj) (R_CAST(RCons)(obj))
+#define RASSOC(obj) (R_CAST(RAssoc)(obj))
#define FL_SINGLE (1<<8)
#define FL_MARK (1<<9)