git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 02/12] attr.h: drop extern from function declaration

From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date
Jun 30, 2018, 09:20 UTC
Message-ID
<20180630092031.29910-3-pclouds@gmail.com>
In-Reply-To
<20180630092031.29910-1-pclouds@gmail.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 attr.h | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/attr.h b/attr.h
index 442d464db6..46340010bb 100644
--- a/attr.h
+++ b/attr.h
@@ -42,31 +42,31 @@ struct attr_check {
 	struct attr_stack *stack;
 };
 
-extern struct attr_check *attr_check_alloc(void);
-extern struct attr_check *attr_check_initl(const char *, ...);
-extern struct attr_check *attr_check_dup(const struct attr_check *check);
+struct attr_check *attr_check_alloc(void);
+struct attr_check *attr_check_initl(const char *, ...);
+struct attr_check *attr_check_dup(const struct attr_check *check);
 
-extern struct attr_check_item *attr_check_append(struct attr_check *check,
-						 const struct git_attr *attr);
+struct attr_check_item *attr_check_append(struct attr_check *check,
+					  const struct git_attr *attr);
 
-extern void attr_check_reset(struct attr_check *check);
-extern void attr_check_clear(struct attr_check *check);
-extern void attr_check_free(struct attr_check *check);
+void attr_check_reset(struct attr_check *check);
+void attr_check_clear(struct attr_check *check);
+void attr_check_free(struct attr_check *check);
 
 /*
  * Return the name of the attribute represented by the argument.  The
  * return value is a pointer to a null-delimited string that is part
  * of the internal data structure; it should not be modified or freed.
  */
-extern const char *git_attr_name(const struct git_attr *);
+const char *git_attr_name(const struct git_attr *);
 
-extern int git_check_attr(const char *path, struct attr_check *check);
+int git_check_attr(const char *path, struct attr_check *check);
 
 /*
  * Retrieve all attributes that apply to the specified path.
  * check holds the attributes and their values.
  */
-extern void git_all_attrs(const char *path, struct attr_check *check);
+void git_all_attrs(const char *path, struct attr_check *check);
 
 enum git_attr_direction {
 	GIT_ATTR_CHECKIN,
@@ -76,6 +76,6 @@ enum git_attr_direction {
 void git_attr_set_direction(enum git_attr_direction new_direction,
 			    struct index_state *istate);
 
-extern void attr_start(void);
+void attr_start(void);
 
 #endif /* ATTR_H */
-- 
2.18.0.rc2.476.g39500d3211
Previous: Nguyễn Thái Ngọc DuyNext: Nguyễn Thái Ngọc Duy
Message 2 of 17 in “Kill the_index part2, header file cleanup”
  1. 00/12 Kill the_index part2, header file cleanupNguyễn Thái Ngọc Duy, Jun 30, 2018
  2. 02/12 attr.h: drop extern from function declarationNguyễn Thái Ngọc Duy, Jun 30, 2018
  3. 01/12 apply.h: drop extern on func declarationNguyễn Thái Ngọc Duy, Jun 30, 2018
  4. 03/12 blame.h: drop extern on func declarationNguyễn Thái Ngọc Duy, Jun 30, 2018
  5. 05/12 convert.h: drop 'extern' from function declarationNguyễn Thái Ngọc Duy, Jun 30, 2018
  6. 06/12 diffcore.h: drop extern from function declarationNguyễn Thái Ngọc Duy, Jun 30, 2018
  7. 04/12 cache-tree.h: drop extern from function declarationNguyễn Thái Ngọc Duy, Jun 30, 2018
  8. 07/12 diff.h: remove extern from function declarationNguyễn Thái Ngọc Duy, Jun 30, 2018
  9. 10/12 repository.h: drop extern from function declarationNguyễn Thái Ngọc Duy, Jun 30, 2018
  10. 08/12 line-range.h: drop extern from function declarationNguyễn Thái Ngọc Duy, Jun 30, 2018
  11. 09/12 rerere.h: drop extern from function declarationNguyễn Thái Ngọc Duy, Jun 30, 2018
  12. 11/12 revision.h: drop extern from function declarationNguyễn Thái Ngọc Duy, Jun 30, 2018
  13. 12/12 submodule.h: drop extern from function declarationNguyễn Thái Ngọc Duy, Jun 30, 2018
  14. Brandon WilliamsJul 2, 2018
  15. Duy NguyenJul 21, 2018
  16. Duy NguyenAug 3, 2018
  17. Junio C HamanoAug 3, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.