comparison src/dispnew.c @ 5214:c4bf07b226be

(PENDING_OUTPUT_COUNT) [__GNU_LIBRARY__]: Alternate definition for the GNU C library. I changed this in version 18 in 1991, but the change never got propagated.
author Roland McGrath <roland@gnu.org>
date Wed, 08 Dec 1993 23:49:24 +0000
parents 37fecb3bf8d9
children a1009fb6aa1a
comparison
equal deleted inserted replaced
5213:e080f780f381 5214:c4bf07b226be
50 50
51 #ifndef PENDING_OUTPUT_COUNT 51 #ifndef PENDING_OUTPUT_COUNT
52 /* Get number of chars of output now in the buffer of a stdio stream. 52 /* Get number of chars of output now in the buffer of a stdio stream.
53 This ought to be built in in stdio, but it isn't. 53 This ought to be built in in stdio, but it isn't.
54 Some s- files override this because their stdio internals differ. */ 54 Some s- files override this because their stdio internals differ. */
55 #ifdef __GNU_LIBRARY__
56 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)
57 #else
55 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base) 58 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)
59 #endif
56 #endif 60 #endif
57 61
58 /* Nonzero upon entry to redisplay means do not assume anything about 62 /* Nonzero upon entry to redisplay means do not assume anything about
59 current contents of actual terminal frame; clear and redraw it. */ 63 current contents of actual terminal frame; clear and redraw it. */
60 64