[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Definitions of types also as macros
On Wed, Nov 07, 2018 at 05:43:49AM +0300, Valery Ushakov wrote:
> On Tue, Nov 06, 2018 at 23:20:16 +0100, Rhialto wrote:
> > On Tue 06 Nov 2018 at 23:19:08 +0300, Valery Ushakov wrote:
> > > Also your change breaks redefining intN_t types with the preprocessor.
> > > E.g.
> > >
> > > #define uint32_t unsigned long long
> > > #include <stdint.h>
> > >
> > > is now broken with your change.
> > But should that really be allowed?
> I have no idea :) But then I saw enough of unholy cpp trickery to
> consider that as a possibility, its legal status notwithstanding.
I'd rather not encourage it. For the example provided the behaviour
is undefined, but not prohibited. ;-)
Main Index |
Thread Index |