3. Core Struct
3.1. Struct Declaration(s)
All data for instance of gest is managed in a struct
called gest_d
. It is initialized with gest_init
.
<<typedefs>>=
typedef struct gest_d gest_d;
<<structs>>=
<<struct_gest_target>>
<<struct_ramptree>>
<<struct_phrase>>
<<struct_collection>>
<<gest_state>>
struct gest_d {
<<gest_d>>
};
3.2. Initialization
<<funcdefs>>=
void gest_init(gest_d *g);
<<funcs>>=
void gest_init(gest_d *g)
{
<<init>>
}
3.3. Cleanup
Fully clean up things with gest_cleanup
.
<<funcdefs>>=
void gest_cleanup(gest_d *g);
<<funcs>>=
void gest_cleanup(gest_d *g)
{
<<cleanup>>
}
3.4. Sizeof
gest_sizeof
is used for opaque functions.
<<funcdefs>>=
size_t gest_sizeof(void);
<<funcs>>=
size_t gest_sizeof(void)
{
return sizeof(gest_d);
}
prev | home | next