www.digitalmars.com         C & C++   DMDScript  

D.gnu - gdc 1f typedef problem

reply Lws <eluusive sbcglobal.net> writes:
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.
Apr 23 2004
parent reply Ilya Minkov <minkov cs.tum.edu> writes:
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.
 
Apr 23 2004
parent reply Lws <eluusive sbcglobal.net> writes:
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?
Apr 23 2004
parent Ilya Minkov <minkov cs.tum.edu> writes:
Lws schrieb:

 There's a utility?  Where can i obtain it?
No, there's not. :/ Someone would have to write it. -eye
Apr 23 2004