atilaneves / dpp

Directly include C headers in D source code
Boost Software License 1.0
230 stars 31 forks source link

Extern void variables are now translated into extern void* variables #233

Closed cbecerescu closed 4 years ago

cbecerescu commented 4 years ago

Such a case happened as a result of translating linux/include/asm-generic/sections.h, where we have

extern __visible const void __nosave_begin, __nosave_end;

Discussed with Edi and Razvan who suggested that this void type could be changed to a pointer type.

atilaneves commented 4 years ago

I... didn't even know that was valid C. I had to compile it with both gcc and clang before I believed it. Wow.