5

Is there a tool to automatically create D bindings from C headers? I've hade some problems with obselete D wrappers on github and it would be great to have a tool do all the manual work for me and also assure that my bindings are up-to-date.

Nordlöw
  • 11,838
  • 10
  • 52
  • 99

3 Answers3

5

There is also dstep by Jacob Carlborg which uses LLVM to provide the header conversion.

yaz
  • 1,340
  • 1
  • 10
  • 14
2

htod is available from the dlang website

ratchet freak
  • 47,288
  • 5
  • 68
  • 106
0

See this thread:

http://forum.dlang.org/thread/mfkesujhjrcqlxxrhmtl@forum.dlang.org?page=1

There's 'dstep'.

'swig' (quite likely the best choice).

'mkconfig' at http://gentoo.com/di/mkconfig.html

Brad Lanam
  • 5,192
  • 2
  • 19
  • 29