diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-16 14:17:14 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-16 14:17:14 +0000 |
commit | cd9124f9b7d2ac86f024eecc1e142ca2338a14e1 (patch) | |
tree | 46d2b5cfc923aa18bc9f70405a0e6460252a4196 /include | |
parent | 4ca367fed442858b6a22f2009318a0fab35f4646 (diff) | |
download | ruby-cd9124f9b7d2ac86f024eecc1e142ca2338a14e1.tar.gz ruby-cd9124f9b7d2ac86f024eecc1e142ca2338a14e1.tar.xz ruby-cd9124f9b7d2ac86f024eecc1e142ca2338a14e1.zip |
* 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
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/intern.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 285981b4a..899a7b3ca 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -275,6 +275,8 @@ int rb_method_basic_definition_p(VALUE, ID); VALUE rb_eval_cmd(VALUE, VALUE, int); int rb_obj_respond_to(VALUE, ID, int); int rb_respond_to(VALUE, ID); +void rb_define_notimplement_method_id(VALUE mod, ID id, int noex); +VALUE rb_f_notimplement(int argc, VALUE *argv, VALUE obj); void rb_interrupt(void); VALUE rb_apply(VALUE, ID, VALUE); void rb_backtrace(void); |