mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
variable: cleanup to use rb_const_lookup
* variable.c: cleanup to use rb_const_lookup * vm_insnshelper.c: ditto This reduces casting and long lines. This should make it easier to switch to alternatives to st for constant storage. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0ee5c55e51
commit
4938045735
4 changed files with 39 additions and 22 deletions
|
@ -32,5 +32,6 @@ VALUE rb_public_const_get_from(VALUE klass, ID id);
|
|||
int rb_public_const_defined(VALUE klass, ID id);
|
||||
int rb_public_const_defined_at(VALUE klass, ID id);
|
||||
int rb_public_const_defined_from(VALUE klass, ID id);
|
||||
rb_const_entry_t *rb_const_lookup(VALUE klass, ID id);
|
||||
|
||||
#endif /* CONSTANT_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue