diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-15 07:35:54 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-15 07:35:54 +0000 |
commit | d11ce2be2ed285d6959977d5d7ee2f0f110141d1 (patch) | |
tree | a53c2eafeda52d9dccb80367887640487a1731bc /constant.h | |
parent | 579ffd94da9fa533c8e4fb63a388d8b2957f7b85 (diff) | |
download | ruby-d11ce2be2ed285d6959977d5d7ee2f0f110141d1.tar.gz |
merge revision(s) 62394,62395: [Backport #14469]
vm_insnhelper.c: rb_autoloading_value flag
* vm_insnhelper.c (vm_get_ev_const): add flag argument of
`rb_autoloading_value`.
* constant.h (rb_autoloading_value): moved the declaration from
vm_core.h for `rb_const_flag_t`. [ruby-core:85516] [Bug #14469]
variable.c: flags at autoloading
* variable.c (const_tbl_update): flags by deprecate_constant /
private_constant set during autoloading should be preserved
after required. [ruby-core:85516] [Bug #14469]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@62761 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 76b59fa047..fcccf07384 100644 --- a/constant.h +++ b/constant.h @@ -46,5 +46,6 @@ 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); +int rb_autoloading_value(VALUE mod, ID id, VALUE *value, rb_const_flag_t *flag); #endif /* CONSTANT_H */ |