Commit 437ba9ad by Carlos Martín Nieto

Merge pull request #2909 from stewid/remove_extra_semicolon

Remove extra semicolon outside of a function
parents a291790a c8e02b87
......@@ -7,7 +7,7 @@
#include "git2/oid.h"
#include <ctype.h>
GIT__USE_STRMAP;
GIT__USE_STRMAP
const char *git_attr__true = "[internal]__TRUE__";
const char *git_attr__false = "[internal]__FALSE__";
......
......@@ -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)
{
......
......@@ -32,7 +32,7 @@
#include "pool.h"
#include "strmap.h"
GIT__USE_STRMAP;
GIT__USE_STRMAP
/* See docs/checkout-internals.md for more information */
......
......@@ -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)
{
......
......@@ -21,7 +21,7 @@
#include <sys/types.h>
#include <regex.h>
GIT__USE_STRMAP;
GIT__USE_STRMAP
typedef struct cvar_t {
struct cvar_t *next;
......
......@@ -17,7 +17,7 @@
#include "config.h"
#include "repository.h"
GIT__USE_STRMAP;
GIT__USE_STRMAP
typedef enum {
DIFF_DRIVER_AUTO = 0,
......
......@@ -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)
{
......
......@@ -14,7 +14,7 @@
#include "strmap.h"
#include "pack.h"
GIT__USE_STRMAP;
GIT__USE_STRMAP
#define DEFAULT_WINDOW_SIZE \
(sizeof(void*) >= 8 \
......
......@@ -18,7 +18,7 @@
#include "git2/types.h"
#include "git2/pack.h"
GIT__USE_OIDMAP;
GIT__USE_OIDMAP
struct memobject {
git_oid oid;
......
......@@ -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
......
......@@ -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)
......
......@@ -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 */
......
......@@ -26,7 +26,7 @@
#include <git2/sys/refs.h>
#include <git2/sys/reflog.h>
GIT__USE_STRMAP;
GIT__USE_STRMAP
#define DEFAULT_NESTING_LEVEL 5
#define MAX_NESTING_LEVEL 10
......
......@@ -24,7 +24,7 @@
#include <git2/signature.h>
#include <git2/commit.h>
GIT__USE_STRMAP;
GIT__USE_STRMAP
#define DEFAULT_NESTING_LEVEL 5
#define MAX_NESTING_LEVEL 10
......
......@@ -14,7 +14,7 @@
#include "pool.h"
#include "vector.h"
GIT__USE_OIDMAP;
GIT__USE_OIDMAP
struct git_revwalk {
git_repository *repo;
......
#include "sortedcache.h"
GIT__USE_STRMAP;
GIT__USE_STRMAP
int git_sortedcache_new(
git_sortedcache **out,
......
......@@ -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;
......
......@@ -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);
......
......@@ -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;
......
......@@ -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)
{
......
#include "clar_libgit2.h"
#include "oidmap.h"
GIT__USE_OIDMAP;
GIT__USE_OIDMAP
typedef struct {
git_oid oid;
......
#include "clar_libgit2.h"
#include "strmap.h"
GIT__USE_STRMAP;
GIT__USE_STRMAP
git_strmap *g_table;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment