From bd15d4ca78dd8a9c60e0edf8814fb8e971d35097 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 7 Jun 2013 10:01:19 +0000 Subject: * 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 --- struct.c | 1 - 1 file changed, 1 deletion(-) (limited to 'struct.c') diff --git a/struct.c b/struct.c index d938c0ed55..9365ffe90d 100644 --- a/struct.c +++ b/struct.c @@ -125,7 +125,6 @@ static VALUE rb_struct_ref7(VALUE obj) {return RSTRUCT_PTR(obj)[7];} static VALUE rb_struct_ref8(VALUE obj) {return RSTRUCT_PTR(obj)[8];} static VALUE rb_struct_ref9(VALUE obj) {return RSTRUCT_PTR(obj)[9];} -#define numberof(array) (int)(sizeof(array) / sizeof((array)[0])) #define N_REF_FUNC numberof(ref_func) static VALUE (*const ref_func[])(VALUE) = { -- cgit v1.2.3