gwenhywfar 5.12.0
code_c.c File Reference
#include "args.h"
#include "typemaker_p.h"
#include <gwenhywfar/debug.h>
#include <gwenhywfar/logger.h>
#include <gwenhywfar/xml.h>
#include <gwenhywfar/syncio_file.h>
#include <stdlib.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <ctype.h>
Include dependency graph for code_c.c:

Go to the source code of this file.

Functions

int write_c_enums (GWEN_UNUSED ARGUMENTS *args, GWEN_XMLNODE *node, GWEN_SYNCIO *sio)
int write_code_builtin_c (GWEN_UNUSED ARGUMENTS *args, GWEN_XMLNODE *node, GWEN_SYNCIO *sio)
int write_code_const_c (ARGUMENTS *args, GWEN_XMLNODE *node, GWEN_SYNCIO *sio)
int write_code_constrec_c (ARGUMENTS *args, GWEN_XMLNODE *node, GWEN_SYNCIO *sio)
int write_code_dest_c (ARGUMENTS *args, GWEN_XMLNODE *node, GWEN_SYNCIO *sio)
int write_code_dup_c (ARGUMENTS *args, GWEN_XMLNODE *node, GWEN_SYNCIO *sio)
int write_code_dupArg_c (GWEN_UNUSED ARGUMENTS *args, GWEN_XMLNODE *node, GWEN_SYNCIO *sio, const char *param)
int write_code_dupList_c (GWEN_UNUSED ARGUMENTS *args, GWEN_XMLNODE *n, GWEN_SYNCIO *sio, const char *listName)
int write_code_duprec_c (ARGUMENTS *args, GWEN_XMLNODE *node, GWEN_SYNCIO *sio)
int write_code_file_c (ARGUMENTS *args, GWEN_XMLNODE *node)
int write_code_files_c (ARGUMENTS *args, GWEN_XMLNODE *node)
int write_code_freeElem_c (GWEN_UNUSED ARGUMENTS *args, GWEN_XMLNODE *node, GWEN_SYNCIO *sio)
int write_code_freeElems_c (ARGUMENTS *args, GWEN_XMLNODE *node, GWEN_SYNCIO *sio)
int write_code_fromdb_c (GWEN_UNUSED ARGUMENTS *args, GWEN_XMLNODE *node, GWEN_SYNCIO *sio)
int write_code_fromdbArg_c (GWEN_UNUSED ARGUMENTS *args, GWEN_XMLNODE *node, GWEN_SYNCIO *sio)
int write_code_fromdbrec_c (ARGUMENTS *args, GWEN_XMLNODE *node, GWEN_SYNCIO *sio)
int write_code_readdb_c (ARGUMENTS *args, GWEN_XMLNODE *node, GWEN_SYNCIO *sio)
int write_code_setget_c (ARGUMENTS *args, GWEN_XMLNODE *node, GWEN_SYNCIO *sio)
int write_code_todb_c (ARGUMENTS *args, GWEN_XMLNODE *node, GWEN_SYNCIO *sio)
int write_code_todbArg_c (GWEN_UNUSED ARGUMENTS *args, GWEN_XMLNODE *node, GWEN_SYNCIO *sio)
int write_code_todbrec_c (ARGUMENTS *args, GWEN_XMLNODE *node, GWEN_SYNCIO *sio)

Function Documentation

◆ write_c_enums()

◆ write_code_builtin_c()

int write_code_builtin_c ( GWEN_UNUSED ARGUMENTS * args,
GWEN_XMLNODE * node,
GWEN_SYNCIO * sio )

Definition at line 2591 of file code_c.c.

References DBG_ERROR, get_struct_property(), GWEN_SyncIo_WriteLine(), GWEN_SyncIo_WriteString(), and GWEN_UNUSED.

Referenced by write_code_file_c().

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

◆ write_code_const_c()

int write_code_const_c ( ARGUMENTS * args,
GWEN_XMLNODE * node,
GWEN_SYNCIO * sio )

Definition at line 1054 of file code_c.c.

References DBG_ERROR, get_struct_property(), GWEN_SyncIo_WriteLine(), GWEN_SyncIo_WriteString(), and write_code_constrec_c().

Referenced by write_code_file_c().

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

◆ write_code_constrec_c()

◆ write_code_dest_c()

int write_code_dest_c ( ARGUMENTS * args,
GWEN_XMLNODE * node,
GWEN_SYNCIO * sio )

Definition at line 1120 of file code_c.c.

References DBG_ERROR, get_struct_property(), GWEN_SyncIo_WriteLine(), GWEN_SyncIo_WriteString(), and write_code_freeElems_c().

Referenced by write_code_file_c().

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

◆ write_code_dup_c()

int write_code_dup_c ( ARGUMENTS * args,
GWEN_XMLNODE * node,
GWEN_SYNCIO * sio )

Definition at line 1982 of file code_c.c.

References DBG_ERROR, get_struct_property(), GWEN_SyncIo_WriteLine(), GWEN_SyncIo_WriteString(), and write_code_duprec_c().

Referenced by write_code_file_c().

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

◆ write_code_dupArg_c()

int write_code_dupArg_c ( GWEN_UNUSED ARGUMENTS * args,
GWEN_XMLNODE * node,
GWEN_SYNCIO * sio,
const char * param )

Definition at line 333 of file code_c.c.

References DBG_ERROR, DBG_ERROR_ERR, get_function_name(), GWEN_SyncIo_WriteLine(), GWEN_SyncIo_WriteString(), GWEN_UNUSED, and GWEN_XMLNode_GetProperty().

Referenced by write_code_duprec_c(), and write_code_setget_c().

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

◆ write_code_dupList_c()

int write_code_dupList_c ( GWEN_UNUSED ARGUMENTS * args,
GWEN_XMLNODE * n,
GWEN_SYNCIO * sio,
const char * listName )

Definition at line 1637 of file code_c.c.

References DBG_ERROR, get_property(), get_struct_property(), get_typedef(), GWEN_SyncIo_WriteChar(), GWEN_SyncIo_WriteLine(), GWEN_SyncIo_WriteString(), GWEN_UNUSED, and GWEN_XMLNode_GetProperty().

Referenced by write_code_duprec_c(), and write_code_setget_c().

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

◆ write_code_duprec_c()

◆ write_code_file_c()

◆ write_code_files_c()

int write_code_files_c ( ARGUMENTS * args,
GWEN_XMLNODE * node )

Definition at line 3008 of file code_c.c.

References GWEN_XMLNode_FindFirstTag(), GWEN_XMLNode_FindNextTag(), and write_code_file_c().

Referenced by write_files().

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

◆ write_code_freeElem_c()

int write_code_freeElem_c ( GWEN_UNUSED ARGUMENTS * args,
GWEN_XMLNODE * node,
GWEN_SYNCIO * sio )

Definition at line 196 of file code_c.c.

References DBG_ERROR, DBG_ERROR_ERR, get_function_name(), get_property(), GWEN_SyncIo_WriteLine(), GWEN_SyncIo_WriteString(), GWEN_UNUSED, and GWEN_XMLNode_GetProperty().

Referenced by write_code_freeElems_c(), write_code_fromdbrec_c(), and write_code_setget_c().

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

◆ write_code_freeElems_c()

int write_code_freeElems_c ( ARGUMENTS * args,
GWEN_XMLNODE * node,
GWEN_SYNCIO * sio )

Definition at line 302 of file code_c.c.

References GWEN_XMLNode_GetData(), GWEN_XMLNode_GetFirstTag(), GWEN_XMLNode_GetNextTag(), GWEN_XMLNode_GetType(), GWEN_XMLNodeTypeTag, write_code_freeElem_c(), and write_code_freeElems_c().

Referenced by write_code_dest_c(), and write_code_freeElems_c().

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

◆ write_code_fromdb_c()

int write_code_fromdb_c ( GWEN_UNUSED ARGUMENTS * args,
GWEN_XMLNODE * node,
GWEN_SYNCIO * sio )

Definition at line 2538 of file code_c.c.

References DBG_ERROR, get_struct_property(), GWEN_SyncIo_WriteLine(), GWEN_SyncIo_WriteString(), and GWEN_UNUSED.

Referenced by write_code_file_c().

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

◆ write_code_fromdbArg_c()

int write_code_fromdbArg_c ( GWEN_UNUSED ARGUMENTS * args,
GWEN_XMLNODE * node,
GWEN_SYNCIO * sio )

◆ write_code_fromdbrec_c()

◆ write_code_readdb_c()

int write_code_readdb_c ( ARGUMENTS * args,
GWEN_XMLNODE * node,
GWEN_SYNCIO * sio )

Definition at line 2498 of file code_c.c.

References DBG_ERROR, get_struct_property(), GWEN_SyncIo_WriteLine(), GWEN_SyncIo_WriteString(), and write_code_fromdbrec_c().

Referenced by write_code_file_c().

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

◆ write_code_setget_c()

◆ write_code_todb_c()

int write_code_todb_c ( ARGUMENTS * args,
GWEN_XMLNODE * node,
GWEN_SYNCIO * sio )

Definition at line 2114 of file code_c.c.

References DBG_ERROR, get_struct_property(), GWEN_SyncIo_WriteLine(), GWEN_SyncIo_WriteString(), and write_code_todbrec_c().

Referenced by write_code_file_c().

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

◆ write_code_todbArg_c()

int write_code_todbArg_c ( GWEN_UNUSED ARGUMENTS * args,
GWEN_XMLNODE * node,
GWEN_SYNCIO * sio )

◆ write_code_todbrec_c()