]> git.proxmox.com Git - libgit2.git/commitdiff
offmap: remove GIT__USE_OFFMAP macro
authorPatrick Steinhardt <ps@pks.im>
Thu, 2 Feb 2017 10:58:48 +0000 (11:58 +0100)
committerPatrick Steinhardt <ps@pks.im>
Fri, 17 Feb 2017 10:41:06 +0000 (11:41 +0100)
src/offmap.c
src/offmap.h
src/pack.c

index 3f51f6e0cfa160cb18040e98b63cbf1e9fdc5c00..023c9b417ae93f6024e3292df3b1bb206a8c1a0f 100644 (file)
@@ -7,7 +7,7 @@
 
 #include "offmap.h"
 
-GIT__USE_OFFMAP
+__KHASH_IMPL(off, static kh_inline, git_off_t, void *, 1, kh_int64_hash_func, kh_int64_hash_equal)
 
 git_offmap *git_offmap_alloc(void)
 {
index db79e485eb2a68adc676d860ee481553ea82ec89..1f30cda6d65314bd8085412316776c89aab159e6 100644 (file)
@@ -20,9 +20,6 @@
 __KHASH_TYPE(off, git_off_t, void *)
 typedef khash_t(off) git_offmap;
 
-#define GIT__USE_OFFMAP \
-       __KHASH_IMPL(off, static kh_inline, git_off_t, void *, 1, kh_int64_hash_func, kh_int64_hash_equal)
-
 git_offmap *git_offmap_alloc(void);
 #define git_offmap_free(h) git_offmap__free(h); (h) = NULL
 void git_offmap__free(git_offmap *map);
index 9be051e64abe9096a7216b034f2542430e2f31f5..d59fae4122c3b90f803c669fe345db7771aa283c 100644 (file)
@@ -16,8 +16,6 @@
 
 #include <zlib.h>
 
-GIT__USE_OFFMAP
-
 static int packfile_open(struct git_pack_file *p);
 static git_off_t nth_packed_object_offset(const struct git_pack_file *p, uint32_t n);
 static int packfile_unpack_compressed(