IOR
|
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | option_help |
struct | option_module |
struct | options_all_t |
Macros | |
#define | LAST_OPTION {0, 0, 0, (option_value_type) 0, 0, NULL} |
Enumerations | |
enum | option_value_type { OPTION_FLAG, OPTION_OPTIONAL_ARGUMENT, OPTION_REQUIRED_ARGUMENT } |
Functions | |
int64_t | string_to_bytes (char *size_str) |
void | option_print_current (option_help *args) |
int | option_parse (int argc, char **argv, options_all_t *args) |
int | option_parse_str (char *val, options_all_t *opt_all) |
int | option_parse_key_value (char *key, char *value, options_all_t *opt_all) |
#define LAST_OPTION {0, 0, 0, (option_value_type) 0, 0, NULL} |
Definition at line 37 of file option.h.
Referenced by createGlobalOptions(), DUMMY_options(), HDF5_options(), IME_options(), mdtest_run(), MMAP_options(), and POSIX_options().
enum option_value_type |
int option_parse | ( | int | argc, |
char ** | argv, | ||
options_all_t * | args | ||
) |
Definition at line 376 of file option.c.
References options_all_t::module_count, options_all_t::modules, NULL, o, option_parse_token(), option_print_help(), OPTION_REQUIRED_ARGUMENT, option_module::options, and option_module::prefix.
Referenced by mdtest_run(), and ParseCommandLine().
int option_parse_key_value | ( | char * | key, |
char * | value, | ||
options_all_t * | opt_all | ||
) |
Definition at line 364 of file option.c.
References NULL, and option_parse_token().
Referenced by DecodeDirective().
int option_parse_str | ( | char * | val, |
options_all_t * | opt_all | ||
) |
Definition at line 354 of file option.c.
References NULL, and option_parse_token().
void option_print_current | ( | option_help * | args | ) |
Definition at line 225 of file option.c.
References OPTION_FLAG, OPTION_OPTIONAL_ARGUMENT, OPTION_REQUIRED_ARGUMENT, and print_current_option_section().
int64_t string_to_bytes | ( | char * | size_str | ) |
Definition at line 13 of file option.c.
Referenced by DecodeDirective(), NodeMemoryStringToBytes(), and option_parse_token().