Is #define THING -10 completely safe?

Doug Gwyn gwyn at smoke.brl.mil
Wed Jan 30 05:32:57 AEST 1991


In article <2698 at wn1.sci.kun.nl> lwj at cs.kun.nl (Luc Rooijakkers) writes:
>In <14998 at smoke.brl.mil> gwyn at smoke.brl.mil (Doug Gwyn) writes:
>>In article <33 at christmas.UUCP> rtm at island.COM (Richard Minner) writes:
>>>Something I've been curious about, should the above be
>>>#define INT_MIN   (-2147483648)
>>Yes.
>This may have been the intention of the comittee.

I wasn't trying to interpret the intention of X3J11; the fellow asked
whether the implementation "should" parenthesize such definitions, and
I said "Yes".  I would hope that implementors would do so, and that
programmers would not write INT_MIN[p] in their code.



More information about the Comp.lang.c mailing list