tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Avoiding #define uint8_t (and similar) in stdint.h

On Thu, Jan 08, 2015 at 05:07:55PM +0000, Christos Zoulas wrote:
 > >So is there consensus how to improve this?
 > > Thomas
 > Fix the code so that CPP concatenation works by preventing expansion
 > of predefined names, changing:
 >     #define CASE(a)	... 	TYPE_ ## a
 >     CASE(uint8_t)
 > to
 >     #defined CASE(a)	TYPE_ ## a ## _t
 >     CASE(uint8)

We should fix our headers.

I move to (for now) change the #define uint8_t to #define
__defined_uint8_t, and fix it better in the mythical future when we
can also do the kernel/libc header reorg.

David A. Holland

Home | Main Index | Thread Index | Old Index