aboutsummaryrefslogtreecommitdiffstats
path: root/pack.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-27 05:29:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-27 05:29:49 +0000
commit02865d9e180cac9266ce0d5cc60e2782cad1d0b8 (patch)
treefc6ee90568444f58aeea654c4f2326cb5b1f73ae /pack.c
parent9c8faf66b8aee9ed7564b930251e57f782fbf684 (diff)
downloadruby-02865d9e180cac9266ce0d5cc60e2782cad1d0b8.tar.gz
internal.h: ONLY_FOR_INTERNAL_USE
* error.c (ruby_only_for_internal_use): raise fatal error when deprecated function only for internal use is called, not just a warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pack.c b/pack.c
index 9b4aa6a93f..ea7bd16fe8 100644
--- a/pack.c
+++ b/pack.c
@@ -220,15 +220,13 @@ str_associated(VALUE str)
void
rb_str_associate(VALUE str, VALUE add)
{
- rb_warn("rb_str_associate() is only for internal use and deprecated; do not use");
- str_associate(str, add);
+ ONLY_FOR_INTERNAL_USE("rb_str_associate()");
}
VALUE
rb_str_associated(VALUE str)
{
- rb_warn("rb_str_associated() is only for internal use and deprecated; do not use");
- return str_associated(str);
+ ONLY_FOR_INTERNAL_USE("rb_str_associated()");
}
/*