structured entry of #if preprocessor commands

Barry Margolin barmar at think.com
Mon Feb 11 15:53:55 AEST 1991


In article <1991Feb10.204604.28908 at athena.mit.edu> scs at adam.mit.edu writes:
>What I can't explain is why the following style, which most old
>compilers would accept, has never been widespread
>   #if defined(MSDOS)
>   #   if defined(ANSI)

I think it's because most people think of the "#" and the keyword as one
token ("#if"), even though the language officially considers them
independent (the "#" preprocessor indicator followed by the "if" pp
command).

--
Barry Margolin, Thinking Machines Corp.

barmar at think.com
{uunet,harvard}!think!barmar



More information about the Comp.lang.c mailing list