dmd.hdrgen

Generate D interface files.

Also used to convert AST nodes to D code in general, e.g. for error messages or printf debugging.

Members

Functions

argExpTypesToCBuffer
void argExpTypesToCBuffer(OutBuffer* buf, Expressions* arguments)

Write out argument types to buf.

arrayObjectsToBuffer
void arrayObjectsToBuffer(OutBuffer* buf, Objects* objects)
Undocumented in source. Be warned that the author may not have intended to support it.
floatToBuffer
void floatToBuffer(Type type, real_t value, OutBuffer* buf, bool allowHex)

Formats value as a literal of type type into buf.

functionToBufferFull
void functionToBufferFull(TypeFunction tf, OutBuffer* buf, Identifier ident, HdrGenState* hgs, TemplateDeclaration td)
Undocumented in source. Be warned that the author may not have intended to support it.
functionToBufferWithIdent
void functionToBufferWithIdent(TypeFunction tf, OutBuffer* buf, const(char)* ident, bool isStatic)
Undocumented in source. Be warned that the author may not have intended to support it.
genhdrfile
void genhdrfile(Module m)
Undocumented in source. Be warned that the author may not have intended to support it.
linkageToChars
const(char)* linkageToChars(LINK linkage)
Undocumented in source. Be warned that the author may not have intended to support it.
linkageToString
string linkageToString(LINK linkage)
Undocumented in source. Be warned that the author may not have intended to support it.
moduleToBuffer
void moduleToBuffer(OutBuffer* buf, Module m)

Dumps the full contents of module m to buf.

moduleToBuffer2
void moduleToBuffer2(Module m, OutBuffer* buf, HdrGenState* hgs)
Undocumented in source. Be warned that the author may not have intended to support it.
parameterToChars
const(char)* parameterToChars(Parameter parameter, TypeFunction tf, bool fullQual)

Pretty print function parameter.

parametersTypeToChars
const(char)* parametersTypeToChars(ParameterList pl)

Pretty print function parameters.

stcToBuffer
bool stcToBuffer(OutBuffer* buf, StorageClass stc)
Undocumented in source. Be warned that the author may not have intended to support it.
stcToString
string stcToString(StorageClass stc)

Pick off one of the storage classes from stc, and return a string representation of it. stc is reduced by the one picked.

toCBuffer
void toCBuffer(Statement s, OutBuffer* buf, HdrGenState* hgs)
Undocumented in source. Be warned that the author may not have intended to support it.
toCBuffer
void toCBuffer(Type t, OutBuffer* buf, Identifier ident, HdrGenState* hgs)
Undocumented in source. Be warned that the author may not have intended to support it.
toCBuffer
void toCBuffer(Dsymbol s, OutBuffer* buf, HdrGenState* hgs)
Undocumented in source. Be warned that the author may not have intended to support it.
toCBuffer
void toCBuffer(Initializer iz, OutBuffer* buf, HdrGenState* hgs)
Undocumented in source. Be warned that the author may not have intended to support it.
toCBuffer
void toCBuffer(Expression e, OutBuffer* buf, HdrGenState* hgs)
Undocumented in source. Be warned that the author may not have intended to support it.
toCBuffer
void toCBuffer(TemplateParameter tp, OutBuffer* buf, HdrGenState* hgs)
Undocumented in source. Be warned that the author may not have intended to support it.
toCBufferInstance
void toCBufferInstance(TemplateInstance ti, OutBuffer* buf, bool qualifyTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
trustToString
string trustToString(TRUST trust)

Pick off one of the storage classes from stc, and return a string representation of it. stc is reduced by the one picked.

visibilityToBuffer
void visibilityToBuffer(OutBuffer* buf, Visibility vis)
Undocumented in source. Be warned that the author may not have intended to support it.
visibilityToChars
const(char)* visibilityToChars(Visibility.Kind kind)
visibilityToString
string visibilityToString(Visibility.Kind kind)

Manifest constants

TEST_EMIT_ALL
enum TEST_EMIT_ALL;
Undocumented in source.

Structs

HdrGenState
struct HdrGenState
Undocumented in source.

Meta