summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-05 20:25:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-05 20:25:50 +0000
commit65ea2eed78bf5f70e70885dca9be3a40e38b67d2 (patch)
tree34d601b6dde1e9269ac79771e26cb44f8381fdfa
parentbe7e8ca7722344de7ff37148b530e142c9e5fbcf (diff)
* array.c (rb_ary_modify): export.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--array.c2
-rw-r--r--include/ruby/intern.h1
3 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2a629260e0f..97e8e799000 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Jan 6 05:25:49 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_modify): export.
+
Thu Jan 6 05:14:41 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/stringio/stringio.c (get_strio, strio_set_string)
diff --git a/array.c b/array.c
index 54213449dd6..43cc910cdc6 100644
--- a/array.c
+++ b/array.c
@@ -247,7 +247,7 @@ rb_ary_modify_check(VALUE ary)
rb_raise(rb_eSecurityError, "Insecure: can't modify array");
}
-static void
+void
rb_ary_modify(VALUE ary)
{
rb_ary_modify_check(ary);
diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index 7f194a9dd20..1e3a01b549b 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -54,6 +54,7 @@ VALUE rb_ary_new3(long,...);
VALUE rb_ary_new4(long, const VALUE *);
VALUE rb_ary_tmp_new(long);
void rb_ary_free(VALUE);
+void rb_ary_modify(VALUE);
VALUE rb_ary_freeze(VALUE);
VALUE rb_ary_aref(int, VALUE*, VALUE);
VALUE rb_ary_subseq(VALUE, long, long);