Commit 844f5b20 by Patrick Steinhardt

pool: provide macro to statically initialize git_pool

parent 73dab769
...@@ -35,6 +35,8 @@ typedef struct { ...@@ -35,6 +35,8 @@ typedef struct {
uint32_t page_size; /* size of page in bytes */ uint32_t page_size; /* size of page in bytes */
} git_pool; } git_pool;
#define GIT_POOL_INIT { NULL, 0, 0 }
#else #else
/** /**
...@@ -57,6 +59,9 @@ typedef struct { ...@@ -57,6 +59,9 @@ typedef struct {
uint32_t item_size; uint32_t item_size;
uint32_t page_size; uint32_t page_size;
} git_pool; } git_pool;
#define GIT_POOL_INIT { GIT_VECTOR_INIT, 0, 0 }
#endif #endif
/** /**
......
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