| version 1.14, 2001/12/08 18:23:52 |
version 1.15, 2001/12/10 21:01:48 |
|
|
| |
|
| /* Context flags & special properties manipulation. */ |
/* Context flags & special properties manipulation. */ |
| |
|
| |
void cfg_set_context_flag(const CFG_CONTEXT con, int flag); |
| |
void cfg_clear_context_flag(const CFG_CONTEXT con, int flag); |
| |
int cfg_get_context_flag(const CFG_CONTEXT con, int flag); |
| void cfg_set_context_flags(const CFG_CONTEXT con, int flags); |
void cfg_set_context_flags(const CFG_CONTEXT con, int flags); |
| |
int cfg_get_context_flags(const CFG_CONTEXT con, int flags); |
| |
|
| |
#define cfg_is_context_flag(con, flag) cfg_get_context_flag(con, flag) |
| |
|
| #define cfg_clear_cmdline_stop_str(con) \ |
#define cfg_clear_cmdline_stop_str(con) \ |
| __cfg_clear_strdyn_array(&con->line_stop_str) |
__cfg_clear_strdyn_array(&con->line_stop_str) |
|
|
| #define cfg_remove_cfgfile_option_arg_seaprator(con, str) \ |
#define cfg_remove_cfgfile_option_arg_seaprator(con, str) \ |
| __cfg_remove_strdyn_array(&con->file_option_arg_separator, str) |
__cfg_remove_strdyn_array(&con->file_option_arg_separator, str) |
| |
|
| /* |
|
| void cfg_clear_cmdline_stop_str(const CFG_CONTEXT con); |
|
| void cfg_add_cmdline_stop_str(const CFG_CONTEXT con, char *str); |
|
| void cfg_clear_cfgfile_stop_prefix(const CFG_CONTEXT con); |
|
| void cfg_add_cfgfile_stop_prefix(const CFG_CONTEXT con, char *str); |
|
| |
|
| void cfg_clear_cfgfile_comment_prefix(const CFG_CONTEXT con); |
|
| void cfg_add_cfgfile_comment_prefix(const CFG_CONTEXT con, char *str); |
|
| |
|
| void cfg_clear_cmdline_short_option_prefix(const CFG_CONTEXT con); |
|
| void cfg_add_cmdline_short_option_prefix(const CFG_CONTEXT con, char *str); |
|
| |
|
| void cfg_clear_cmdline_long_option_prefix(const CFG_CONTEXT con); |
|
| void cfg_add_cmdline_long_option_prefix(const CFG_CONTEXT con, char *str); |
|
| |
|
| void cfg_clear_cmdline_multi_vals_separator(const CFG_CONTEXT con); |
|
| void cfg_add_cmdline_multi_vals_separator(const CFG_CONTEXT con, char *str); |
|
| |
|
| void cfg_clear_cmdline_option_arg_separator(const CFG_CONTEXT con); |
|
| void cfg_add_cmdline_option_arg_separator(const CFG_CONTEXT con, char *str); |
|
| |
|
| void cfg_clear_cfgfile_multi_line_postfix(const CFG_CONTEXT con); |
|
| void cfg_add_cfgfile_multi_line_postfix(const CFG_CONTEXT con, char *str); |
|
| |
|
| void cfg_clear_cfgfile_option_arg_separator(const CFG_CONTEXT con); |
|
| void cfg_add_cfgfile_option_arg_separator(const CFG_CONTEXT con, char *str); |
|
| */ |
|
| |
|
| /* Processing context options. */ |
/* Processing context options. */ |
| |
|
| int cfg_parse(const CFG_CONTEXT con); |
int cfg_parse(const CFG_CONTEXT con); |