gwenhywfar  5.10.1
Functions
tm2c_destructor.c File Reference
#include "tm2c_destructor.h"
#include <gwenhywfar/debug.h>
#include <ctype.h>
Include dependency graph for tm2c_destructor.c:

Go to the source code of this file.

Functions

static void _addFreeHookPrototype (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty)
 
static int _addImplementation (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty)
 
static int _addMemberFinis (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty, GWEN_BUFFER *tbuf)
 
static void _addPrototypes (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty)
 
static void _addTypeFinis (TYPEMAKER2_TYPE *ty, uint32_t flags, GWEN_BUFFER *tbuf)
 
int TM2C_BuildDestructor (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty)
 

Function Documentation

◆ _addFreeHookPrototype()

void _addFreeHookPrototype ( TYPEMAKER2_BUILDER tb,
TYPEMAKER2_TYPE ty 
)
static

Definition at line 80 of file tm2c_destructor.c.

References GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), Typemaker2_Builder_AddPrivateDeclaration(), Typemaker2_Type_GetFreeHook(), and Typemaker2_Type_GetIdentifier().

Referenced by TM2C_BuildDestructor().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _addImplementation()

int _addImplementation ( TYPEMAKER2_BUILDER tb,
TYPEMAKER2_TYPE ty 
)
static

◆ _addMemberFinis()

int _addMemberFinis ( TYPEMAKER2_BUILDER tb,
TYPEMAKER2_TYPE ty,
GWEN_BUFFER tbuf 
)
static

◆ _addPrototypes()

void _addPrototypes ( TYPEMAKER2_BUILDER tb,
TYPEMAKER2_TYPE ty 
)
static

◆ _addTypeFinis()

void _addTypeFinis ( TYPEMAKER2_TYPE ty,
uint32_t  flags,
GWEN_BUFFER tbuf 
)
static

◆ TM2C_BuildDestructor()

int TM2C_BuildDestructor ( TYPEMAKER2_BUILDER tb,
TYPEMAKER2_TYPE ty 
)

Definition at line 33 of file tm2c_destructor.c.

References _addFreeHookPrototype(), _addImplementation(), _addPrototypes(), DBG_INFO, and NULL.

Referenced by Typemaker2_Builder_C_Build().

Here is the call graph for this function:
Here is the caller graph for this function: