Re: Any interest in libgit bindings?

2012-10-12 Thread Jacob Carlborg
On 2012-10-11 21:38, Andrej Mitrovic wrote: I guess it depends on what you get from clang. The XML I'm working on has this sort of output: File id=f3 name=git2/submodule.h/ File id=f4 name=c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../include/inttypes.h/ File id=f39

Re: Any interest in libgit bindings?

2012-10-11 Thread Jacob Carlborg
On 2012-10-10 23:04, Andrej Mitrovic wrote: 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++). Yeah, I haven't done anything

Re: Any interest in libgit bindings?

2012-10-11 Thread Andrej Mitrovic
Another thing I haven't been able to figure out yet is to how to properly translate include directives. It's not easy to translate to the module system used by D. I don't have access to the include directives at all. The way I do it is to have a toNativeType function which translates C/C++

Re: Any interest in libgit bindings?

2012-10-11 Thread Jacob Carlborg
On 2012-10-11 16:34, Andrej Mitrovic wrote: I don't have access to the include directives at all. The way I do it is to have a toNativeType function which translates C/C++ types to D and at the same time resolves includes. If a type is located in another module (all non-fundamental types have a

Re: Any interest in libgit bindings?

2012-10-11 Thread Andrej Mitrovic
On 10/11/12, Jacob Carlborg d...@me.com wrote: Actually I already do the same. But that's only for the C standard library and a couple of Posix headers, basically all files in core.stdc. But the problem is that I get the full path to the source file where the symbol is defined. How do I turn

Re: Any interest in libgit bindings?

2012-10-10 Thread Walter Bright
On 10/9/2012 3:46 PM, Andrej Mitrovic wrote: But if there's any interest I could clean it up and make it a nice simple C wrapper just like the other deimos projects (https://github.com/D-Programming-Deimos). Sure!

Re: Any interest in libgit bindings?

2012-10-10 Thread Jacob Carlborg
On 2012-10-10 00:46, Andrej Mitrovic wrote: http://libgit2.github.com/ libgit has things like clone/commit/tag, reading/writing git loose object files. You can easily deflate object files using std.zlib, but unfortunately there's no git pack file unpacker in libgit (you can externally use git's

Re: Any interest in libgit bindings?

2012-10-10 Thread Justin Whear
On Wed, 10 Oct 2012 00:46:28 +0200, Andrej Mitrovic wrote: http://libgit2.github.com/ libgit has things like clone/commit/tag, reading/writing git loose object files. You can easily deflate object files using std.zlib, but unfortunately there's no git pack file unpacker in libgit (you can

Re: Any interest in libgit bindings?

2012-10-10 Thread Andrej Mitrovic
On 10/10/12, Justin Whear jus...@economicmodeling.com wrote: I'd be interested. I hand-wrote bindings to most of libgit2 (though not the latest version), but I skipped most of the write-oriented stuff, so a complete binding would be welcome. Well the master branch was last updated 8 months

Re: Any interest in libgit bindings?

2012-10-10 Thread Jacob Carlborg
On 2012-10-10 00:46, Andrej Mitrovic wrote: http://libgit2.github.com/ libgit has things like clone/commit/tag, reading/writing git loose object files. You can easily deflate object files using std.zlib, but unfortunately there's no git pack file unpacker in libgit (you can externally use git's

Re: Any interest in libgit bindings?

2012-10-10 Thread Andrej Mitrovic
On 10/10/12, Jacob Carlborg d...@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:

Re: Any interest in libgit bindings?

2012-10-10 Thread Andrej Mitrovic
On 10/10/12, Jacob Carlborg d...@me.com wrote: I would absolutely have interest in this. https://github.com/AndrejMitrovic/dgen_libgit Well it's mostly done (can't tell if anything is missing, except the docs). I had to reimplement inline functions in D since they're not exported on the C side

Re: Any interest in libgit bindings?

2012-10-10 Thread Craig Dillabaugh
On Thursday, 11 October 2012 at 01:39:46 UTC, Andrej Mitrovic wrote: On 10/10/12, Jacob Carlborg d...@me.com wrote: I would absolutely have interest in this. https://github.com/AndrejMitrovic/dgen_libgit Well it's mostly done (can't tell if anything is missing, except the docs). I had to

Re: Any interest in libgit bindings?

2012-10-10 Thread Andrej Mitrovic
On 10/11/12, Craig Dillabaugh cdill...@cg.scs.carleton.ca wrote: Likely you have already tried this but just in case not ... For Linux is /usr/local/lib in your /etc/ld.so.conf file? If not, add it and run ldconfig. Thanks! That did the trick, it's linking now. I'll do a few verification

Re: Any interest in libgit bindings?

2012-10-10 Thread alexhairyman
On Tuesday, 9 October 2012 at 23:10:39 UTC, Andrej Mitrovic wrote: http://libgit2.github.com/ libgit has things like clone/commit/tag, reading/writing git loose object files. You can easily deflate object files using std.zlib, but unfortunately there's no git pack file unpacker in libgit (you

Re: Any interest in libgit bindings?

2012-10-09 Thread Jonathan M Davis
On Wednesday, October 10, 2012 00:46:28 Andrej Mitrovic wrote: But if there's any interest I could clean it up and make it a nice simple C wrapper just like the other deimos projects (https://github.com/D-Programming-Deimos). I think that it's safe to say that there would be definite value in