version 1.21, 2002/02/17 19:42:21 |
version 1.22, 2002/02/19 19:39:36 |
|
|
* define function versions in the C library. |
* define function versions in the C library. |
*/ |
*/ |
#define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++)) |
#define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++)) |
#if defined(__GNUC__) && defined(__STDC__) |
#if defined(__GNUC__) |
static __inline int __sputc(int _c, FILE *_p) { |
static __inline int __sputc(int _c, FILE *_p) { |
if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != '\n')) |
if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != '\n')) |
return (*_p->_p++ = _c); |
return (*_p->_p++ = _c); |