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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 9 11:16:52 PST 2013


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



--- Comment #7 from Adam D. Ruppe <destructionator at gmail.com> 2013-01-09 11:16:49 PST ---
work is boring so i updated the zip instead. Hit a few problems, we'll really
need to improve dmd's json output (I vote for that pull request!) to go much
further than this I think. Maybe fix up forward declarations but meh.

Turning import into include needs more json from dmd as well, and that's going
to be nice to have for real work (though not strictly necessary... the user
could always #include everything in the main file).

Anyway here it is:
http://arsdnet.net/dcode/dtocpp.zip

Now structs are outputted too, as plain data skipping any functions (which I'm
pretty sure should work anyway), and types are translated a little differently.

If you write your declarations in D, whether you implement them in C++ or D
doesn't matter, this is kinda cool for going both ways.


But yeah I think this is about as good as we're going to get until that dmd
pull request for json happens.

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