This is a multi-part message in MIME format.
------ extPart_000_0007_01C1D67D.90011290
Content-Type: text/plain;
charset s-ascii"
Content-Transfer-Encoding: 7bit
The attachment fixes a compile error in io.c
/Christoph
------ extPart_000_0007_01C1D67D.90011290
Content-Type: application/octet-stream;
name o.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename o.diff"
--- io.c.1.127 Thu Mar 28 16:45:38 2002
+++ io.c Thu Mar 28 16:38:24 2002
@@ -244,9 +244,9 @@
0Atatic void
-io_fflush(f, path)
+io_fflush(f, fptr)
ILE *f;
- const char *path;
+ OpenFile *fptr;
nt n;
0A@@ -254,7 +254,7 @@
RAP_BEG;
3D fflush(f);
RAP_END;
- if (n == EOF) rb_sys_fail(path);
+ if (n == EOF) rb_sys_fail(fptr-> path);
ptr->mode &= ~FMODE_WBUF;
0A@@ -299,7 +299,7 @@
endif
f (fptr->mode & FMODE_SYNC) {
- io_fflush(f, fptr->path);
+ io_fflush(f, fptr);
lse {
fptr->mode |= FMODE_WBUF;
@@ -333,8 +333,8 @@
etOpenFile(io, fptr);
b_io_check_writable(fptr);
3D GetWriteFile(fptr);
-
- io_fflush(f, fptr->path);
+
+ io_fflush(f, fptr);
ptr->mode &= ~FMODE_WBUF;
0Aeturn io;
@@ -484,8 +484,8 @@
etOpenFile(io, fptr);
b_io_check_writable(fptr);
3D GetWriteFile(fptr);
-
- io_fflush(f, fptr->path);
+
+ io_fflush(f, fptr);
ptr->mode &= ~FMODE_WBUF;
f (fsync(fileno(f)) < 0)
rb_sys_fail(fptr->path);
@@ -1477,7 +1477,7 @@
nt flags;
0Awitch (mode & (O_RDONLY|O_WRONLY|O_RDWR)) {
- case O_RDONLY:
+ case O_RDONLY:
flags = FMODE_READABLE;
break;
ase O_WRONLY:
@@ -1543,7 +1543,7 @@
har *p = mode;
0Awitch (flags & (O_RDONLY|O_WRONLY|O_RDWR)) {
- case O_RDONLY:
+ case O_RDONLY:
*p++ = 'r';
break;
ase O_WRONLY:
@@ -2075,10 +2075,10 @@
pos = ftello(orig->f);
f (orig->f2) {
- io_fflush(orig->f2, orig->path);
+ io_fflush(orig->f2, orig);
lse if (orig->mode & FMODE_WRITABLE) {
- io_fflush(orig->f, orig->path);
+ io_fflush(orig->f, orig);
rig->mode &= ~FMODE_WBUF;
b_thread_fd_close(fileno(fptr->f));
@@ -2205,10 +2205,10 @@
akeOpenFile(clone, fptr);
0Af (orig->f2) {
- io_fflush(orig->f2, orig->path);
+ io_fflush(orig->f2, orig);
lse if (orig->mode & FMODE_WRITABLE) {
- io_fflush(orig->f, orig->path);
+ io_fflush(orig->f, orig);
rig->mode &= ~FMODE_WBUF;
0A@@ -2337,7 +2337,7 @@
rb_sys_fail(fptr->path);
ptr->mode |= FMODE_WBUF;
f (fptr->mode & FMODE_SYNC) {
- io_fflush(f, fptr->path);
+ io_fflush(f, fptr);
fptr->mode &= ~FMODE_WBUF;
lse {
@@ -2593,7 +2593,7 @@
EWOBJ(io, struct RFile);
BJSETUP(io, klass, T_FILE);
-
+
o->fptr = 0;
0Aeturn (VALUE)io;
----- extPart_000_0007_01C1D67D.90011290--