diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-04-16 21:40:03 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-05-11 12:35:11 -0700 |
commit | 6586ba5579dbe4eb360bc646572e58350d12bffb (patch) | |
tree | 996d1a6fb867f17d52d284b404522cf5d7f2fe40 /core/load-git.c | |
parent | ae6f17af0c15ec3d9907a4ba9ca8846dbb0e2721 (diff) | |
download | subsurface-6586ba5579dbe4eb360bc646572e58350d12bffb.tar.gz |
Cleanup: move parse_location() declaration into header file
The parse_location() function was used in three places. In two
of them, the declaration was in the translation unit. Instead,
move the declaration into a header file, to avoid duplication
and the possibility of inconsistencies.
The "units.h" header was chosen as this is where location_t
is defined.
Moreover, make the string argument to parse_location() "const
char *", so that it can be used on non-owned buffers.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/load-git.c')
-rw-r--r-- | core/load-git.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/load-git.c b/core/load-git.c index f74950248..c6b3400a8 100644 --- a/core/load-git.c +++ b/core/load-git.c @@ -31,7 +31,6 @@ struct keyword_action { }; #define ARRAY_SIZE(array) (sizeof(array)/sizeof(array[0])) -extern void parse_location(char *buf, location_t *); git_blob *git_tree_entry_blob(git_repository *repo, const git_tree_entry *entry); static char *get_utf8(struct membuffer *b) |