Re: Can we use "ImportC" used yet?

2021-10-21 Thread data pulverizer via Digitalmars-d-learn
Hi, I'm getting an odd issue with ImportC when I import a header converted with `gcc -E -P ...` some of the types signatures in functions don't come through with their proper names but as `__tagXX` where `XX` is some number. It's got to the point where the type itself might get imported

Re: Can we use "ImportC" used yet?

2021-10-21 Thread Imperatorn via Digitalmars-d-learn
On Thursday, 21 October 2021 at 22:23:50 UTC, data pulverizer wrote: Hi, I'm getting an odd issue with ImportC when I import a header converted with `gcc -E -P ...` some of the types signatures in functions don't come through with their proper names but as `__tagXX` where `XX` is some

Re: Can we use "ImportC" used yet?

2021-10-21 Thread jfondren via Digitalmars-d-learn
On Thursday, 21 October 2021 at 22:23:50 UTC, data pulverizer wrote: Hi, I'm getting an odd issue with ImportC when I import a header converted with `gcc -E -P ...` some of the types signatures in functions don't come through with their proper names but as `__tagXX` where `XX` is some

Why do we have Dmain?

2021-10-21 Thread Kirill via Digitalmars-d-learn
I am not a compiler expert, but I genuinely would like to know why we have Dmain. I've been looking at the generated assembly code recently and noticed the _Dmain function. I didn't notice it before. Then there is main, where Dmain is called. Why is that?