diff options
| author | Russell Belfer <rb@github.com> | 2012-07-12 11:48:12 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2012-07-12 11:49:15 -0700 |
| commit | 72ee07876295c241892edf4ccde15caf2c657413 (patch) | |
| tree | 3a48e730594515d49a4ef3dae5866e90080c94d0 /src/submodule.c | |
| parent | b7158c53a45a0e926550484f26eae49ffc3a5043 (diff) | |
| download | libgit2-72ee07876295c241892edf4ccde15caf2c657413.tar.gz | |
Isolate khash inlines from global namespace
khash.h was globally #define'ing "inline" which messes with
other files. Let's keep it as "kh_inline".
Diffstat (limited to 'src/submodule.c')
| -rw-r--r-- | src/submodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/submodule.c b/src/submodule.c index 3c07e657d..b8537cb8c 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -31,7 +31,7 @@ static git_cvar_map _sm_ignore_map[] = { {GIT_CVAR_STRING, "none", GIT_SUBMODULE_IGNORE_NONE} }; -static inline khint_t str_hash_no_trailing_slash(const char *s) +static kh_inline khint_t str_hash_no_trailing_slash(const char *s) { khint_t h; @@ -42,7 +42,7 @@ static inline khint_t str_hash_no_trailing_slash(const char *s) return h; } -static inline int str_equal_no_trailing_slash(const char *a, const char *b) +static kh_inline int str_equal_no_trailing_slash(const char *a, const char *b) { size_t alen = a ? strlen(a) : 0; size_t blen = b ? strlen(b) : 0; @@ -55,7 +55,7 @@ static inline int str_equal_no_trailing_slash(const char *a, const char *b) return (alen == blen && strncmp(a, b, alen) == 0); } -__KHASH_IMPL(str, static inline, const char *, void *, 1, str_hash_no_trailing_slash, str_equal_no_trailing_slash); +__KHASH_IMPL(str, static kh_inline, const char *, void *, 1, str_hash_no_trailing_slash, str_equal_no_trailing_slash); static git_submodule *submodule_alloc(const char *name) { |
