18 #define OFP_ENUMTYPE : int
35 #define ofp_on_ferror(S) if(setjmp((S)->ferrbuf))
42 #define ofp_any_error(S) ((S)->errtop > 0)
48 #define OFP_API __declspec(dllexport)
52 #ifndef OFP_PREFIX_DEFAULT
57 #define OFP_PREFIX_DEFAULT '/'
68 typedef unsigned int ofp_uint;
71 enum ofp_argument_type_e OFP_ENUMTYPE;
72 enum ofp_argument_priority_e OFP_ENUMTYPE;
73 enum ofp_errorcode_e OFP_ENUMTYPE;
77 typedef enum ofp_argument_type_e ofp_argument_type;
78 typedef enum ofp_argument_priority_e ofp_argument_priority;
79 typedef enum ofp_errorcode_e ofp_errorcode;
OFP_API void ofp_state_free(ofp_state *S)
Definition: state.c:85
OFP_API void ofp_memory_array_admissible(ofp_state *S, ofp_uint top, ofp_uint limit, ofp_errorcode ferr)
Definition: mem.c:61
OFP_API void ofp_argument_error_push(ofp_state *S, ofp_argument *arg, ofp_errorcode ec)
Definition: argument.c:77
OFP_API int ofp_option_enumval(ofp_argument *arg, ofp_uint count,...)
Definition: option.c:42
void(* ofp_Cfunction)(ofp_argument *arg, ofp_errorcode ec)
Pointer to C function used for argument error handling.
Definition: ofp.h:89
OFP_API void * ofp_memory_allocate(ofp_state *S, ofp_uint size)
Definition: mem.c:34
OFP_API void ofp_state_error_throw(ofp_state *S, ofp_errorcode ec)
Definition: state.c:108
OFP_API ofp_state * ofp_state_new(char **argv, int argc, ofp_argument_priority prty, ofp_uint maxuda)
Definition: state.c:34
OFP_API void ofp_parser_parse(ofp_state *S)
Definition: parser.c:93
OFP_API ofp_argument * ofp_argument_register(ofp_state *S, ofp_argument_type t, ofp_argument_priority prty, int r, ofp_Cfunction ef, char *id, ofp_uint len, char *desc)
Definition: argument.c:31
#define OFP_API
API's visibility and/or linkage.
Definition: ofp.h:48
Definition: argument.h:34
ofp_uint maxuda
maximum UDA count
Definition: state.h:25
ofp_errorcode ferr
fatal error code
Definition: state.h:45
int argc
UIA count.
Definition: state.h:28
ofp_argument_priority prty
parsing priority
Definition: state.h:26
char ** argv
UIA values.
Definition: state.h:29