From dac421a9c987b74d82a074f19f3e3e038f99cc01 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 4 Sep 2008 14:43:45 +0000 Subject: * include/ruby/intern.h (rb_file_open_str): declared. * io.c (rb_file_open_str): defined. * ext/zlib/zlib.c (gzfile_s_open): use rb_file_open_str instead of rb_file_open. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'io.c') diff --git a/io.c b/io.c index 4c8f41a924..ced821a6b5 100644 --- a/io.c +++ b/io.c @@ -4050,6 +4050,12 @@ rb_file_open_internal(VALUE io, VALUE filename, const char *mode) 0666); } +VALUE +rb_file_open_str(VALUE fname, const char *mode) +{ + return rb_file_open_internal(io_alloc(rb_cFile), fname, mode); +} + VALUE rb_file_open(const char *fname, const char *mode) { -- cgit v1.2.3