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

[PATCH 08/12] line-range.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-9-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>
---
 line-range.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/line-range.h b/line-range.h
index 83ba3c25e8..d3c54e45aa 100644
--- a/line-range.h
+++ b/line-range.h
@@ -19,11 +19,11 @@
 
 typedef const char *(*nth_line_fn_t)(void *data, long lno);
 
-extern int parse_range_arg(const char *arg,
-			   nth_line_fn_t nth_line_cb,
-			   void *cb_data, long lines, long anchor,
-			   long *begin, long *end,
-			   const char *path);
+int parse_range_arg(const char *arg,
+		    nth_line_fn_t nth_line_cb,
+		    void *cb_data, long lines, long anchor,
+		    long *begin, long *end,
+		    const char *path);
 
 /*
  * Scan past a range argument that could be parsed by
@@ -34,6 +34,6 @@ extern int parse_range_arg(const char *arg,
  * NULL in case the argument is obviously malformed.
  */
 
-extern const char *skip_range_arg(const char *arg);
+const char *skip_range_arg(const char *arg);
 
 #endif /* LINE_RANGE_H */
-- 
2.18.0.rc2.476.g39500d3211
Previous: Nguyễn Thái Ngọc DuyNext: Nguyễn Thái Ngọc Duy
Message 10 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.