summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2016-08-05 10:57:13 +0200
committerPatrick Steinhardt <ps@pks.im>2016-08-05 10:57:13 +0200
commit844f5b20627a09f1a52f3ca39f047ca7504712d5 (patch)
tree0cc4b7427b5a88fe3cefb9b01cafe39e695abcb2
parent73dab7692e780e1df96093a54854795428eb66b4 (diff)
downloadlibgit2-844f5b20627a09f1a52f3ca39f047ca7504712d5.tar.gz
pool: provide macro to statically initialize git_pool
-rw-r--r--src/pool.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pool.h b/src/pool.h
index e0fafa997..f61f16944 100644
--- a/src/pool.h
+++ b/src/pool.h
@@ -35,6 +35,8 @@ typedef struct {
uint32_t page_size; /* size of page in bytes */
} git_pool;
+#define GIT_POOL_INIT { NULL, 0, 0 }
+
#else
/**
@@ -57,6 +59,9 @@ typedef struct {
uint32_t item_size;
uint32_t page_size;
} git_pool;
+
+#define GIT_POOL_INIT { GIT_VECTOR_INIT, 0, 0 }
+
#endif
/**