diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-22 12:06:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-22 12:06:42 +0000 |
commit | 34918aa83260246e545911efe6e1672507c3e699 (patch) | |
tree | 8815d9f98358df4f59fc18a49a43e2a81f03e7d3 /include | |
parent | c276b7380499eb5b181eca838ec86fc480d4ac94 (diff) | |
download | ruby-34918aa83260246e545911efe6e1672507c3e699.tar.gz |
* object.c (rb_mod_{const,cvar}_defined, rb_obj_ivar_defined):
avoid inadvertent symbol creation in reflection methods. based
on a patch by Jeremy Evans at [ruby-core:38367]. [Feature #5072]
* vm_method.c (rb_mod_method_defined)
(rb_mod_{public,private,protected}_method_defined)
(obj_respond_to): ditto.
* parse.y (rb_check_id): new function returns already interned ID
or 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/ruby.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 340bea102a..6b106596f3 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1098,6 +1098,7 @@ ID rb_intern(const char*); ID rb_intern2(const char*, long); ID rb_intern_str(VALUE str); const char *rb_id2name(ID); +ID rb_check_id(VALUE); ID rb_to_id(VALUE); VALUE rb_id2str(ID); |