summaryrefslogtreecommitdiff
path: root/constant.h
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-26 17:27:44 (GMT)
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-26 17:27:44 (GMT)
commitb88c9aa1fe0ec07db14544939f9001d66de1bd0a (patch)
tree1707c28259164f4ce98cd2c00a0e7c1a0da7a94e /constant.h
parenta11576816197d75fa17d959e74cabb612ba8b8be (diff)
* object.c (Init_Object), constant.h, variable.c
(rb_mod_private_constant, rb_mod_public_constant, set_const_visibility, rb_const_get_0): add Module#public_constant and private_constant. [ruby-dev:39685][ruby-core:32698] * test/ruby/test_module.rb: add tests for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'constant.h')
-rw-r--r--constant.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/constant.h b/constant.h
index 5c04b01..d347ea1 100644
--- a/constant.h
+++ b/constant.h
@@ -21,6 +21,8 @@ typedef struct rb_const_entry_struct {
VALUE value; /* should be mark */
} rb_const_entry_t;
+VALUE rb_mod_private_constant(int argc, VALUE *argv, VALUE obj);
+VALUE rb_mod_public_constant(int argc, VALUE *argv, VALUE obj);
void rb_free_const_table(st_table *tbl);
#endif /* CONSTANT_H */