Mail Archives: djgpp-workers/1999/05/19/17:34:13
The code below lets __direct_outputs use fflush instead of fwalk. The
source of fflush looks like it should work correctly in the case of NULL,
so I don't see why it can't be used.
*** src/libc/posix/termios/tminit.c.orig Sat Mar 20 18:16:50 1999
--- src/libc/posix/termios/tminit.c Wed May 19 17:30:22 1999
*************** static inline void __direct_outputs (con
*** 74,80 ****
static void
__libc_termios_fflushall (void)
{
! #if 0 /* don't work on djgpp */
fflush (NULL);
#else
_fwalk ((void (*) (FILE*)) fflush);
--- 74,80 ----
static void
__libc_termios_fflushall (void)
{
! #if 1 /* does work on djgpp as of 2.02 */
fflush (NULL);
#else
_fwalk ((void (*) (FILE*)) fflush);
---
Mark Elbrecht, snowball3 AT bigfoot DOT com
http://snowball.frogspace.net/
- Raw text -