29#include <mstdlib/base/m_defs.h>
30#include <mstdlib/base/m_types.h>
146typedef M_bool (*
M_getopt_integer_cb)(
char short_opt,
const char *long_opt, M_int64 *integer,
void *thunk);
154typedef M_bool (*
M_getopt_string_cb)(
char short_opt,
const char *long_opt,
const char *string,
void *thunk);
Definition: m_decimal.h:78
void M_getopt_destroy(M_getopt_t *g)
struct M_getopt M_getopt_t
Definition: m_getopt.h:123
M_getopt_error_t
Definition: m_getopt.h:129
M_bool M_getopt_addboolean(M_getopt_t *g, char short_opt, const char *long_opt, M_bool val_required, const char *description, M_getopt_boolean_cb cb)
M_bool M_getopt_addstring(M_getopt_t *g, char short_opt, const char *long_opt, M_bool val_required, const char *description, M_getopt_string_cb cb)
M_bool(* M_getopt_string_cb)(char short_opt, const char *long_opt, const char *string, void *thunk)
Definition: m_getopt.h:154
M_bool(* M_getopt_decimal_cb)(char short_opt, const char *long_opt, M_decimal_t *decimal, void *thunk)
Definition: m_getopt.h:150
M_getopt_error_t M_getopt_parse(const M_getopt_t *g, const char *const *argv, int argc, const char **opt_fail, void *thunk)
M_bool M_getopt_adddecimal(M_getopt_t *g, char short_opt, const char *long_opt, M_bool val_required, const char *description, M_getopt_decimal_cb cb)
M_bool(* M_getopt_nonopt_cb)(size_t idx, const char *option, void *thunk)
Definition: m_getopt.h:142
M_bool(* M_getopt_integer_cb)(char short_opt, const char *long_opt, M_int64 *integer, void *thunk)
Definition: m_getopt.h:146
char * M_getopt_help(const M_getopt_t *g)
M_bool M_getopt_addinteger(M_getopt_t *g, char short_opt, const char *long_opt, M_bool val_required, const char *description, M_getopt_integer_cb cb)
M_getopt_t * M_getopt_create(M_getopt_nonopt_cb cb)
M_bool(* M_getopt_boolean_cb)(char short_opt, const char *long_opt, M_bool boolean, void *thunk)
Definition: m_getopt.h:158
@ M_GETOPT_ERROR_INVALIDDATATYPE
Definition: m_getopt.h:132
@ M_GETOPT_ERROR_MISSINGVALUE
Definition: m_getopt.h:134
@ M_GETOPT_ERROR_INVALIDOPT
Definition: m_getopt.h:131
@ M_GETOPT_ERROR_INVALIDORDER
Definition: m_getopt.h:133
@ M_GETOPT_ERROR_NONOPTION
Definition: m_getopt.h:135
@ M_GETOPT_ERROR_SUCCESS
Definition: m_getopt.h:130