summaryrefslogtreecommitdiff
path: root/source/fitz/document.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-04-15 14:10:33 +0100
committerRobin Watts <robin.watts@artifex.com>2016-04-26 15:13:08 +0100
commit26f4d19a9a575eb44a6fac44c3a991beee8b589d (patch)
treeb9c9a8c42e794db77a3208dd99fce732beead280 /source/fitz/document.c
parenta2fc54fe202624b7f82662eb9ca04c718d886718 (diff)
downloadmupdf-26f4d19a9a575eb44a6fac44c3a991beee8b589d.tar.xz
Improve fz_new_document
Use a macro to make fz_new_document nicer (akin to fz_malloc_struct).
Diffstat (limited to 'source/fitz/document.c')
-rw-r--r--source/fitz/document.c2
1 files changed, 1 insertions, 1 deletions
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;