On Tue, Feb 25, 2003 at 11:49:17AM -0800, Paul Eggert wrote:
> "Paul D. Smith" <[EMAIL PROTECTED]> writes:
> 
> > What is the word on portability of preprocessor directives?
> > 
> > I'm in particular thinking of things like "#if defined()",
> > "#elif !defined()", the && and || operators, etc.

taking it out of context, he did ask about pre-ANSI compilers.

both of these comments below are misleading, since there are known
cases for pre-ANSI compilers which violated the rules.
 
> The original traditional C preprocessor did not support #elif, but
> compilers without #elif are long dead and are no longer worth worrying
> about.
> 
> The original traditional C preprocessor required '#' to be in column
> 1.  Typical GNU programs still put '#' in column 1, but I think this
> is now more of a style thing than a requirement.  If you're worried
> about older compilers then it might be best to stick with the style
> for a few years more, anyway.
> 

-- 
Thomas E. Dickey <[EMAIL PROTECTED]>
http://invisible-island.net
ftp://invisible-island.net


Reply via email to