pathspec.h: clean up "extern" in function declarations
"extern" on functions is not required and the trend has been removing it from header files. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nguyễn Thái Ngọc Duy committed
Nov 18, 2018 at 17:47 UTC
93e23798effba81df218157d97995771adc89668
1 file changed
+12
-12
pathspec.h
+12
-12
@@ -80,13 +80,13 @@ struct pathspec {
80
* Any arguments used are copied. It is safe for the caller to modify
81
* or free 'prefix' and 'args' after calling this function.
82
*/
83
-extern void parse_pathspec(struct pathspec *pathspec,
84
- unsigned magic_mask,
85
- unsigned flags,
86
- const char *prefix,
87
- const char **args);
88
-extern void copy_pathspec(struct pathspec *dst, const struct pathspec *src);
89
-extern void clear_pathspec(struct pathspec *);
83
+void parse_pathspec(struct pathspec *pathspec,
84
+ unsigned magic_mask,
85
+ unsigned flags,
86
+ const char *prefix,
87
+ const char **args);
88
+void copy_pathspec(struct pathspec *dst, const struct pathspec *src);
89
+void clear_pathspec(struct pathspec *);
90
91
static inline int ps_strncmp(const struct pathspec_item *item,
92
const char *s1, const char *s2, size_t n)
@@ -106,10 +106,10 @@ static inline int ps_strcmp(const struct pathspec_item *item,
106
return strcmp(s1, s2);
107
}
108
109
-extern void add_pathspec_matches_against_index(const struct pathspec *pathspec,
110
- const struct index_state *istate,
111
- char *seen);
112
-extern char *find_pathspecs_matching_against_index(const struct pathspec *pathspec,
113
- const struct index_state *istate);
109
+void add_pathspec_matches_against_index(const struct pathspec *pathspec,
110
+ const struct index_state *istate,
111
+ char *seen);
112
+char *find_pathspecs_matching_against_index(const struct pathspec *pathspec,
113
+ const struct index_state *istate);
114
115
#endif /* PATHSPEC_H */