www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/05/19/17:34:13

Message-Id: <199905192133.VAA168990@out4.ibm.net>
From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Wed, 19 May 1999 17:34:44 -0400
MIME-Version: 1.0
Subject: small patch for tminit.c
X-mailer: Pegasus Mail for Win32 (v3.11)
Reply-To: djgpp-workers AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019