summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-14 10:29:25 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-14 10:29:25 +0000
commit0b35e9e5ddb329dac027d72851db015a738852d7 (patch)
tree001a9eb630f1b96357a951357e9b3b2607149a58 /enum.c
parent0d94434eca76abeb13dda88d2695777bbca7f31a (diff)
* enumerator.c (lazy_take): add Enumerable::Lazy#take.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/enum.c b/enum.c
index 3a85c50..2c493e4 100644
--- a/enum.c
+++ b/enum.c
@@ -17,15 +17,6 @@
#define STATIC_ASSERT(name, expr) typedef int static_assert_##name##_check[1 - 2*!(expr)]
-#define NEW_MEMO(a, b, c) rb_node_newnode(NODE_MEMO, (a), (b), (c))
-
-#define roomof(x, y) ((sizeof(x) + sizeof(y) - 1) / sizeof(y))
-#define MEMO_FOR(type, value) ((type *)RARRAY_PTR(value))
-#define NEW_MEMO_FOR(type, value) \
- (rb_ary_set_len(((value) = rb_ary_tmp_new(roomof(type, VALUE))), \
- roomof(type, VALUE)), \
- MEMO_FOR(type, value))
-
VALUE rb_mEnumerable;
static ID id_next;
#define id_each idEach