summaryrefslogtreecommitdiffstats
path: root/intern.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-30 15:33:03 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-30 15:33:03 +0000
commitfdc9afd6885a5f50d957e826c8694b72de70673d (patch)
treef6ffbb816a1fb52687c289d2e109fb02c32a5352 /intern.h
parent64b8576b078a364ae83a005230a9dfcbe0c772c6 (diff)
downloadruby-fdc9afd6885a5f50d957e826c8694b72de70673d.tar.gz
ruby-fdc9afd6885a5f50d957e826c8694b72de70673d.tar.xz
ruby-fdc9afd6885a5f50d957e826c8694b72de70673d.zip
* string.c (rb_str_locktmp): lock string temporarily.
* string.c (str_independent): add tmplock check. * io.c (io_write): lock output string temporarily. [ruby-dev:24649] * io.c (io_write): use rb_str_locktmp(). * io.c (read_all): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'intern.h')
-rw-r--r--intern.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/intern.h b/intern.h
index 61fb5b5ab..f97afade4 100644
--- a/intern.h
+++ b/intern.h
@@ -403,6 +403,8 @@ VALUE rb_str_buf_cat2 _((VALUE, const char*));
VALUE rb_obj_as_string _((VALUE));
VALUE rb_check_string_type _((VALUE));
VALUE rb_str_dup _((VALUE));
+VALUE rb_str_locktmp _((VALUE));
+VALUE rb_str_unlocktmp _((VALUE));
VALUE rb_str_dup_frozen _((VALUE));
VALUE rb_str_plus _((VALUE, VALUE));
VALUE rb_str_times _((VALUE, VALUE));