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

Go to the source code of this file.

Macros

#define GBAA   GWEN_Buffer_AppendArgs
 
#define GBAS   GWEN_Buffer_AppendString
 

Functions

static void _addCompareMemberDeclaration (TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm, GWEN_BUFFER *tbuf, int ascending)
 
static int _addCompareMemberImplementation (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm, int ascending)
 
static void _addCompareMemberProtoType (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm, int ascending)
 
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 _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_BuildTree2GetByMember (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm)
 
int TM2C_BuildTree2SortByMember (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm)
 

Macro Definition Documentation

◆ GBAA

#define GBAA   GWEN_Buffer_AppendArgs

◆ GBAS

#define GBAS   GWEN_Buffer_AppendString

Function Documentation

◆ _addCompareMemberDeclaration()

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

Definition at line 369 of file tm2c_tree2.c.

References GBAA, 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()

int _addCompareMemberImplementation ( TYPEMAKER2_BUILDER tb,
TYPEMAKER2_TYPE ty,
TYPEMAKER2_MEMBER tm,
int  ascending 
)
static

◆ _addCompareMemberProtoType()

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

Definition at line 296 of file tm2c_tree2.c.

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

Referenced by TM2C_BuildTree2SortByMember().

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()

int _addGetByMemberImplementation ( TYPEMAKER2_BUILDER tb,
TYPEMAKER2_TYPE ty,
TYPEMAKER2_MEMBER tm 
)
static

◆ _addGetByMemberProtoType()

void _addGetByMemberProtoType ( TYPEMAKER2_BUILDER tb,
TYPEMAKER2_TYPE ty,
TYPEMAKER2_MEMBER tm 
)
static

◆ _addSortByMemberDeclaration()

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

Definition at line 272 of file tm2c_tree2.c.

References GBAA, 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()

void _addSortByMemberImplementation ( TYPEMAKER2_BUILDER tb,
TYPEMAKER2_TYPE ty,
TYPEMAKER2_MEMBER tm 
)
static

Definition at line 242 of file tm2c_tree2.c.

References _addSortByMemberDeclaration(), GBAA, GBAS, GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), Typemaker2_Builder_AddCode(), Typemaker2_Member_GetName(), Typemaker2_Member_GetTypePtr(), and Typemaker2_Type_GetPrefix().

Referenced by TM2C_BuildTree2SortByMember().

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

◆ _addSortByMemberProtoType()

void _addSortByMemberProtoType ( TYPEMAKER2_BUILDER tb,
TYPEMAKER2_TYPE ty,
TYPEMAKER2_MEMBER tm 
)
static

◆ TM2C_BuildTree2GetByMember()

int TM2C_BuildTree2GetByMember ( TYPEMAKER2_BUILDER tb,
TYPEMAKER2_TYPE ty,
TYPEMAKER2_MEMBER tm 
)

Definition at line 41 of file tm2c_tree2.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_BuildTree2SortByMember()

int TM2C_BuildTree2SortByMember ( TYPEMAKER2_BUILDER tb,
TYPEMAKER2_TYPE ty,
TYPEMAKER2_MEMBER tm 
)

Definition at line 57 of file tm2c_tree2.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: