Eric Blake wrote:
> I'm checking this in now
A trivial simplification:
2007-04-29 Bruno Haible <[EMAIL PROTECTED]>
* lib/freading.c (freading): Trivial simplification.
*** lib/freading.c 26 Apr 2007 13:16:50 -0000 1.1
--- lib/freading.c 29 Apr 2007 08:21:49 -0000
***************
*** 32,39 ****
fast macros. */
#if defined _IO_ferror_unlocked /* GNU libc, BeOS */
return ((fp->_flags & _IO_NO_WRITES) != 0
! || ((fp->_flags & _IO_NO_READS) == 0
! && (fp->_flags & _IO_CURRENTLY_PUTTING) == 0
&& fp->_IO_read_base != NULL));
#elif defined __sferror /* FreeBSD, NetBSD, OpenBSD, MacOS X,
Cygwin */
return (fp->_flags & __SRD) != 0;
--- 32,38 ----
fast macros. */
#if defined _IO_ferror_unlocked /* GNU libc, BeOS */
return ((fp->_flags & _IO_NO_WRITES) != 0
! || ((fp->_flags & (_IO_NO_READS | _IO_CURRENTLY_PUTTING)) == 0
&& fp->_IO_read_base != NULL));
#elif defined __sferror /* FreeBSD, NetBSD, OpenBSD, MacOS X,
Cygwin */
return (fp->_flags & __SRD) != 0;