Any interest in libgit bindings?

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Oct 10 14:04:18 PDT 2012


On 10/10/12, Jacob Carlborg <doob at me.com> wrote:
> This is the output of dstep on all files in libgit2/include:
> https://dl.dropbox.com/u/18386187/libgit2.zip
>
> I have no idea if it compiles.

Yeah, after incorporating some C shortcuts mine is now similar to
yours: https://github.com/AndrejMitrovic/dgen_libgit/tree/master/out/d/git2

Mine compiles but I'll have to reference some inlined functions since
they're not exported in the DLL. Yours looks very similar (you almost
can't go wrong with generating C bindings, it's very easy compared to
C++).

Btw, you should try to rename a module from 'object' to '_object' or
similar, otherwise it might conflict with the implicitly imported
object module in druntime. Walter flagged this as wontfix
(http://d.puremagic.com/issues/show_bug.cgi?id=7651).


More information about the Digitalmars-d mailing list