diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-04 01:12:53 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-04 01:12:53 +0000 |
commit | 493804573589416bb3436ecf25fb44c6f83a9c1e (patch) | |
tree | 2af43f7e5bb5b8e65b6f9ab2751b4ffc74161115 /constant.h | |
parent | 0ee5c55e51f0d4c0a7170b7985d3cb9d361be98e (diff) | |
download | ruby-493804573589416bb3436ecf25fb44c6f83a9c1e.tar.gz |
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
Diffstat (limited to 'constant.h')
-rw-r--r-- | constant.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/constant.h b/constant.h index 77dd696b7e..8c854bfffa 100644 --- a/constant.h +++ b/constant.h @@ -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 */ |