summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-07 10:01:19 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-07 10:01:19 +0000
commitbd15d4ca78dd8a9c60e0edf8814fb8e971d35097 (patch)
treed170cde9a94bb36ba5baf58fb562278f74ce5ae1 /gc.c
parent8e65ff7e312b1d18f7aec9d8bac066ef13cb6705 (diff)
* internal.h (numberof): Gathered from various files.
* array.c, math.c, thread_pthread.c, iseq.c, enum.c, string.c, io.c, load.c, compile.c, struct.c, eval.c, gc.c, parse.y, process.c, error.c, ruby.c: Remove the definitions of numberof. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index eb37abd82b..aaaff2bf55 100644
--- a/gc.c
+++ b/gc.c
@@ -2825,8 +2825,6 @@ mark_const_tbl(rb_objspace_t *objspace, st_table *tbl)
((start) = STACK_END, (end) = STACK_START) : ((start) = STACK_START, (end) = STACK_END+(appendix)))
#endif
-#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
-
static void
mark_current_machine_context(rb_objspace_t *objspace, rb_thread_t *th)
{