1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Factor parse_set_common out of parse_set

This commit is contained in:
Miciah Dashiel Butler Masters 2007-08-29 13:30:40 +00:00 committed by Miciah Dashiel Butler Masters
parent 8a8be53452
commit 7f042a49d7

View File

@ -87,8 +87,8 @@ skip_white(unsigned char *start, int *line)
* will only possibly set OPT_WATERMARK flag to the option (if enabled). */
static enum parse_error
parse_set(struct option *opt_tree, unsigned char **file, int *line,
struct string *mirror, int is_system_conf)
parse_set_common(struct option *opt_tree, unsigned char **file, int *line,
struct string *mirror, int is_system_conf)
{
unsigned char *orig_pos = *file;
unsigned char *optname;
@ -158,6 +158,14 @@ parse_set(struct option *opt_tree, unsigned char **file, int *line,
return ERROR_NONE;
}
static enum parse_error
parse_set(struct option *opt_tree, unsigned char **file, int *line,
struct string *mirror, int is_system_conf)
{
return parse_set_common(opt_tree, file, line, mirror, is_system_conf);
}
static enum parse_error
parse_unset(struct option *opt_tree, unsigned char **file, int *line,
struct string *mirror, int is_system_conf)