apply: make some parsing functions static again

Some parsing functions that were used in both "apply.c" and "builtin/apply.c" are now only used in the former, so they can be made static to "apply.c". Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Christian Couder committed Sep 4, 2016 at 22:18 UTC 9123d5ddfe1c701a47d034403d302d57acf3e8bb
2 files changed +3 -8
apply.c
+3 -3
@@ -27,7 +27,7 @@ static void git_apply_config(void)
27 git_config(git_default_config, NULL);
28 }
29
30 -int parse_whitespace_option(struct apply_state *state, const char *option)
30 +static int parse_whitespace_option(struct apply_state *state, const char *option)
31 {
32 if (!option) {
33 state->ws_error_action = warn_on_ws_error;
@@ -57,8 +57,8 @@ int parse_whitespace_option(struct apply_state *state, const char *option)
57 return error(_("unrecognized whitespace option '%s'"), option);
58 }
59
60 -int parse_ignorewhitespace_option(struct apply_state *state,
61 - const char *option)
60 +static int parse_ignorewhitespace_option(struct apply_state *state,
61 + const char *option)
62 {
63 if (!option || !strcmp(option, "no") ||
64 !strcmp(option, "false") || !strcmp(option, "never") ||
apply.h
-5
@@ -97,11 +97,6 @@ struct apply_state {
97 int applied_after_fixing_ws;
98 };
99
100 -extern int parse_whitespace_option(struct apply_state *state,
101 - const char *option);
102 -extern int parse_ignorewhitespace_option(struct apply_state *state,
103 - const char *option);
104 -
100 extern int apply_option_parse_exclude(const struct option *opt,
101 const char *arg, int unset);
102 extern int apply_option_parse_include(const struct option *opt,