gwenhywfar 5.14.1
tm2c_struct.c File Reference
#include "tm2c_struct.h"
#include <gwenhywfar/debug.h>
#include <ctype.h>
Include dependency graph for tm2c_struct.c:

Go to the source code of this file.

Functions

static void _addFlagspecificElements (TYPEMAKER2_TYPE *ty, uint32_t flags, GWEN_BUFFER *tbuf)
static int _addMember (TYPEMAKER2_MEMBER *tm, GWEN_BUFFER *tbuf)
static int _addMembers (TYPEMAKER2_TYPE *ty, GWEN_BUFFER *tbuf)
static int _addVirtualFunctions (TYPEMAKER2_TYPE *ty, GWEN_BUFFER *tbuf)
int TM2C_BuildStruct (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty)

Function Documentation

◆ _addFlagspecificElements()

void _addFlagspecificElements ( TYPEMAKER2_TYPE * ty,
uint32_t flags,
GWEN_BUFFER * tbuf )
static

Definition at line 101 of file tm2c_struct.c.

References GWEN_Buffer_AppendArgs(), Typemaker2_Type_GetIdentifier(), TYPEMAKER2_TYPEFLAGS_WITH_INHERIT, TYPEMAKER2_TYPEFLAGS_WITH_LIST1, TYPEMAKER2_TYPEFLAGS_WITH_TREE, and TYPEMAKER2_TYPEFLAGS_WITH_TREE2.

Referenced by TM2C_BuildStruct().

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

◆ _addMember()

◆ _addMembers()

int _addMembers ( TYPEMAKER2_TYPE * ty,
GWEN_BUFFER * tbuf )
static

Definition at line 122 of file tm2c_struct.c.

References _addMember(), DBG_INFO, NULL, and Typemaker2_Type_GetMembers().

Referenced by TM2C_BuildStruct().

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

◆ _addVirtualFunctions()

int _addVirtualFunctions ( TYPEMAKER2_TYPE * ty,
GWEN_BUFFER * tbuf )
static

Definition at line 210 of file tm2c_struct.c.

References DBG_ERROR, GWEN_Buffer_AppendByte(), GWEN_Buffer_AppendString(), GWEN_ERROR_BAD_DATA, Typemaker2_Type_GetIdentifier(), Typemaker2_Type_GetVirtualFns(), and Typemaker2_VirtualFn_GetName().

Referenced by TM2C_BuildStruct().

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

◆ TM2C_BuildStruct()