]> git.proxmox.com Git - libgit2.git/commitdiff
pool: provide macro to statically initialize git_pool
authorPatrick Steinhardt <ps@pks.im>
Fri, 5 Aug 2016 08:57:13 +0000 (10:57 +0200)
committerPatrick Steinhardt <ps@pks.im>
Fri, 5 Aug 2016 08:57:13 +0000 (10:57 +0200)
src/pool.h

index e0fafa9976b75d6d9d9c09f305de32df8ec645c7..f61f16944a4071d14c8b4d25e2939df2053a1e41 100644 (file)
@@ -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
 
 /**