attr.h: drop extern from function declaration
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
Jun 30, 2018 at 11:20 UTC
c30f2e20a7f3a8d565f7f1d12db622e8799cb082
1 file changed
+12
-12
attr.h
+12
-12
@@ -42,31 +42,31 @@ struct attr_check {
42
struct attr_stack *stack;
43
};
44
45
-extern struct attr_check *attr_check_alloc(void);
46
-extern struct attr_check *attr_check_initl(const char *, ...);
47
-extern struct attr_check *attr_check_dup(const struct attr_check *check);
45
+struct attr_check *attr_check_alloc(void);
46
+struct attr_check *attr_check_initl(const char *, ...);
47
+struct attr_check *attr_check_dup(const struct attr_check *check);
48
49
-extern struct attr_check_item *attr_check_append(struct attr_check *check,
50
- const struct git_attr *attr);
49
+struct attr_check_item *attr_check_append(struct attr_check *check,
50
+ const struct git_attr *attr);
51
52
-extern void attr_check_reset(struct attr_check *check);
53
-extern void attr_check_clear(struct attr_check *check);
54
-extern void attr_check_free(struct attr_check *check);
52
+void attr_check_reset(struct attr_check *check);
53
+void attr_check_clear(struct attr_check *check);
54
+void attr_check_free(struct attr_check *check);
55
56
/*
57
* Return the name of the attribute represented by the argument. The
58
* return value is a pointer to a null-delimited string that is part
59
* of the internal data structure; it should not be modified or freed.
60
*/
61
-extern const char *git_attr_name(const struct git_attr *);
61
+const char *git_attr_name(const struct git_attr *);
62
63
-extern int git_check_attr(const char *path, struct attr_check *check);
63
+int git_check_attr(const char *path, struct attr_check *check);
64
65
/*
66
* Retrieve all attributes that apply to the specified path.
67
* check holds the attributes and their values.
68
*/
69
-extern void git_all_attrs(const char *path, struct attr_check *check);
69
+void git_all_attrs(const char *path, struct attr_check *check);
70
71
enum git_attr_direction {
72
GIT_ATTR_CHECKIN,
@@ -76,6 +76,6 @@ enum git_attr_direction {
76
void git_attr_set_direction(enum git_attr_direction new_direction,
77
struct index_state *istate);
78
79
-extern void attr_start(void);
79
+void attr_start(void);
80
81
#endif /* ATTR_H */