summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-22 12:49:14 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-22 12:49:14 +0000
commit812b61acca8db165665ded69cdb2a7379da8ad52 (patch)
tree7ad83a65aee7efa31fbca7c61bcbb8e4d8079c61 /include
parent4295f3d99eccd368e4e08eb9c1d114660e4ea921 (diff)
downloadruby-812b61acca8db165665ded69cdb2a7379da8ad52.tar.gz
ruby-812b61acca8db165665ded69cdb2a7379da8ad52.tar.xz
ruby-812b61acca8db165665ded69cdb2a7379da8ad52.zip
merges r22255 from trunk into ruby_1_9_1.
* compile.c (compile_array_, defined_expr, iseq_compile_each): hide and freeze internal literal objects, to prevent from modifying. [ruby-dev:37959] * iseq.c (insn_operand_intern): copy internal literal objects. * insns.def (putstring, duparray): ditto. * string.c (rb_str_replace): exported. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@22532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/intern.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index 07ab6749a..68b0643aa 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -613,6 +613,7 @@ int rb_str_cmp(VALUE, VALUE);
VALUE rb_str_equal(VALUE str1, VALUE str2);
VALUE rb_str_drop_bytes(VALUE, long);
void rb_str_update(VALUE, long, long, VALUE);
+VALUE rb_str_replace(VALUE, VALUE);
VALUE rb_str_inspect(VALUE);
VALUE rb_str_dump(VALUE);
VALUE rb_str_split(VALUE, const char*);