| version 1.2, 2001/10/11 13:27:34 |
version 1.3, 2001/10/16 18:22:17 |
| Line 74 void cfg_add_cfgfile_comment_str( |
|
| Line 74 void cfg_add_cfgfile_comment_str( |
|
| con->comment_str = strdyn_add(con->comment_str, str); |
con->comment_str = strdyn_add(con->comment_str, 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_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_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); |
| |
} |
| |
|
| |
|