| version 1.7, 2001/12/08 18:23:52 |
version 1.8, 2001/12/09 15:07:37 |
| Line 36 int __cfg_remove_strdyn_array(char ***wh |
|
| Line 36 int __cfg_remove_strdyn_array(char ***wh |
|
| return *where == NULL ? 0 : 1; |
return *where == NULL ? 0 : 1; |
| } |
} |
| |
|
| /* |
|
| void cfg_clear_cmdline_stop_str(const CFG_CONTEXT con) |
|
| { |
|
| if (con->line_stop_str != NULL) |
|
| strdyn_free(con->line_stop_str); |
|
| |
|
| con->line_stop_str = NULL; |
|
| } |
|
| |
|
| void cfg_add_cmdline_stop_str(const CFG_CONTEXT con, char *str) |
|
| { |
|
| if (con->line_stop_str == NULL) |
|
| con->line_stop_str = strdyn_create(); |
|
| |
|
| con->line_stop_str = strdyn_add(con->line_stop_str, str); |
|
| } |
|
| |
|
| void cfg_clear_cfgfile_stop_prefix(const CFG_CONTEXT con) |
|
| { |
|
| if (con->file_stop_prefix != NULL) |
|
| strdyn_free(con->file_stop_prefix); |
|
| |
|
| con->file_stop_prefix = NULL; |
|
| } |
|
| |
|
| void cfg_add_cfgfile_stop_prefix(const CFG_CONTEXT con, char *str) |
|
| { |
|
| if (con->file_stop_prefix == NULL) |
|
| con->file_stop_prefix = strdyn_create(); |
|
| |
|
| con->file_stop_prefix = strdyn_add(con->file_stop_prefix, str); |
|
| } |
|
| |
|
| void cfg_clear_cfgfile_comment_prefix(const CFG_CONTEXT con) |
|
| { |
|
| if (con->comment_prefix != NULL) |
|
| strdyn_free(con->comment_prefix); |
|
| |
|
| con->comment_prefix = NULL; |
|
| } |
|
| |
|
| void cfg_add_cfgfile_comment_prefix(const CFG_CONTEXT con, char *str) |
|
| { |
|
| if (con->comment_prefix == NULL) |
|
| con->comment_prefix = strdyn_create(); |
|
| |
|
| con->comment_prefix = strdyn_add(con->comment_prefix, str); |
|
| } |
|
| |
|
| void cfg_clear_cmdline_short_option_prefix(const CFG_CONTEXT con) |
|
| { |
|
| if (con->short_option_prefix != NULL) |
|
| strdyn_free(con->short_option_prefix); |
|
| |
|
| con->short_option_prefix = NULL; |
|
| } |
|
| |
|
| void cfg_add_cmdline_short_option_prefix(const CFG_CONTEXT con, char *str) |
|
| { |
|
| if (con->short_option_prefix == NULL) |
|
| con->short_option_prefix = strdyn_create(); |
|
| |
|
| con->short_option_prefix = strdyn_add(con->short_option_prefix, str); |
|
| } |
|
| |
|
| void cfg_clear_cmdline_long_option_prefix(const CFG_CONTEXT con) |
|
| { |
|
| if (con->long_option_prefix != NULL) |
|
| strdyn_free(con->long_option_prefix); |
|
| |
|
| con->long_option_prefix = NULL; |
|
| } |
|
| |
|
| void cfg_add_cmdline_long_option_prefix(const CFG_CONTEXT con, char *str) |
|
| { |
|
| if (con->long_option_prefix == NULL) |
|
| con->long_option_prefix = strdyn_create(); |
|
| |
|
| con->long_option_prefix = strdyn_add(con->long_option_prefix, str); |
|
| } |
|
| |
|
| void cfg_clear_cmdline_multi_vals_separator(const CFG_CONTEXT con) |
|
| { |
|
| if (con->multi_vals_separator != NULL) |
|
| strdyn_free(con->multi_vals_separator); |
|
| |
|
| con->multi_vals_separator = NULL; |
|
| } |
|
| |
|
| void cfg_add_cmdline_multi_vals_separator(const CFG_CONTEXT con, char *str) |
|
| { |
|
| if (con->multi_vals_separator == NULL) |
|
| con->multi_vals_separator = strdyn_create(); |
|
| |
|
| con->multi_vals_separator = strdyn_add(con->multi_vals_separator, str); |
|
| } |
|
| |
|
| void cfg_clear_cmdline_option_arg_separator(const CFG_CONTEXT con) |
|
| { |
|
| if (con->line_option_arg_separator != NULL) |
|
| strdyn_free(con->line_option_arg_separator); |
|
| |
|
| con->line_option_arg_separator = NULL; |
|
| } |
|
| |
|
| void cfg_add_cmdline_option_arg_separator(const CFG_CONTEXT con, char *str) |
|
| { |
|
| if (con->line_option_arg_separator == NULL) |
|
| con->line_option_arg_separator = strdyn_create(); |
|
| |
|
| con->line_option_arg_separator = |
|
| strdyn_add(con->line_option_arg_separator, str); |
|
| } |
|
| |
|
| void cfg_clear_cfgfile_multi_line_postfix(const CFG_CONTEXT con) |
|
| { |
|
| if (con->multi_line_postfix != NULL) |
|
| strdyn_free(con->multi_line_postfix); |
|
| |
|
| con->multi_line_postfix = NULL; |
|
| } |
|
| |
|
| void cfg_add_cfgfile_multi_line_postfix(const CFG_CONTEXT con, char *str) |
|
| { |
|
| if (con->multi_line_postfix == NULL) |
|
| con->multi_line_postfix = strdyn_create(); |
|
| |
|
| con->multi_line_postfix = |
|
| strdyn_add(con->multi_line_postfix, str); |
|
| } |
|
| |
|
| void cfg_clear_cfgfile_option_arg_separator(const CFG_CONTEXT con) |
|
| { |
|
| if (con->file_option_arg_separator != NULL) |
|
| strdyn_free(con->file_option_arg_separator); |
|
| |
|
| con->file_option_arg_separator = NULL; |
|
| } |
|
| |
|
| void cfg_add_cfgfile_option_arg_separator(const CFG_CONTEXT con, char *str) |
|
| { |
|
| if (con->file_option_arg_separator == NULL) |
|
| con->file_option_arg_separator = strdyn_create(); |
|
| |
|
| con->file_option_arg_separator = |
|
| strdyn_add(con->file_option_arg_separator, str); |
|
| } |
|
| */ |
|
| |
|