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



In article <20150108165120.GK12098%danbala.tuwien.ac.at@localhost>,
Thomas Klausner  <wiz%NetBSD.org@localhost> 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)

christos



Home | Main Index | Thread Index | Old Index