diff options
Diffstat (limited to 'lib/freadahead.c')
-rw-r--r-- | lib/freadahead.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/freadahead.c b/lib/freadahead.c index f4b5ed7029..ef76034984 100644 --- a/lib/freadahead.c +++ b/lib/freadahead.c @@ -29,8 +29,8 @@ freadahead (FILE *fp) if (fp->_IO_write_ptr > fp->_IO_write_base) return 0; return (fp->_IO_read_end - fp->_IO_read_ptr) - + (fp->_flags & _IO_IN_BACKUP ? fp->_IO_save_end - fp->_IO_save_base : - 0); + + (fp->_flags & _IO_IN_BACKUP ? fp->_IO_save_end - fp->_IO_save_base : + 0); #elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, MacOS X, Cygwin */ if ((fp_->_flags & __SWR) != 0 || fp_->_r < 0) return 0; @@ -38,7 +38,7 @@ freadahead (FILE *fp) return __sreadahead (fp); # else return fp_->_r - + (HASUB (fp) ? fp_->_ur : 0); + + (HASUB (fp) ? fp_->_ur : 0); # endif #elif defined __EMX__ /* emx+gcc */ if ((fp->_flags & _IOWRT) != 0) @@ -57,7 +57,7 @@ freadahead (FILE *fp) if (fp->__modeflags & __FLAG_WRITING) return 0; return (fp->__bufread - fp->__bufpos) - + (fp->__modeflags & __FLAG_UNGOT ? 1 : 0); + + (fp->__modeflags & __FLAG_UNGOT ? 1 : 0); # else return 0; # endif @@ -67,15 +67,15 @@ freadahead (FILE *fp) /* fp->_Buf <= fp->_Next <= fp->_Rend, and fp->_Rend may be overridden by fp->_Rsave. */ return ((fp->_Rsave ? fp->_Rsave : fp->_Rend) - fp->_Next) - + (fp->_Mode & 0x4000 /* _MBYTE */ - ? (fp->_Back + sizeof (fp->_Back)) - fp->_Rback - : 0); + + (fp->_Mode & 0x4000 /* _MBYTE */ + ? (fp->_Back + sizeof (fp->_Back)) - fp->_Rback + : 0); #elif defined __MINT__ /* Atari FreeMiNT */ if (!fp->__mode.__read) return 0; return (fp->__pushed_back - ? fp->__get_limit - fp->__pushback_bufp + 1 - : fp->__get_limit - fp->__bufp); + ? fp->__get_limit - fp->__pushback_bufp + 1 + : fp->__get_limit - fp->__bufp); #elif defined SLOW_BUT_NO_HACKS /* users can define this */ abort (); return 0; |