|
gwenhywfar 5.12.0
|
#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>
Go to the source code of this file.
| int write_c_enums | ( | GWEN_UNUSED ARGUMENTS * | args, |
| GWEN_XMLNODE * | node, | ||
| GWEN_SYNCIO * | sio ) |
Definition at line 35 of file code_c.c.
References DBG_ERROR, get_struct_property(), GWEN_Buffer_AppendByte(), GWEN_Buffer_AppendString(), GWEN_Buffer_Crop(), GWEN_Buffer_free(), GWEN_Buffer_GetPos(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_Buffer_SetPos(), GWEN_SyncIo_WriteLine(), GWEN_SyncIo_WriteString(), GWEN_UNUSED, GWEN_XMLNode_FindFirstTag(), GWEN_XMLNode_FindNextTag(), GWEN_XMLNode_GetData(), GWEN_XMLNode_GetFirstData(), and GWEN_XMLNode_GetProperty().
Referenced by write_code_file_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().


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


| int write_code_constrec_c | ( | ARGUMENTS * | args, |
| GWEN_XMLNODE * | node, | ||
| GWEN_SYNCIO * | sio ) |
Definition at line 936 of file code_c.c.
References DBG_ERROR, get_function_name(), get_property(), get_struct_property(), GWEN_SyncIo_WriteChar(), GWEN_SyncIo_WriteLine(), GWEN_SyncIo_WriteString(), GWEN_XMLNode_GetData(), GWEN_XMLNode_GetFirstTag(), GWEN_XMLNode_GetNextTag(), GWEN_XMLNode_GetProperty(), GWEN_XMLNode_GetType(), GWEN_XMLNodeTypeTag, and write_code_constrec_c().
Referenced by write_code_const_c(), and write_code_constrec_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().


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


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


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


| int write_code_duprec_c | ( | ARGUMENTS * | args, |
| GWEN_XMLNODE * | node, | ||
| GWEN_SYNCIO * | sio ) |
Definition at line 1866 of file code_c.c.
References DBG_ERROR, get_function_name(), get_property(), get_struct_property(), GWEN_Buffer_AppendByte(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_SyncIo_WriteChar(), GWEN_SyncIo_WriteLine(), GWEN_SyncIo_WriteString(), GWEN_XMLNode_GetData(), GWEN_XMLNode_GetFirstTag(), GWEN_XMLNode_GetNextTag(), GWEN_XMLNode_GetProperty(), GWEN_XMLNode_GetType(), GWEN_XMLNodeTypeTag, write_code_dupArg_c(), write_code_dupList_c(), and write_code_duprec_c().
Referenced by write_code_dup_c(), and write_code_duprec_c().


| int write_code_file_c | ( | ARGUMENTS * | args, |
| GWEN_XMLNODE * | node ) |
Definition at line 2780 of file code_c.c.
References DBG_ERROR, DBG_ERROR_ERR, get_struct_property(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_SyncIo_AddFlags(), GWEN_SyncIo_Connect(), GWEN_SyncIo_Disconnect(), GWEN_SyncIo_File_CreationMode_CreateAlways, GWEN_SYNCIO_FILE_FLAGS_GREAD, GWEN_SYNCIO_FILE_FLAGS_GWRITE, GWEN_SYNCIO_FILE_FLAGS_READ, GWEN_SYNCIO_FILE_FLAGS_UREAD, GWEN_SYNCIO_FILE_FLAGS_UWRITE, GWEN_SYNCIO_FILE_FLAGS_WRITE, GWEN_SyncIo_File_new(), GWEN_SyncIo_free(), GWEN_SyncIo_WriteLine(), GWEN_SyncIo_WriteString(), GWEN_XMLNode_FindFirstTag(), GWEN_XMLNode_FindNextTag(), write_c_enums(), write_code_builtin_c(), write_code_const_c(), write_code_dest_c(), write_code_dup_c(), write_code_fromdb_c(), write_code_readdb_c(), write_code_setget_c(), write_code_todb_c(), and write_h_header().
Referenced by 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().


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


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


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


| int write_code_fromdbArg_c | ( | GWEN_UNUSED ARGUMENTS * | args, |
| GWEN_XMLNODE * | node, | ||
| GWEN_SYNCIO * | sio ) |
Definition at line 772 of file code_c.c.
References DBG_ERROR, get_function_name(), get_property(), get_struct_property(), get_typedef(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_SyncIo_WriteChar(), GWEN_SyncIo_WriteString(), GWEN_UNUSED, and GWEN_XMLNode_GetProperty().
Referenced by write_code_fromdbrec_c().


| int write_code_fromdbrec_c | ( | ARGUMENTS * | args, |
| GWEN_XMLNODE * | node, | ||
| GWEN_SYNCIO * | sio ) |
Definition at line 2154 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_XMLNode_GetData(), GWEN_XMLNode_GetFirstTag(), GWEN_XMLNode_GetNextTag(), GWEN_XMLNode_GetProperty(), GWEN_XMLNode_GetType(), GWEN_XMLNodeTypeTag, write_code_freeElem_c(), write_code_fromdbArg_c(), and write_code_fromdbrec_c().
Referenced by write_code_fromdbrec_c(), and 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().


| int write_code_setget_c | ( | ARGUMENTS * | args, |
| GWEN_XMLNODE * | node, | ||
| GWEN_SYNCIO * | sio ) |
Definition at line 1181 of file code_c.c.
References DBG_ERROR, get_property(), get_struct_property(), get_typedef(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_SyncIo_WriteChar(), GWEN_SyncIo_WriteLine(), GWEN_SyncIo_WriteString(), GWEN_XMLNode_FindFirstTag(), GWEN_XMLNode_FindNextTag(), GWEN_XMLNode_GetData(), GWEN_XMLNode_GetFirstTag(), GWEN_XMLNode_GetNextTag(), GWEN_XMLNode_GetProperty(), GWEN_XMLNode_GetType(), GWEN_XMLNodeTypeTag, write_code_dupArg_c(), write_code_dupList_c(), write_code_freeElem_c(), and write_code_setget_c().
Referenced by write_code_file_c(), and write_code_setget_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().


| int write_code_todbArg_c | ( | GWEN_UNUSED ARGUMENTS * | args, |
| GWEN_XMLNODE * | node, | ||
| GWEN_SYNCIO * | sio ) |
Definition at line 406 of file code_c.c.
References DBG_ERROR, get_function_name(), get_property(), get_struct_property(), get_typedef(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_SyncIo_WriteChar(), GWEN_SyncIo_WriteLine(), GWEN_SyncIo_WriteString(), GWEN_UNUSED, and GWEN_XMLNode_GetProperty().
Referenced by write_code_todbrec_c().


| int write_code_todbrec_c | ( | ARGUMENTS * | args, |
| GWEN_XMLNODE * | node, | ||
| GWEN_SYNCIO * | sio ) |
Definition at line 2041 of file code_c.c.
References DBG_ERROR, get_property(), get_struct_property(), GWEN_SyncIo_WriteChar(), GWEN_SyncIo_WriteLine(), GWEN_SyncIo_WriteString(), GWEN_XMLNode_GetData(), GWEN_XMLNode_GetFirstTag(), GWEN_XMLNode_GetNextTag(), GWEN_XMLNode_GetProperty(), GWEN_XMLNode_GetType(), GWEN_XMLNodeTypeTag, write_code_todbArg_c(), and write_code_todbrec_c().
Referenced by write_code_todb_c(), and write_code_todbrec_c().

