diff options
Diffstat (limited to 'source/fitz/pool.c')
-rw-r--r-- | source/fitz/pool.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/fitz/pool.c b/source/fitz/pool.c index 90c405dc..59e4a0f2 100644 --- a/source/fitz/pool.c +++ b/source/fitz/pool.c @@ -1,5 +1,19 @@ #include "mupdf/fitz.h" +typedef struct fz_pool_node_s fz_pool_node; + +struct fz_pool_s +{ + fz_pool_node *head, *tail; + char *pos, *end; +}; + +struct fz_pool_node_s +{ + fz_pool_node *next; + char mem[64 << 10]; /* 64k blocks */ +}; + fz_pool *fz_new_pool(fz_context *ctx) { fz_pool *pool = fz_malloc_struct(ctx, fz_pool); |