summaryrefslogtreecommitdiff
path: root/rubyio.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-11-10 07:16:52 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-11-10 07:16:52 +0000
commit087c83d7ceed6893afff93066937fb570ae4a115 (patch)
treeb138eb4084c1c032e6eb11d78300976dbc0f6f72 /rubyio.h
parent13f2744b2e8ac8cc3e727051b2d200fa225a733a (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rubyio.h')
-rw-r--r--rubyio.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/rubyio.h b/rubyio.h
index 2a3455d..00d55ba 100644
--- a/rubyio.h
+++ b/rubyio.h
@@ -32,7 +32,7 @@ typedef struct OpenFile {
#define FMODE_BINMODE 4
#define FMODE_SYNC 8
-#define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(obj)->fptr)
+#define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)
#define MakeOpenFile(obj, fp) do {\
fp = 0;\
@@ -57,6 +57,8 @@ void rb_io_check_readable _((OpenFile*));
void rb_io_fptr_finalize _((OpenFile*));
void rb_io_synchronized _((OpenFile*));
void rb_io_check_closed _((OpenFile*));
+
+VALUE rb_io_taint_check _((VALUE));
void rb_eof_error _((void));
void rb_read_check _((FILE*));