mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
eval.c: rename "rb_frozen_class_p" to "rb_class_modify_check"
Just refactoring. Despite its name, the function does NOT return a boolean but raises an exception when the class given is frozen. I don't think the new name "rb_class_modify_check" is the best, but it follows the precedeint "rb_ary_modify_check", and is definitely better than "*_p". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ceab460fca
commit
ffb09d8e87
7 changed files with 12 additions and 9 deletions
|
@ -38,6 +38,9 @@ DECLARE_DEPRECATED_FEATURE(2.2, rb_frame_pop);
|
|||
#define DECLARE_DEPRECATED_INTERNAL_FEATURE(func) \
|
||||
NORETURN(ERRORFUNC(("deprecated internal function"), DEPRECATED(void func(void))))
|
||||
|
||||
/* eval.c */
|
||||
NORETURN(ERRORFUNC(("internal function"), void rb_frozen_class_p(VALUE)));
|
||||
|
||||
/* error.c */
|
||||
DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_compile_error);
|
||||
DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_compile_error_with_enc);
|
||||
|
|
|
@ -203,7 +203,6 @@ VALUE rb_class_protected_instance_methods(int, const VALUE*, VALUE);
|
|||
VALUE rb_class_private_instance_methods(int, const VALUE*, VALUE);
|
||||
VALUE rb_obj_singleton_methods(int, const VALUE*, VALUE);
|
||||
void rb_define_method_id(VALUE, ID, VALUE (*)(ANYARGS), int);
|
||||
void rb_frozen_class_p(VALUE);
|
||||
void rb_undef(VALUE, ID);
|
||||
void rb_define_protected_method(VALUE, const char*, VALUE (*)(ANYARGS), int);
|
||||
void rb_define_private_method(VALUE, const char*, VALUE (*)(ANYARGS), int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue