draft ANSI standard: major, quiet, unnoticed change
Robert Reed
bobr at zeus.UUCP
Fri Dec 5 06:39:50 AEST 1986
In article <500 at brl-sem.ARPA> ron at brl-sem.ARPA (Ron Natalie <ron>) writes:
>In article <1379 at hoptoad.uucp>, gnu at hoptoad.uucp (John Gilmore) writes:
>> #pdefine sun
>>
>> would cause #if sun or #if defined(sun) or #ifdef sun to be true, but
>> would not replace occurrances of "sun" in program text.
>
>Of course, no one said it had to be a macro definition. You could
>just say
> int sun;
>and the #if defined(sun) would also work.
Isn't the point of John's predefined macro to avoid changing the source
code? With your suggestion of "int sun", the first step before compiling
would be modifying the source files.
--
Robert Reed, Tektronix CAE Systems Division, bobr at zeus.TEK
More information about the Comp.lang.c
mailing list