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>
17int 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");
GWEN_BUFFER * GWEN_Buffer_new(char *buffer, uint32_t size, uint32_t used, int take)
void GWEN_Buffer_free(GWEN_BUFFER *bf)
int GWEN_Buffer_AppendString(GWEN_BUFFER *bf, const char *buffer)
char * GWEN_Buffer_GetStart(const GWEN_BUFFER *bf)
int build(GWEN_DB_NODE *dbArgs)
int buildDefs(GWEN_DB_NODE *dbArgs)
GWEN_GUI * GWEN_Gui_CGui_new(void)
GWEN_DB_NODE * GWEN_DB_Group_new(const char *name)
int GWEN_DB_GetIntValue(GWEN_DB_NODE *n, const char *path, int idx, int defVal)
struct GWEN_DB_NODE GWEN_DB_NODE
struct GWEN_BUFFER GWEN_BUFFER
A dynamically resizeable text buffer.
void GWEN_Gui_SetGui(GWEN_GUI *gui)
int GWEN_Logger_Open(const char *logDomain, const char *ident, const char *file, GWEN_LOGGER_LOGTYPE logtype, GWEN_LOGGER_FACILITY facility)
@ GWEN_LoggerType_Console
@ GWEN_LoggerFacility_User
int GWEN_Args_Check(int argc, char **argv, int startAt, uint32_t mode, const GWEN_ARGS *args, GWEN_DB_NODE *db)
int GWEN_Args_Usage(const GWEN_ARGS *args, GWEN_BUFFER *ubuf, GWEN_ARGS_OUTTYPE ot)
#define GWEN_ARGS_FLAGS_HAS_ARGUMENT
#define GWEN_ARGS_RESULT_ERROR
#define GWEN_ARGS_MODE_ALLOW_FREEPARAM
#define GWEN_ARGS_FLAGS_HELP
#define GWEN_ARGS_FLAGS_LAST
#define GWEN_ARGS_RESULT_HELP
int main(int argc, char **argv)