13
/*
14
* Return a statically allocated path.
15
*/
16
-extern const char *mkpath(const char *fmt, ...)
16
+const char *mkpath(const char *fmt, ...)
17
__attribute__((format (printf, 1, 2)));
18
19
/*
20
* Return a path.
21
*/
22
-extern char *mkpathdup(const char *fmt, ...)
22
+char *mkpathdup(const char *fmt, ...)
23
__attribute__((format (printf, 1, 2)));
24
25
/*
26
* Construct a path and place the result in the provided buffer `buf`.
27
*/
28
-extern char *mksnpath(char *buf, size_t n, const char *fmt, ...)
28
+char *mksnpath(char *buf, size_t n, const char *fmt, ...)
29
__attribute__((format (printf, 3, 4)));
30
31
/*
37
* Constructs a path into the common git directory of repository `repo` and
38
* append it in the provided buffer `sb`.
39
*/
40
-extern void strbuf_git_common_path(struct strbuf *sb,
40
+void strbuf_git_common_path(struct strbuf *sb,
41
const struct repository *repo,
42
const char *fmt, ...)
43
__attribute__((format (printf, 3, 4)));
46
* Return a statically allocated path into the main repository's
47
* (the_repository) common git directory.
48
*/
49
-extern const char *git_common_path(const char *fmt, ...)
49
+const char *git_common_path(const char *fmt, ...)
50
__attribute__((format (printf, 1, 2)));
51
52
66
/*
67
* Return a path into the git directory of repository `repo`.
68
*/
69
-extern char *repo_git_path(const struct repository *repo,
69
+char *repo_git_path(const struct repository *repo,
70
const char *fmt, ...)
71
__attribute__((format (printf, 2, 3)));
72
74
* Construct a path into the git directory of repository `repo` and append it
75
* to the provided buffer `sb`.
76
*/
77
-extern void strbuf_repo_git_path(struct strbuf *sb,
77
+void strbuf_repo_git_path(struct strbuf *sb,
78
const struct repository *repo,
79
const char *fmt, ...)
80
__attribute__((format (printf, 3, 4)));
83
* Return a statically allocated path into the main repository's
84
* (the_repository) git directory.
85
*/
86
-extern const char *git_path(const char *fmt, ...)
86
+const char *git_path(const char *fmt, ...)
87
__attribute__((format (printf, 1, 2)));
88
89
/*
90
* Return a path into the main repository's (the_repository) git directory.
91
*/
92
-extern char *git_pathdup(const char *fmt, ...)
92
+char *git_pathdup(const char *fmt, ...)
93
__attribute__((format (printf, 1, 2)));
94
95
/*
97
* and place it in the provided buffer `buf`, the contents of the buffer will
98
* be overridden.
99
*/
100
-extern char *git_path_buf(struct strbuf *buf, const char *fmt, ...)
100
+char *git_path_buf(struct strbuf *buf, const char *fmt, ...)
101
__attribute__((format (printf, 2, 3)));
102
103
/*
104
* Construct a path into the main repository's (the_repository) git directory
105
* and append it to the provided buffer `sb`.
106
*/
107
-extern void strbuf_git_path(struct strbuf *sb, const char *fmt, ...)
107
+void strbuf_git_path(struct strbuf *sb, const char *fmt, ...)
108
__attribute__((format (printf, 2, 3)));
109
110
/*
112
*
113
* If the repository doesn't have a worktree NULL is returned.
114
*/
115
-extern char *repo_worktree_path(const struct repository *repo,
115
+char *repo_worktree_path(const struct repository *repo,
116
const char *fmt, ...)
117
__attribute__((format (printf, 2, 3)));
118
122
*
123
* If the repository doesn't have a worktree nothing will be appended to `sb`.
124
*/
125
-extern void strbuf_repo_worktree_path(struct strbuf *sb,
125
+void strbuf_repo_worktree_path(struct strbuf *sb,
126
const struct repository *repo,
127
const char *fmt, ...)
128
__attribute__((format (printf, 3, 4)));
131
* Return a path into a submodule's git directory located at `path`. `path`
132
* must only reference a submodule of the main repository (the_repository).
133
*/
134
-extern char *git_pathdup_submodule(const char *path, const char *fmt, ...)
134
+char *git_pathdup_submodule(const char *path, const char *fmt, ...)
135
__attribute__((format (printf, 2, 3)));
136
137
/*
139
* append it to the provided buffer `sb`. `path` must only reference a
140
* submodule of the main repository (the_repository).
141
*/
142
-extern int strbuf_git_path_submodule(struct strbuf *sb, const char *path,
142
+int strbuf_git_path_submodule(struct strbuf *sb, const char *path,
143
const char *fmt, ...)
144
__attribute__((format (printf, 3, 4)));
145