@@ -13,19 +13,19 @@ struct strbuf;
1313/*
1414 * Return a statically allocated path.
1515 */
16- extern const char * mkpath (const char * fmt , ...)
16+ const char * mkpath (const char * fmt , ...)
1717 __attribute__((format (printf , 1 , 2 )));
1818
1919/*
2020 * Return a path.
2121 */
22- extern char * mkpathdup (const char * fmt , ...)
22+ char * mkpathdup (const char * fmt , ...)
2323 __attribute__((format (printf , 1 , 2 )));
2424
2525/*
2626 * Construct a path and place the result in the provided buffer `buf`.
2727 */
28- extern char * mksnpath (char * buf , size_t n , const char * fmt , ...)
28+ char * mksnpath (char * buf , size_t n , const char * fmt , ...)
2929 __attribute__((format (printf , 3 , 4 )));
3030
3131/*
@@ -37,7 +37,7 @@ extern char *mksnpath(char *buf, size_t n, const char *fmt, ...)
3737 * Constructs a path into the common git directory of repository `repo` and
3838 * append it in the provided buffer `sb`.
3939 */
40- extern void strbuf_git_common_path (struct strbuf * sb ,
40+ void strbuf_git_common_path (struct strbuf * sb ,
4141 const struct repository * repo ,
4242 const char * fmt , ...)
4343 __attribute__((format (printf , 3 , 4 )));
@@ -46,7 +46,7 @@ extern void strbuf_git_common_path(struct strbuf *sb,
4646 * Return a statically allocated path into the main repository's
4747 * (the_repository) common git directory.
4848 */
49- extern const char * git_common_path (const char * fmt , ...)
49+ const char * git_common_path (const char * fmt , ...)
5050 __attribute__((format (printf , 1 , 2 )));
5151
5252
@@ -66,15 +66,15 @@ extern const char *git_common_path(const char *fmt, ...)
6666/*
6767 * Return a path into the git directory of repository `repo`.
6868 */
69- extern char * repo_git_path (const struct repository * repo ,
69+ char * repo_git_path (const struct repository * repo ,
7070 const char * fmt , ...)
7171 __attribute__((format (printf , 2 , 3 )));
7272
7373/*
7474 * Construct a path into the git directory of repository `repo` and append it
7575 * to the provided buffer `sb`.
7676 */
77- extern void strbuf_repo_git_path (struct strbuf * sb ,
77+ void strbuf_repo_git_path (struct strbuf * sb ,
7878 const struct repository * repo ,
7979 const char * fmt , ...)
8080 __attribute__((format (printf , 3 , 4 )));
@@ -83,36 +83,36 @@ extern void strbuf_repo_git_path(struct strbuf *sb,
8383 * Return a statically allocated path into the main repository's
8484 * (the_repository) git directory.
8585 */
86- extern const char * git_path (const char * fmt , ...)
86+ const char * git_path (const char * fmt , ...)
8787 __attribute__((format (printf , 1 , 2 )));
8888
8989/*
9090 * Return a path into the main repository's (the_repository) git directory.
9191 */
92- extern char * git_pathdup (const char * fmt , ...)
92+ char * git_pathdup (const char * fmt , ...)
9393 __attribute__((format (printf , 1 , 2 )));
9494
9595/*
9696 * Construct a path into the main repository's (the_repository) git directory
9797 * and place it in the provided buffer `buf`, the contents of the buffer will
9898 * be overridden.
9999 */
100- extern char * git_path_buf (struct strbuf * buf , const char * fmt , ...)
100+ char * git_path_buf (struct strbuf * buf , const char * fmt , ...)
101101 __attribute__((format (printf , 2 , 3 )));
102102
103103/*
104104 * Construct a path into the main repository's (the_repository) git directory
105105 * and append it to the provided buffer `sb`.
106106 */
107- extern void strbuf_git_path (struct strbuf * sb , const char * fmt , ...)
107+ void strbuf_git_path (struct strbuf * sb , const char * fmt , ...)
108108 __attribute__((format (printf , 2 , 3 )));
109109
110110/*
111111 * Return a path into the worktree of repository `repo`.
112112 *
113113 * If the repository doesn't have a worktree NULL is returned.
114114 */
115- extern char * repo_worktree_path (const struct repository * repo ,
115+ char * repo_worktree_path (const struct repository * repo ,
116116 const char * fmt , ...)
117117 __attribute__((format (printf , 2 , 3 )));
118118
@@ -122,7 +122,7 @@ extern char *repo_worktree_path(const struct repository *repo,
122122 *
123123 * If the repository doesn't have a worktree nothing will be appended to `sb`.
124124 */
125- extern void strbuf_repo_worktree_path (struct strbuf * sb ,
125+ void strbuf_repo_worktree_path (struct strbuf * sb ,
126126 const struct repository * repo ,
127127 const char * fmt , ...)
128128 __attribute__((format (printf , 3 , 4 )));
@@ -131,15 +131,15 @@ extern void strbuf_repo_worktree_path(struct strbuf *sb,
131131 * Return a path into a submodule's git directory located at `path`. `path`
132132 * must only reference a submodule of the main repository (the_repository).
133133 */
134- extern char * git_pathdup_submodule (const char * path , const char * fmt , ...)
134+ char * git_pathdup_submodule (const char * path , const char * fmt , ...)
135135 __attribute__((format (printf , 2 , 3 )));
136136
137137/*
138138 * Construct a path into a submodule's git directory located at `path` and
139139 * append it to the provided buffer `sb`. `path` must only reference a
140140 * submodule of the main repository (the_repository).
141141 */
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 ,
143143 const char * fmt , ...)
144144 __attribute__((format (printf , 3 , 4 )));
145145
0 commit comments