5 #include <gwenhywfar/args.h> 6 #include <gwenhywfar/debug.h> 7 #include <gwenhywfar/cgui.h> 8 #include <gwenhywfar/db.h> 9 #include <gwenhywfar/gwenhywfar.h> 17 int main(
int argc,
char **argv)
33 "API declaration prefix (like GWENHYWFAR_API)",
34 "API declaration prefix (like GWENHYWFAR_API)" 44 "Name of the public header file to create",
45 "Name of the public header file to create" 55 "Name of the library header file to create",
56 "Name of the library header file to create" 66 "Name of the protected header file to create",
67 "Name of the protected header file to create" 77 "Name of the private header file to create",
78 "Name of the private header file to create" 88 "Name of the code file to create",
89 "Name of the code file to create" 110 "Language for which to create the headers and code",
111 "Language for which to create the headers and code" 121 "Add folder to include for type lookup",
122 "Add folder to include for type lookup" 132 "Only write def files (*.tm2)",
133 "Only write def files (*.tm2)" 143 "Dont write def files (*.tm2)",
144 "Dont write def files (*.tm2)" 155 "Show this help screen",
156 "Show this help screen" 162 fprintf(stderr,
"Could not initialize Gwenhywfar.\n");
179 fprintf(stderr,
"ERROR: Could not parse arguments main\n");
190 I18N(
" [GLOBAL OPTIONS] COMMAND " 191 "[LOCAL OPTIONS]\n"));
193 I18N(
"\nGlobal Options:\n"));
195 fprintf(stderr,
"ERROR: Could not create help string\n");
199 I18N(
"\nCommands:\n\n"));
202 " This command creates source and header files for the given file" 224 "WARNING: Could not deinitialize Gwenhywfar.\n");
char * GWEN_Buffer_GetStart(const GWEN_BUFFER *bf)
struct GWEN_DB_NODE GWEN_DB_NODE
int buildDefs(GWEN_DB_NODE *dbArgs)
int main(int argc, char **argv)
int build(GWEN_DB_NODE *dbArgs)
#define GWEN_ARGS_FLAGS_HELP
GWEN_BUFFER * GWEN_Buffer_new(char *buffer, uint32_t size, uint32_t used, int take)
#define GWEN_ARGS_RESULT_HELP
#define GWEN_ARGS_RESULT_ERROR
int GWEN_Args_Usage(const GWEN_ARGS *args, GWEN_BUFFER *ubuf, GWEN_ARGS_OUTTYPE ot)
#define GWEN_ARGS_MODE_ALLOW_FREEPARAM
void GWEN_Buffer_free(GWEN_BUFFER *bf)
struct GWEN_BUFFER GWEN_BUFFER
A dynamically resizeable text buffer.
#define GWEN_ARGS_FLAGS_LAST
int GWEN_Logger_Open(const char *logDomain, const char *ident, const char *file, GWEN_LOGGER_LOGTYPE logtype, GWEN_LOGGER_FACILITY facility)
int GWEN_Args_Check(int argc, char **argv, int startAt, uint32_t mode, const GWEN_ARGS *args, GWEN_DB_NODE *db)
int GWEN_DB_GetIntValue(GWEN_DB_NODE *n, const char *path, int idx, int defVal)
GWEN_DB_NODE * GWEN_DB_Group_new(const char *name)
void GWEN_Gui_SetGui(GWEN_GUI *gui)
GWEN_GUI * GWEN_Gui_CGui_new(void)
#define GWEN_ARGS_FLAGS_HAS_ARGUMENT
int GWEN_Buffer_AppendString(GWEN_BUFFER *bf, const char *buffer)