1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* io.c (flush_before_seek): flush before seek on any platform.

* configure.in: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2003-12-06 12:48:51 +00:00
parent 73da604dcc
commit a971d184ce
3 changed files with 10 additions and 8 deletions

View file

@ -1,3 +1,9 @@
Sat Dec 6 21:45:10 2003 WATANABE Hirofumi <eban@ruby-lang.org>
* io.c (flush_before_seek): flush before seek on any platform.
* configure.in: ditto.
Sat Dec 6 17:23:00 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
* lib/soap/soap.rb(SOAP::Env.getenv): allow upcase environment variable

View file

@ -636,10 +636,10 @@ RUBY_CHECK_IO_NEED(seek between R/W, rb_cv_need_io_seek_between_rw, yes)
if test "$rb_cv_need_io_seek_between_rw" = yes; then
AC_DEFINE(NEED_IO_SEEK_BETWEEN_RW, 1)
fi
RUBY_CHECK_IO_NEED(flush before seek, rb_cv_need_io_flush_before_seek, no)
if test "$rb_cv_need_io_flush_before_seek" = yes; then
AC_DEFINE(NEED_IO_FLUSH_BEFORE_SEEK, 1)
fi
dnl RUBY_CHECK_IO_NEED(flush before seek, rb_cv_need_io_flush_before_seek, no)
dnl if test "$rb_cv_need_io_flush_before_seek" = yes; then
dnl AC_DEFINE(NEED_IO_FLUSH_BEFORE_SEEK, 1)
dnl fi
AC_CACHE_CHECK([whether st_ino is huge], rb_cv_huge_st_ino,
[AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([

4
io.c
View file

@ -194,7 +194,6 @@ rb_io_check_closed(fptr)
static void io_fflush _((FILE *, OpenFile *));
#if NEED_IO_FLUSH_BEFORE_SEEK
static OpenFile *
flush_before_seek(fptr)
OpenFile *fptr;
@ -204,9 +203,6 @@ flush_before_seek(fptr)
}
return fptr;
}
#else
#define flush_before_seek(fptr) fptr
#endif
#define io_seek(fptr, ofs, whence) fseeko(flush_before_seek(fptr)->f, ofs, whence)
#define io_tell(fptr) ftello(flush_before_seek(fptr)->f)