From cd9124f9b7d2ac86f024eecc1e142ca2338a14e1 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 16 Apr 2009 14:17:14 +0000 Subject: * class.c (rb_define_method_id): use rb_define_notimplement_method_id if rb_f_notimplement is given. (rb_define_protected_method): ditto. (rb_define_private_method): ditto. (rb_define_method): use rb_define_method_id. * include/ruby/intern.h (rb_f_notimplement): declared. (rb_define_notimplement_method_id): declared. * proc.c (method_inspect): show not-implemented. * vm_method.c (notimplement_body): new variable. (rb_notimplement_body_p): new function. (rb_method_boundp): return false if not implemented. (rb_f_notimplement): new function. (rb_define_notimplement_method_id): new function. * process.c (rb_f_fork): use rb_f_notimplement if not implemented. * file.c (rb_file_s_lchmod): use rb_f_notimplement if not implemented. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index a1b38f109..5a9d04f92 100644 --- a/file.c +++ b/file.c @@ -1926,12 +1926,7 @@ rb_file_s_lchmod(int argc, VALUE *argv) return LONG2FIX(n); } #else -static VALUE -rb_file_s_lchmod(int argc, VALUE *argv) -{ - rb_notimplement(); - return Qnil; /* not reached */ -} +#define rb_file_s_lchmod rb_f_notimplement #endif struct chown_args { -- cgit