|
| From: | Roland McGrath |
| Subject: | Re: glibc related porting questions |
| Date: | Wed, 8 Aug 2001 21:52:13 -0400 (EDT) |
The same thing came up for Ruby. There ought to be a stdio_ext.h interface
for this.
You can change that code to:
#if defined(__GLIBC__) && defined(_STDIO_USES_IOSTREAM)
if (f->_IO_read_ptr < f->_IO_read_end)
RetArg(1);
#elif defined(__GLIBC__)
if (f->__bufp < f->_get_limit)
RetArg(1);
| [Prev in Thread] | Current Thread | [Next in Thread] |