XipZ
Mini packer ▶►▸ for small programs.
|
Go to the documentation of this file.
22 #ifndef CMDLINE_PARSER_PACKAGE
24 #define CMDLINE_PARSER_PACKAGE "XipZ"
27 #ifndef CMDLINE_PARSER_PACKAGE_NAME
29 #define CMDLINE_PARSER_PACKAGE_NAME "XipZ"
32 #ifndef CMDLINE_PARSER_VERSION
34 #define CMDLINE_PARSER_VERSION "0.3.1"
37 enum enum_algorithm { algorithm__NULL = -1, algorithm_arg_xipz = 0, algorithm_arg_qadz };
105 int override,
int initialize,
int check_required);
182 const char *prog_name);
unsigned int help_given
Whether help was given.
unsigned int jump_given
Whether jump was given.
const char * gengetopt_args_info_purpose
the purpose string of the program
struct cmdline_parser_params * cmdline_parser_params_create(void)
int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info)
void cmdline_parser_init(struct gengetopt_args_info *args_info)
unsigned int algorithm_given
Whether algorithm was given.
int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info)
void cmdline_parser_free(struct gengetopt_args_info *args_info)
void cmdline_parser_print_help(void)
int cmdline_parser(int argc, char **argv, struct gengetopt_args_info *args_info)
void cmdline_parser_print_version(void)
unsigned int version_given
Whether version was given.
enum enum_algorithm algorithm_arg
crunching algorithm to use (default='xipz').
char * jump_orig
address to jump to (-1 = load address) original value given at command line.
const char * jump_help
address to jump to (-1 = load address) help description.
const char * gengetopt_args_info_help[]
all the lines making the help output
int cmdline_parser_ext(int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params)
const char * algorithm_help
crunching algorithm to use help description.
const char * raw_help
output raw crunched data without header help description.
void cmdline_parser_params_init(struct cmdline_parser_params *params)
int check_ambiguity
whether to check for options already specified in the option structure gengetopt_args_info (default 0...
char ** inputs
unnamed options (options without names)
unsigned int raw_given
Whether raw was given.
const char * version_help
Print version and exit help description.
int print_errors
whether getopt_long should print an error message for a bad option (default 1)
unsigned inputs_num
unnamed options number
int cmdline_parser2(int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required)
int jump_arg
address to jump to (-1 = load address) (default='-1').
int cmdline_parser_required(struct gengetopt_args_info *args_info, const char *prog_name)
char * algorithm_orig
crunching algorithm to use original value given at command line.
Where the command line options are stored.
The additional parameters to pass to parser functions.
const char * help_help
Print help and exit help description.
int initialize
whether to initialize the option structure gengetopt_args_info (default 1)
int check_required
whether to check that all required options were provided (default 1)
const char * gengetopt_args_info_usage
the usage string of the program
int raw_flag
output raw crunched data without header (default=off).
const char * gengetopt_args_info_description
the description string of the program
const char * cmdline_parser_algorithm_values[]
Possible values for algorithm.