[Issue 9285] dtoh utility - convert D files to C++ header files
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 9 10:14:12 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9285
--- Comment #6 from Andrei Alexandrescu <andrei at erdani.com> 2013-01-09 10:14:10 PST ---
(In reply to comment #5)
> I just slapped something together very very quickly. It works for a couple
> simple things I've tried on linux: simple functions and interfaces.
>
> http://arsdnet.net/dcode/dtocpp.zip
>
> includes a little test program (test.c, test.cpp, and testcpp.d), a makefile
> for it, and of course, the main app, dtoh.d.
>
> dmd dtoh.d
> make
>
> The makefile will regenerate testcpp.json and run dtoh to build testcpp.h.
>
>
> I just realized, I guess I should add POD structs too, but I have real work to
> get back to now.
Great. When you'll assess your work is in reviewable form, you may want to
submit it as a pull request to github.com/D-Programming-Language/tools. Once we
have a good initial codebase others can work on it.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list