How to handle nested structs when converting C headers?

Jacob Carlborg doob at me.com
Thu Dec 12 06:50:01 PST 2013


On 2013-12-11 23:45, Gary Willoughby wrote:
> How to handle nested structs when converting C headers?
>
> In the following snippet i'm currently converting, how would you convert
> the nested typed union and structures? Would you declare them separately
> then use their types in the Tcl_Obj struct? or is there a nice way in D
> to nest them like C?

Convert using DStep[1] and see what happens :)

[1] https://github.com/jacob-carlborg/dstep

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list