[Issue 9285] dtoh utility - convert D files to C++ header files

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 9 09:07:43 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9285


Adam D. Ruppe <destructionator at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator at gmail.com


--- Comment #5 from Adam D. Ruppe <destructionator at gmail.com> 2013-01-09 09:07:41 PST ---
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.

-- 
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