Converting C .h Files to D Modules

Pedro Lacerda kanvuanza at gmail.com
Tue Mar 20 17:56:38 PDT 2012


Ouch, void* is the same in both languages, sorry. I addressed a new problem:

typedef struct SomeFunctions {
    void *(*funcA)(char*, size_t);
    void *(*funcB)(void);
} SomeFunctions;

How do I convert that functions references into an D struct?


On Tue, Mar 20, 2012 at 3:01 PM, Pedro Lacerda <kanvuanza at gmail.com> wrote:

> Hi all,
>
> How to convert the following struct to D?
>
> typedef struct S {
>     int type;
>     void *obj;
> } S;
>
> I didn't found anything at http://dlang.org/htomodule.html.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20120320/878c5e2b/attachment.html>


More information about the Digitalmars-d-learn mailing list