diff --git a/src/attr.c b/src/attr.c index 2e1ef7c2a..44593da81 100644 --- a/src/attr.c +++ b/src/attr.c @@ -7,7 +7,7 @@ #include "git2/oid.h" #include -GIT__USE_STRMAP; +GIT__USE_STRMAP const char *git_attr__true = "[internal]__TRUE__"; const char *git_attr__false = "[internal]__FALSE__"; diff --git a/src/attrcache.c b/src/attrcache.c index 9a9b9d09d..018fa4874 100644 --- a/src/attrcache.c +++ b/src/attrcache.c @@ -5,7 +5,7 @@ #include "sysdir.h" #include "ignore.h" -GIT__USE_STRMAP; +GIT__USE_STRMAP GIT_INLINE(int) attr_cache_lock(git_attr_cache *cache) { diff --git a/src/checkout.c b/src/checkout.c index 395384030..880af3dff 100644 --- a/src/checkout.c +++ b/src/checkout.c @@ -32,7 +32,7 @@ #include "pool.h" #include "strmap.h" -GIT__USE_STRMAP; +GIT__USE_STRMAP /* See docs/checkout-internals.md for more information */ diff --git a/src/commit.c b/src/commit.c index 78c4b9de3..beb2c64c3 100644 --- a/src/commit.c +++ b/src/commit.c @@ -400,7 +400,7 @@ GIT_COMMIT_GETTER(const char *, raw_header, commit->raw_header) GIT_COMMIT_GETTER(git_time_t, time, commit->committer->when.time) GIT_COMMIT_GETTER(int, time_offset, commit->committer->when.offset) GIT_COMMIT_GETTER(unsigned int, parentcount, (unsigned int)git_array_size(commit->parent_ids)) -GIT_COMMIT_GETTER(const git_oid *, tree_id, &commit->tree_id); +GIT_COMMIT_GETTER(const git_oid *, tree_id, &commit->tree_id) const char *git_commit_message(const git_commit *commit) { diff --git a/src/config_file.c b/src/config_file.c index b0ffd6116..168dd5483 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -21,7 +21,7 @@ #include #include -GIT__USE_STRMAP; +GIT__USE_STRMAP typedef struct cvar_t { struct cvar_t *next; diff --git a/src/diff_driver.c b/src/diff_driver.c index e4d9a0699..7313ab573 100644 --- a/src/diff_driver.c +++ b/src/diff_driver.c @@ -17,7 +17,7 @@ #include "config.h" #include "repository.h" -GIT__USE_STRMAP; +GIT__USE_STRMAP typedef enum { DIFF_DRIVER_AUTO = 0, diff --git a/src/fileops.c b/src/fileops.c index 9509b27bb..ec536bf29 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -13,7 +13,7 @@ #include "win32/findfile.h" #endif -GIT__USE_STRMAP; +GIT__USE_STRMAP int git_futils_mkpath2file(const char *file_path, const mode_t mode) { diff --git a/src/mwindow.c b/src/mwindow.c index 0444cd98c..55c8d894b 100644 --- a/src/mwindow.c +++ b/src/mwindow.c @@ -14,7 +14,7 @@ #include "strmap.h" #include "pack.h" -GIT__USE_STRMAP; +GIT__USE_STRMAP #define DEFAULT_WINDOW_SIZE \ (sizeof(void*) >= 8 \ diff --git a/src/odb_mempack.c b/src/odb_mempack.c index 32bc84442..34355270f 100644 --- a/src/odb_mempack.c +++ b/src/odb_mempack.c @@ -18,7 +18,7 @@ #include "git2/types.h" #include "git2/pack.h" -GIT__USE_OIDMAP; +GIT__USE_OIDMAP struct memobject { git_oid oid; diff --git a/src/offmap.h b/src/offmap.h index 9471e7b91..0d0e51272 100644 --- a/src/offmap.h +++ b/src/offmap.h @@ -17,11 +17,11 @@ #define kfree git__free #include "khash.h" -__KHASH_TYPE(off, git_off_t, void *); +__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); + __KHASH_IMPL(off, static kh_inline, git_off_t, void *, 1, kh_int64_hash_func, kh_int64_hash_equal) #define git_offmap_alloc() kh_init(off) #define git_offmap_free(h) kh_destroy(off, h), h = NULL diff --git a/src/oidmap.h b/src/oidmap.h index 5e3b44bfb..d2c451e7f 100644 --- a/src/oidmap.h +++ b/src/oidmap.h @@ -17,7 +17,7 @@ #define kfree git__free #include "khash.h" -__KHASH_TYPE(oid, const git_oid *, void *); +__KHASH_TYPE(oid, const git_oid *, void *) typedef khash_t(oid) git_oidmap; GIT_INLINE(khint_t) git_oidmap_hash(const git_oid *oid) diff --git a/src/pack.h b/src/pack.h index 34d37d907..3cebd10ac 100644 --- a/src/pack.h +++ b/src/pack.h @@ -72,8 +72,8 @@ typedef git_array_t(struct pack_chain_elem) git_dependency_chain; #include "offmap.h" -GIT__USE_OFFMAP; -GIT__USE_OIDMAP; +GIT__USE_OFFMAP +GIT__USE_OIDMAP #define GIT_PACK_CACHE_MEMORY_LIMIT 16 * 1024 * 1024 #define GIT_PACK_CACHE_SIZE_LIMIT 1024 * 1024 /* don't bother caching anything over 1MB */ diff --git a/src/refdb_fs.c b/src/refdb_fs.c index 5cd2112fc..77cb1a8ce 100644 --- a/src/refdb_fs.c +++ b/src/refdb_fs.c @@ -26,7 +26,7 @@ #include #include -GIT__USE_STRMAP; +GIT__USE_STRMAP #define DEFAULT_NESTING_LEVEL 5 #define MAX_NESTING_LEVEL 10 diff --git a/src/refs.c b/src/refs.c index 2e88c26c3..e3157529b 100644 --- a/src/refs.c +++ b/src/refs.c @@ -24,7 +24,7 @@ #include #include -GIT__USE_STRMAP; +GIT__USE_STRMAP #define DEFAULT_NESTING_LEVEL 5 #define MAX_NESTING_LEVEL 10 diff --git a/src/revwalk.h b/src/revwalk.h index 72ddedc75..1148a2ac9 100644 --- a/src/revwalk.h +++ b/src/revwalk.h @@ -14,7 +14,7 @@ #include "pool.h" #include "vector.h" -GIT__USE_OIDMAP; +GIT__USE_OIDMAP struct git_revwalk { git_repository *repo; diff --git a/src/sortedcache.c b/src/sortedcache.c index 1195ea339..115175724 100644 --- a/src/sortedcache.c +++ b/src/sortedcache.c @@ -1,6 +1,6 @@ #include "sortedcache.h" -GIT__USE_STRMAP; +GIT__USE_STRMAP int git_sortedcache_new( git_sortedcache **out, diff --git a/src/strmap.h b/src/strmap.h index dfbe5639f..520984744 100644 --- a/src/strmap.h +++ b/src/strmap.h @@ -16,7 +16,7 @@ #define kfree git__free #include "khash.h" -__KHASH_TYPE(str, const char *, void *); +__KHASH_TYPE(str, const char *, void *) typedef khash_t(str) git_strmap; typedef khiter_t git_strmap_iter; diff --git a/src/submodule.c b/src/submodule.c index 03714b43b..80f1b3789 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -85,7 +85,7 @@ static kh_inline int str_equal_no_trailing_slash(const char *a, const char *b) __KHASH_IMPL( str, static kh_inline, const char *, void *, 1, - str_hash_no_trailing_slash, str_equal_no_trailing_slash); + str_hash_no_trailing_slash, str_equal_no_trailing_slash) static int submodule_cache_init(git_repository *repo, int refresh); static void submodule_cache_free(git_submodule_cache *cache); diff --git a/src/transaction.c b/src/transaction.c index 1a4fffb36..7b45b8bf2 100644 --- a/src/transaction.c +++ b/src/transaction.c @@ -17,7 +17,7 @@ #include "git2/sys/refs.h" #include "git2/sys/refdb_backend.h" -GIT__USE_STRMAP; +GIT__USE_STRMAP typedef struct { const char *name; diff --git a/src/tree.c b/src/tree.c index 9fd4e0a07..47ed20dbb 100644 --- a/src/tree.c +++ b/src/tree.c @@ -17,7 +17,7 @@ #define DEFAULT_TREE_SIZE 16 #define MAX_FILEMODE_BYTES 6 -GIT__USE_STRMAP; +GIT__USE_STRMAP static bool valid_filemode(const int filemode) { diff --git a/tests/core/oidmap.c b/tests/core/oidmap.c index ec4b5e775..556a6ca4a 100644 --- a/tests/core/oidmap.c +++ b/tests/core/oidmap.c @@ -1,7 +1,7 @@ #include "clar_libgit2.h" #include "oidmap.h" -GIT__USE_OIDMAP; +GIT__USE_OIDMAP typedef struct { git_oid oid; diff --git a/tests/core/strmap.c b/tests/core/strmap.c index a120f1feb..3b4276aea 100644 --- a/tests/core/strmap.c +++ b/tests/core/strmap.c @@ -1,7 +1,7 @@ #include "clar_libgit2.h" #include "strmap.h" -GIT__USE_STRMAP; +GIT__USE_STRMAP git_strmap *g_table;