HTODConvert

This is used to post-process dm htod .d file for gtkD to create the htod .d file: - copy the original .h file to a working directory - remove all unecessary definitions - run wine ~/dm/bin/htod.exe <file.h> - run this on the generated .d file

Constructors

this
this(string htodFilename)
Undocumented in source.
this
this(string htodFilename, string _outputRoot, string _inputRoot)
Undocumented in source.

Members

Functions

addLine
void addLine(string line)
Undocumented in source. Be warned that the author may not have intended to support it.
addLineDynLoad
void addLineDynLoad(string line)

If the line is a function definition stores the line to include on the extern(C) and the symbols. for now a function is a line that ends with ");"

clearValues
void clearValues()
Undocumented in source. Be warned that the author may not have intended to support it.
closeDynLoad
void closeDynLoad()
Undocumented in source. Be warned that the author may not have intended to support it.
openDynLoad
void openDynLoad()
Undocumented in source. Be warned that the author may not have intended to support it.
process
void process()
Undocumented in source. Be warned that the author may not have intended to support it.
processFile
void processFile(string fileName)
Undocumented in source. Be warned that the author may not have intended to support it.
processPreFile
void processPreFile(string preFileName, string fileName)
Undocumented in source. Be warned that the author may not have intended to support it.
writeFile
void writeFile(string fileName)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

endsWith
bit endsWith(string str, char suffix)
Undocumented in source. Be warned that the author may not have intended to support it.
endsWith
bit endsWith(string str, string prefix)
Undocumented in source. Be warned that the author may not have intended to support it.
startsWith
bit startsWith(string str, string prefix)
Undocumented in source. Be warned that the author may not have intended to support it.
startsWith
bit startsWith(string str, char prefix)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

bindDir
string bindDir;
Undocumented in source.
comment
string[] comment;
Undocumented in source.
dText
string dText;
Undocumented in source.
defReader
DefReader defReader;
Undocumented in source.
dynLoad
bool dynLoad;

convert to dynamic loading

dynLoadAlreadyOpen
bool dynLoadAlreadyOpen;

mark when the header was already added to the text

functions
string[] functions;
Undocumented in source.
headerAlreadyAdded
bool headerAlreadyAdded;

mar when the module and license where already added to the text

inputRoot
string inputRoot;
Undocumented in source.
lib
string lib;

the library id on the system (for instance GL for libGL.so)

outputRoot
string outputRoot;
Undocumented in source.
pack
string pack;

the package

preFile
string preFile;

the .h (or .h pos-processed) to convert to .d

Meta