* lib-stream.c: since __srefill is far more powerful than __srget, we only
reimplement the former on OS X and completely ignore the latter.
This commit is contained in:
parent
b409dcecfd
commit
656321ddd4
@ -55,7 +55,7 @@ int NEW(__srefill)(FILE *fp);
|
|||||||
int NEW(__filbuf)(FILE *fp);
|
int NEW(__filbuf)(FILE *fp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined HAVE___SRGET
|
#if defined HAVE___SRGET && !defined HAVE___SREFILL
|
||||||
int NEW(__srget)(FILE *fp);
|
int NEW(__srget)(FILE *fp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -142,7 +142,7 @@ static char * (*ORIG(fgetln)) (FILE *stream, size_t *len);
|
|||||||
#if defined HAVE___SREFILL
|
#if defined HAVE___SREFILL
|
||||||
int (*ORIG(__srefill)) (FILE *fp);
|
int (*ORIG(__srefill)) (FILE *fp);
|
||||||
#endif
|
#endif
|
||||||
#if defined HAVE___SRGET
|
#if defined HAVE___SRGET && !defined HAVE___SREFILL
|
||||||
int (*ORIG(__srget)) (FILE *fp);
|
int (*ORIG(__srget)) (FILE *fp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -799,7 +799,7 @@ int NEW(__srefill)(FILE *fp)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined HAVE___SRGET
|
#if defined HAVE___SRGET && !defined HAVE___SREFILL
|
||||||
int NEW(__srget)(FILE *fp)
|
int NEW(__srget)(FILE *fp)
|
||||||
{
|
{
|
||||||
int ret; REFILL(__srget, 1); return ret;
|
int ret; REFILL(__srget, 1); return ret;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user