This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: __LONG_MAX__



Oh, of course, there is no requirement that the integer types have
the same size (or even the same representation) in the preprocessor.
Bah.  Sorry.

Michael Meissner writes:
 > This is because sizeof (even of fundamental types) is not available to the
 > preprocessor.

It didn't use "sizeof", though the effect is the same.


Richard Henderson writes:
 > One large one -- __LONG_MAX__ can no longer be used in cpp conditionals.

Well, it would be valid to use it in cpp conditionals, but it wouldn't 
necessarly have the same value inside and outside of cpp conditionals
(which would not be "a good thing").

                                              -gavin...



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]