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

Go to the source code of this file.

Functions

static int _addAssignValueCode (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm, GWEN_BUFFER *tbuf)
static int _addCopyMemberCode (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm, GWEN_BUFFER *tbuf)
static int _addDupValueCode (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty, TYPEMAKER2_MEMBER *tm, GWEN_BUFFER *tbuf)
static int _addImplementation (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty)
static void _addPrototype (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty)
int TM2C_BuildCopy (TYPEMAKER2_BUILDER *tb, TYPEMAKER2_TYPE *ty)

Function Documentation

◆ _addAssignValueCode()

int _addAssignValueCode ( TYPEMAKER2_BUILDER * tb,
TYPEMAKER2_TYPE * ty,
TYPEMAKER2_MEMBER * tm,
GWEN_BUFFER * tbuf )
static

Definition at line 181 of file tm2c_copy.c.

References DBG_INFO, GWEN_Buffer_AppendArgs(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_LOGDOMAIN, Typemaker2_Builder_Invoke_AssignFn(), and Typemaker2_Member_GetName().

Referenced by _addCopyMemberCode().

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

◆ _addCopyMemberCode()

◆ _addDupValueCode()

int _addDupValueCode ( TYPEMAKER2_BUILDER * tb,
TYPEMAKER2_TYPE * ty,
TYPEMAKER2_MEMBER * tm,
GWEN_BUFFER * tbuf )
static

Definition at line 214 of file tm2c_copy.c.

References DBG_INFO, GWEN_Buffer_AppendArgs(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_LOGDOMAIN, Typemaker2_Builder_Invoke_DupFn(), and Typemaker2_Member_GetName().

Referenced by _addCopyMemberCode().

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

◆ _addPrototype()

◆ TM2C_BuildCopy()

int TM2C_BuildCopy ( TYPEMAKER2_BUILDER * tb,
TYPEMAKER2_TYPE * ty )

Definition at line 34 of file tm2c_copy.c.

References _addImplementation(), _addPrototype(), 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: