Rizin
unix-like reverse engineering framework and cli tools
|
Argument parsing. More...
Go to the source code of this file.
Functions | |
static void | parse_memlimit (const char *name, const char *name_percentage, char *str, bool set_compress, bool set_decompress) |
Parse and set the memory usage limit for compression and/or decompression. More... | |
static void | parse_block_list (char *str) |
static void | parse_real (args_info *args, int argc, char **argv) |
static void | parse_environment (args_info *args, char *argv0, const char *varname) |
void | args_parse (args_info *args, int argc, char **argv) |
void | args_free (void) |
Variables | |
bool | opt_stdout = false |
bool | opt_force = false |
bool | opt_keep_original = false |
bool | opt_robot = false |
bool | opt_ignore_check = false |
const char | stdin_filename [] = "(stdin)" |
void args_free | ( | void | ) |
Definition at line 592 of file args.c.
References _, args, argv, coder_set_compression_settings(), FORMAT_AUTO, FORMAT_LZMA, FORMAT_RAW, FORMAT_XZ, int, message_fatal(), MODE_COMPRESS, MODE_DECOMPRESS, MODE_TEST, name, NULL, opt_format, opt_keep_original, opt_mode, opt_stdout, optind, parse_environment(), and parse_real().
Referenced by main().
|
static |
Definition at line 59 of file args.c.
References _, assert(), count, free(), i, message_fatal(), NULL, opt_block_list, p, SIZE_MAX, cmd_descs_generate::str, str_to_uint64(), UINT64_MAX, and xmalloc.
Referenced by parse_real().
|
static |
Parse and set the memory usage limit for compression and/or decompression.
Definition at line 34 of file args.c.
References hardware_memlimit_set(), len, cmd_descs_generate::str, str_to_uint64(), UINT64_MAX, and value.
Referenced by parse_real().
Definition at line 120 of file args.c.
References _, args, argv, ARRAY_SIZE, c, check, coder_add_filter(), coder_set_check(), coder_set_extreme(), coder_set_preset(), E_ERROR, insn_type_descr_t::format, FORMAT_AUTO, FORMAT_LZMA, FORMAT_RAW, FORMAT_XZ, getopt_long(), hardware_memlimit_show(), hardware_threads_set(), i, io_no_sparse(), LZMA_CHECK_CRC32, LZMA_CHECK_CRC64, LZMA_CHECK_NONE, LZMA_CHECK_SHA256, LZMA_FILTER_ARM, LZMA_FILTER_ARMTHUMB, LZMA_FILTER_DELTA, LZMA_FILTER_IA64, LZMA_FILTER_LZMA1, LZMA_FILTER_LZMA2, LZMA_FILTER_POWERPC, LZMA_FILTER_SPARC, LZMA_FILTER_X86, LZMA_VLI_MAX, message_fatal(), message_help(), message_try_help(), message_verbosity_decrease(), message_verbosity_increase(), message_version(), MODE_COMPRESS, MODE_DECOMPRESS, MODE_LIST, MODE_TEST, no_argument, NULL, opt_auto_adjust, opt_block_size, opt_flush_timeout, opt_force, opt_format, opt_ignore_check, opt_keep_original, opt_mode, opt_robot, opt_single_stream, opt_stdout, optarg, optional_argument, options_bcj(), options_delta(), options_lzma(), parse_block_list(), parse_memlimit(), required_argument, set_exit_no_warn(), stdin_filename, cmd_descs_generate::str, str_to_uint64(), suffix_set(), tuklib_exit, types, and UINT64_MAX.
Referenced by args_parse(), and parse_environment().
Definition at line 22 of file args.c.
Referenced by io_open_dest_real(), io_open_src_real(), io_unlink(), list_file(), and parse_real().
Definition at line 25 of file args.c.
Referenced by parse_real().
Definition at line 23 of file args.c.
Referenced by args_parse(), io_close_src(), and parse_real().
Definition at line 24 of file args.c.
Referenced by get_check_names(), hardware_memlimit_show(), list_file(), list_totals(), main(), message_version(), parse_real(), and print_filename().
Definition at line 21 of file args.c.
Referenced by args_parse(), io_open_dest_real(), io_open_src_real(), list_file(), main(), and parse_real().
const char stdin_filename[] = "(stdin)" |
Definition at line 29 of file args.c.
Referenced by io_open_src_real(), list_file(), main(), parse_real(), and print_filename().