Context

Context for the current translation, to avoid global variables

Members

Functions

declareUnknownStructs
void declareUnknownStructs()

If unknown structs show up in functions or fields (as a pointer), define them now so the D file can compile See it.c.compile.delayed.

rememberAggregate
void rememberAggregate(in Cursor cursor)

Remember this aggregate cursor

rememberField
void rememberField(in string spelling)

In C it's possible for a struct field name to have the same name as a struct because of elaborated names. We remember them here in case we need to fix them.

rememberFieldStruct
void rememberFieldStruct(in string typeSpelling)

Tells the context to remember a struct type encountered in an aggregate field. Typically this will be a pointer to a structure but it could also be the return type or parameter types of a function pointer field.

spellingOrNickname
string spellingOrNickname(in Cursor cursor)

return the spelling if it exists, or our made-up nickname for it if not

Variables

options
Options options;

Command-line options

Meta