Implement g_option_context_get_help (fake GLib)

This fixes the crashing issues, but the command-line tools are still
useless.
This commit is contained in:
Evan Miller
2020-08-03 19:53:58 -04:00
parent cb7b694d4b
commit fa01a6fe27
2 changed files with 39 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ typedef unsigned int guint;
typedef void * gpointer;
typedef const void * gconstpointer;
typedef uint8_t guint8;
typedef guint32 GQuark;
typedef guint (*GHashFunc)(gconstpointer);
typedef int (*GCompareFunc)(gconstpointer, gconstpointer);
@@ -41,7 +42,9 @@ typedef struct GHashTable {
} GHashTable;
typedef struct GError {
const char *message;
GQuark domain;
gint code;
gchar *message;
} GError;
typedef enum GOptionArg {