From 26f4d19a9a575eb44a6fac44c3a991beee8b589d Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 15 Apr 2016 14:10:33 +0100 Subject: Improve fz_new_document Use a macro to make fz_new_document nicer (akin to fz_malloc_struct). --- source/fitz/document.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/fitz/document.c') diff --git a/source/fitz/document.c b/source/fitz/document.c index 7041616b..6c2d9500 100644 --- a/source/fitz/document.c +++ b/source/fitz/document.c @@ -147,7 +147,7 @@ fz_open_document(fz_context *ctx, const char *filename) } void * -fz_new_document(fz_context *ctx, int size) +fz_new_document_of_size(fz_context *ctx, int size) { fz_document *doc = fz_calloc(ctx, 1, size); doc->refs = 1; -- cgit v1.2.3