This is the mail archive of the
cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: cr/lf conundrum
- To: earnie_boyd at yahoo dot com
- Subject: Re: cr/lf conundrum
- From: DJ Delorie <dj at delorie dot com>
- Date: Fri, 19 May 2000 17:18:15 -0400
- CC: cygwin-developers at sourceware dot cygnus dot com
- References: <20000519204415.27070.qmail@web115.yahoomail.com>
> After investigating stdio.h I see that getc/putc are already prototyped as
> functions. The getc/putc macros are conditioned with `#ifndef lint' already.
> This could be modified to also condition __CYGWIN__ or give instructions to use
> `-Dlint' in CFLAGS.
The problem isn't that they're macros *now*. The problem is that they
were macros back when the existing apps were built, like the bash on
sourceware. If we could recompile the world, it wouldn't be a
problem. I am, however, considering de-macroizing them in case this
happens again, even though there's a minor speed penalty when that
happens.
I'm working on a patch that uses api_major/api_minor (which I just
remembered we had :) to detect these legacy apps, and try to adjust
the conversion logic accordingly.