httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dean gaudet <>
Subject Re: APR file i/o questions
Date Sat, 17 Jun 2000 20:59:36 GMT

On Fri, 16 Jun 2000, Manoj Kasichainula wrote:

> > Should ap_ungetc() work on all files, buffered or not?
> I'm not a big fan of the whole "ungetc" concept, though we use it a
> decent amount in our code now. +1 on removing all ungetc's if it's not
> too hard; no opinion on the actual question :)

ungetc exists because most of the stuff folks scan for fall into the
category of LALR(1) languages.

you wouldn't ever use ungetc with non-buffered i/o... 'cause ungetc is all
about scanning text, not bulk data movement.


View raw message