MOS Source Code
|
Go to the source code of this file.
Typedefs | |
typedef const char **(* | cmdline_insert_fn_t) (const char **result, size_t result_capacity, char *cmdline, size_t *result_count) |
Functions | |
static const char ** | cmdline_static_array_insert (const char **result, size_t result_capacity, char *cmdline, size_t *result_count) |
static const char ** | cmdline_dynamic_array_insert (const char **argv, size_t result_capacity, char *cmdline, size_t *result_count) |
static bool | cmdline_parse_generic (char *start, size_t length, size_t cmdline_max, size_t *out_count, const char ***argv_ptr, cmdline_insert_fn_t insert) |
bool | cmdline_parse_inplace (char *inbuf, size_t length, size_t cmdline_max, size_t *out_count, const char **out_cmdlines) |
const char ** | cmdline_parse (const char **inargv, char *inbuf, size_t length, size_t *out_count) |
void | string_unquote (char *str) |
|
static |
Definition at line 10 of file cmdline.c.
Referenced by cmdline_parse_inplace().
|
static |
Definition at line 20 of file cmdline.c.
Referenced by cmdline_parse().
|
static |
Definition at line 29 of file cmdline.c.
Referenced by cmdline_parse(), and cmdline_parse_inplace().
bool cmdline_parse_inplace | ( | char * | inbuf, |
size_t | length, | ||
size_t | cmdline_max, | ||
size_t * | out_count, | ||
const char ** | out_cmdlines ) |
Definition at line 93 of file cmdline.c.
Referenced by __mos_test_wrapped_test_multi_args_with_multiple_options(), __mos_test_wrapped_test_one_arg_with_an_option(), __mos_test_wrapped_test_one_arg_with_multiple_options(), __mos_test_wrapped_test_quotation_with_escaped_quotation_marks(), __mos_test_wrapped_test_quoted_args(), __mos_test_wrapped_test_quoted_args_with_spaces(), __mos_test_wrapped_test_quoted_args_with_spaces_and_commas(), __mos_test_wrapped_test_quoted_args_with_spaces_and_commas_and_equals(), __mos_test_wrapped_test_simple_cmdline(), and mos_cmdline_init().
const char ** cmdline_parse | ( | const char ** | inargv, |
char * | inbuf, | ||
size_t | length, | ||
size_t * | out_count ) |
Definition at line 98 of file cmdline.c.
Referenced by MOS_SETUP().
void string_unquote | ( | char * | str | ) |
Definition at line 107 of file cmdline.c.
Referenced by MOS_SETUP().