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

Go to the source code of this file.

Functions

static void _addFlagSpecificSystemHeaders (TYPEMAKER2_TYPE *ty, GWEN_BUFFER *tbuf)
static void _addPreHeaders (TYPEMAKER2_TYPE *ty, GWEN_BUFFER *tbuf)
static void _addTypeSpecificDefs (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty, uint32_t flags, GWEN_BUFFER *tbuf)
int TM2C_BuildTypedef (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty)

Function Documentation

◆ _addFlagSpecificSystemHeaders()

◆ _addPreHeaders()

void _addPreHeaders ( TYPEMAKER2_TYPE * ty,
GWEN_BUFFER * tbuf )
static

Definition at line 101 of file tm2c_typedef.c.

References GWEN_Buffer_AppendString(), Typemaker2_Header_GetFileName(), Typemaker2_Header_GetLocation(), Typemaker2_Header_GetType(), Typemaker2_HeaderLocation_Pre, Typemaker2_HeaderType_System, and Typemaker2_Type_GetHeaders().

Referenced by TM2C_BuildTypedef().

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

◆ _addTypeSpecificDefs()

◆ TM2C_BuildTypedef()

int TM2C_BuildTypedef ( TYPEMAKER2_BUILDER * tb,
TYPEMAKER2_TYPE * ty )

writes typedef line into public header and also writes includes

Definition at line 31 of file tm2c_typedef.c.

References _addFlagSpecificSystemHeaders(), _addPreHeaders(), _addTypeSpecificDefs(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), Typemaker2_Builder_AddPublicDeclaration(), Typemaker2_Type_GetFlags(), Typemaker2_Type_GetIdentifier(), and TYPEMAKER2_TYPEFLAGS_WITH_OBJECT.

Referenced by Typemaker2_Builder_C_Build().

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