This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cr/lf conundrum


On Fri, May 19, 2000 at 04:27:07PM -0400, DJ Delorie wrote:
>There are a couple of things I can do to prevent this type of problem
>in the future (namely, making getc/putc *not* be macros), but I can't
>think of a good solution to handle existing applications.  I can think
>of many hacks, but they all have drawbacks.
>
>Ideas?

This is a tough one.  The only "solution" that I see is to somehow keep
(p)->_r at 0 and always revert to using __srget(p) to retrieve the
character.  This would involve some very creative bookkeeping in parallel
with with the stdio structure, though, I think.  Bleah.

cgf

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]