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

Go to the source code of this file.

Functions

static void _addCompareMemberDeclaration (TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm, GWEN_BUFFER *tbuf)
static int _addCompareMemberImplementation (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm)
static void _addCompareMemberProtoType (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm)
static void _addGetByMemberDeclaration (TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm, GWEN_BUFFER *tbuf)
static int _addGetByMemberImplementation (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm)
static void _addGetByMemberProtoType (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm)
static void _addListDupDeclaration (TYPEMAKER2_TYPE *ty, GWEN_BUFFER *tbuf)
static int _addListDupImplementation (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty)
static void _addListDupProtoType (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty)
static void _addSortByMemberDeclaration (TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm, GWEN_BUFFER *tbuf)
static void _addSortByMemberImplementation (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm)
static void _addSortByMemberProtoType (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm)
int TM2C_BuildList1Dup (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty)
int TM2C_BuildList1GetByMember (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm)
int TM2C_BuildList1SortByMember (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm)

Function Documentation

◆ _addCompareMemberDeclaration()

void _addCompareMemberDeclaration ( TYPEMAKER2_TYPE * ty,
TYPEMAKER2_MEMBER * tm,
GWEN_BUFFER * tbuf )
static

Definition at line 466 of file tm2c_list1.c.

References GWEN_Buffer_AppendArgs(), Typemaker2_Member_GetName(), Typemaker2_Member_GetTypePtr(), Typemaker2_Type_GetIdentifier(), and Typemaker2_Type_GetPrefix().

Referenced by _addCompareMemberImplementation(), and _addCompareMemberProtoType().

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

◆ _addCompareMemberImplementation()

◆ _addCompareMemberProtoType()

void _addCompareMemberProtoType ( TYPEMAKER2_BUILDER * tb,
TYPEMAKER2_TYPE * ty,
TYPEMAKER2_MEMBER * tm )
static

Definition at line 393 of file tm2c_list1.c.

References _addCompareMemberDeclaration(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), and Typemaker2_Builder_AddPrivateDeclaration().

Referenced by TM2C_BuildList1SortByMember().

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

◆ _addGetByMemberDeclaration()

void _addGetByMemberDeclaration ( TYPEMAKER2_TYPE * ty,
TYPEMAKER2_MEMBER * tm,
GWEN_BUFFER * tbuf )
static

◆ _addGetByMemberImplementation()

◆ _addGetByMemberProtoType()

◆ _addListDupDeclaration()

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

Definition at line 225 of file tm2c_list1.c.

References GWEN_Buffer_AppendArgs(), Typemaker2_Type_GetIdentifier(), and Typemaker2_Type_GetPrefix().

Referenced by _addListDupImplementation(), and _addListDupProtoType().

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

◆ _addListDupImplementation()

int _addListDupImplementation ( TYPEMAKER2_BUILDER * tb,
TYPEMAKER2_TYPE * ty )
static

◆ _addListDupProtoType()

void _addListDupProtoType ( TYPEMAKER2_BUILDER * tb,
TYPEMAKER2_TYPE * ty )
static

◆ _addSortByMemberDeclaration()

void _addSortByMemberDeclaration ( TYPEMAKER2_TYPE * ty,
TYPEMAKER2_MEMBER * tm,
GWEN_BUFFER * tbuf )
static

Definition at line 369 of file tm2c_list1.c.

References GWEN_Buffer_AppendArgs(), Typemaker2_Member_GetName(), Typemaker2_Member_GetTypePtr(), Typemaker2_Type_GetIdentifier(), and Typemaker2_Type_GetPrefix().

Referenced by _addSortByMemberImplementation(), and _addSortByMemberProtoType().

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

◆ _addSortByMemberImplementation()

◆ _addSortByMemberProtoType()

◆ TM2C_BuildList1Dup()

int TM2C_BuildList1Dup ( TYPEMAKER2_BUILDER * tb,
TYPEMAKER2_TYPE * ty )

Definition at line 59 of file tm2c_list1.c.

References _addListDupImplementation(), _addListDupProtoType(), 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:

◆ TM2C_BuildList1GetByMember()

int TM2C_BuildList1GetByMember ( TYPEMAKER2_BUILDER * tb,
TYPEMAKER2_TYPE * ty,
TYPEMAKER2_MEMBER * tm )

Definition at line 43 of file tm2c_list1.c.

References _addGetByMemberImplementation(), _addGetByMemberProtoType(), DBG_INFO, and NULL.

Referenced by _buildGetByMember().

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

◆ TM2C_BuildList1SortByMember()

int TM2C_BuildList1SortByMember ( TYPEMAKER2_BUILDER * tb,
TYPEMAKER2_TYPE * ty,
TYPEMAKER2_MEMBER * tm )

Definition at line 75 of file tm2c_list1.c.

References _addCompareMemberImplementation(), _addCompareMemberProtoType(), _addSortByMemberImplementation(), _addSortByMemberProtoType(), DBG_INFO, and NULL.

Referenced by _buildSortByMember().

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