htod - convert C .h files to D import files

Derek Parnell derek at psych.ward
Sun May 21 19:11:29 PDT 2006


On Sun, 21 May 2006 16:17:38 -0700, Walter Bright wrote:

> I'm not sure how useful this will be.

Very useful.  Thanks for this Walter.
 
> Here it is: http://www.digitalmars.com/d/htod.html

I just used it on windows.h. It found a 'bug' in winscard.h ;-) After I
added 

  #include <BaseTsd.h>
  #include <Guiddef.h>

to winscard.h and ran it again, it generated a very useful windows.d file. 

The command I used was ...

htod windows.h -Iy:\dm\include -hs -DUNICODE

and I got a 177823 lines in windows.d (mostly comments of course.).

With the -hc switch this went down to 85572 lines of useful code.

-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocracy!"
22/05/2006 12:05:43 PM



More information about the Digitalmars-d-announce mailing list