[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: scsh: stream_char_readyp

<paule@chem.gla.ac.uk> writes:

>       AFAICT the function wants to know if there is any
>       data left in the buffer after the current read pointer.

Based on the definition of __getc(), I'd expect the following to
work, at least for regular streams without fancy features like
on-the-fly decompression:

  return (f->__bufp < f->__get_limit) ? SCHTRUE : char_ready_fdes(fd);

What kind of #ifdef are you going to put around it?

Reply to: