comparison src/print.c @ 282:c42ec1d1cded r21-0b39

Import from CVS: tag r21-0b39
author cvs
date Mon, 13 Aug 2007 10:33:18 +0200
parents 7df0dd720c89
children 558f606b08ae
comparison
equal deleted inserted replaced
281:090b52736db2 282:c42ec1d1cded
117 int extlen; 117 int extlen;
118 CONST Extbyte *extptr; 118 CONST Extbyte *extptr;
119 119
120 GET_CHARPTR_EXT_DATA_ALLOCA (str + offset, len, fmt, extptr, extlen); 120 GET_CHARPTR_EXT_DATA_ALLOCA (str + offset, len, fmt, extptr, extlen);
121 if (stream) 121 if (stream)
122 fwrite (extptr, 1, extlen, stream); 122 {
123 fwrite (extptr, 1, extlen, stream);
124 #ifdef WINDOWSNT
125 /* Q122442 says that pipes are "treated as files, not as
126 devices", and that this is a feature. Before I found that
127 article, I thought it was a bug. Thanks MS, I feel much
128 better now. - kkm */
129 if (stream == stdout || stream == stderr)
130 fflush (stream);
131 #endif
132 }
123 else 133 else
124 { 134 {
125 assert (CONSOLE_TTY_P (con)); 135 assert (CONSOLE_TTY_P (con));
126 Lstream_write (XLSTREAM (CONSOLE_TTY_DATA (con)->outstream), 136 Lstream_write (XLSTREAM (CONSOLE_TTY_DATA (con)->outstream),
127 extptr, extlen); 137 extptr, extlen);