summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-12 10:42:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-12 10:42:36 +0000
commit6cca5fc7ea3421b3601598c10e50ab0f2706baa4 (patch)
tree2d425228fcba503e2f0a82726548f477cefc5da0 /include
parent39bd52f06949aeff90c5dc9be3a262c53ddfd9c5 (diff)
downloadruby-6cca5fc7ea3421b3601598c10e50ab0f2706baa4.tar.gz
ruby-6cca5fc7ea3421b3601598c10e50ab0f2706baa4.tar.xz
ruby-6cca5fc7ea3421b3601598c10e50ab0f2706baa4.zip
* 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/trunk@22255 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 100b6c097..e26842857 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -617,6 +617,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*);