Commit 844f5b20627a09f1a52f3ca39f047ca7504712d5

Patrick Steinhardt 2016-08-05T10:57:13

pool: provide macro to statically initialize git_pool

diff --git a/src/pool.h b/src/pool.h
index e0fafa9..f61f169 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
 
 /**