Re: Definitions of types also as macros

2018-09-08 Thread Christos Zoulas
In article , Christos Zoulas wrote: >In article <20180908230813.ga22...@sdf.org>, wrote: >>we do this in stdint.h and some other headers: >> >>#ifndef uint32_t >>typedef __uint32_t uint32_t; >>#define uint32_t__uint32_t >>#endif >> >> >>Real-world examples: >>https://github.com/neov

Re: Definitions of types also as macros

2018-09-08 Thread Christos Zoulas
In article <20180908230813.ga22...@sdf.org>, wrote: >we do this in stdint.h and some other headers: > >#ifndef uint32_t >typedef __uint32_t uint32_t; >#define uint32_t__uint32_t >#endif > > >Real-world examples: >https://github.com/neovim/neovim/blob/94841e5eaebc3f2fb556056dd676afff2

Definitions of types also as macros

2018-09-08 Thread coypu
we do this in stdint.h and some other headers: #ifndef uint32_t typedef __uint32_t uint32_t; #define uint32_t__uint32_t #endif then, if a package does something like this: #include #define function(name, type) int name##_##type() { return 3; } #define useless_wrapper(name, type)