digitalmars.D.learn - Converting C .h Files to D Modules
- Pedro Lacerda <kanvuanza gmail.com> Mar 20 2012
- Timon Gehr <timon.gehr gmx.ch> Mar 21 2012
--14dae93406ad2f9c4b04bbb07761
Content-Type: text/plain; charset=ISO-8859-1
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.
--14dae93406ad2f9c4b04bbb07761
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi all,<div><br></div><div>How to convert the following struct to D?</div><=
div><br></div><div><div>typedef struct S {</div><div>=A0 =A0 int type;</div=
<div>=A0 =A0 void *obj;</div><div>} S;</div></div><div><br></div><div>I di=
tp://dlang.org/htomodule.html</a>.</div>
--14dae93406ad2f9c4b04bbb07761--
Mar 20 2012
On 03/20/2012 07:01 PM, Pedro Lacerda 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.
(Assuming your 'int' is 32 bits) struct S{ int type; void* obj; }
Mar 21 2012








Timon Gehr <timon.gehr gmx.ch>