Thread overview
gdc 1f typedef problem
Apr 23, 2004
Lws
Apr 23, 2004
Ilya Minkov
Apr 23, 2004
Lws
Apr 23, 2004
Ilya Minkov
April 23, 2004
I'm trying to convert a .H to a d import and so i ran it through the gcc preprocessor etc.  Now it's all fine, but this file makes alot of typedefs such as:


typedef unsigned long long UInt64;

Well they give errors...


if i replace it with equivilent D types though.....


typedef ulong UInt64;  This works fine.

April 23, 2004
D cannot understand C's primitive type modifiers - this information is folded into basic types in D. It is not a bug, nor is there much sense doing anything about it in D. The utility to convert C headers should take care of such things.

-eye

Lws schrieb:

> I'm trying to convert a .H to a d import and so i ran it through the gcc preprocessor etc.  Now it's all fine, but this file makes alot of typedefs such as:
> 
> 
> typedef unsigned long long UInt64;
> 
> Well they give errors...
> 
> 
> if i replace it with equivilent D types though.....
> 
> 
> typedef ulong UInt64;  This works fine.
> 
April 23, 2004
On 2004-04-23 12:42:55 -0700, Ilya Minkov <minkov@cs.tum.edu> said:

> D cannot understand C's primitive type modifiers - this information is folded into basic types in D. It is not a bug, nor is there much sense doing anything about it in D. The utility to convert C headers should take care of such things.
> 
> -eye

There's a utility?  Where can i obtain it?

April 23, 2004
Lws schrieb:

> There's a utility?  Where can i obtain it?

No, there's not. :/ Someone would have to write it.

-eye