summaryrefslogtreecommitdiffstats
path: root/rubyio.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-16 02:52:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-16 02:52:25 +0000
commit16cfb5367f78c3d2d7cff66bad488aef2aeb7eaa (patch)
tree6036f34b37a752dbc9708aa110a936a13484b5a7 /rubyio.h
parent41232378fceb3d2d113af3573df675203ae3d896 (diff)
downloadruby-16cfb5367f78c3d2d7cff66bad488aef2aeb7eaa.tar.gz
ruby-16cfb5367f78c3d2d7cff66bad488aef2aeb7eaa.tar.xz
ruby-16cfb5367f78c3d2d7cff66bad488aef2aeb7eaa.zip
* io.c (rb_io_fread): renamed from io_fread and made extern.
* marshal.c (r_bytes0): check if successfully read, use rb_io_fread() instead of fread() to be preemptive. (ruby-bugs-ja:PR#294, 295) * rubyio.h (rb_io_fread): added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rubyio.h')
-rw-r--r--rubyio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rubyio.h b/rubyio.h
index 3ec91680b..8d2a30751 100644
--- a/rubyio.h
+++ b/rubyio.h
@@ -57,6 +57,7 @@ typedef struct OpenFile {
FILE *rb_fopen _((const char*, const char*));
FILE *rb_fdopen _((int, const char*));
int rb_getc _((FILE*));
+long rb_io_fread _((char *, long, FILE *));
int rb_io_mode_flags _((const char*));
void rb_io_check_writable _((OpenFile*));
void rb_io_check_readable _((OpenFile*));