summaryrefslogtreecommitdiff
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
commitd226ce8decef356c7447efb6b6b325bc8fc53dba (patch)
treefc6ee90568444f58aeea654c4f2326cb5b1f73ae /pack.c
parentf8fe5349802f2d73a70b0b7a190a3c7071efa0f4 (diff)
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()");
}
/*