From 99ba154018b7c4a2c47b4c7e721ffe6d9164f9f3 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 20 Sep 2011 15:50:07 +0200 Subject: Reshuffle exception context code to fit Tor's aesthetic sense. --- scripts/cmapdump.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/cmapdump.c b/scripts/cmapdump.c index 06e74beb..23798ec6 100644 --- a/scripts/cmapdump.c +++ b/scripts/cmapdump.c @@ -16,7 +16,6 @@ #include "../fitz/stm_open.c" #include "../fitz/stm_read.c" #include "../fitz/context.c" -#include "../fitz/except.c" #include "../pdf/pdf_lex.c" #include "../pdf/pdf_cmap.c" @@ -51,7 +50,7 @@ main(int argc, char **argv) return 1; } - ctx = fz_context_init(&fz_alloc_default); + ctx = fz_new_context(&fz_alloc_default); if (ctx == NULL) { fprintf(stderr, "failed to initialise!\n"); @@ -166,6 +165,6 @@ main(int argc, char **argv) return 1; } - fz_context_fin(ctx); + fz_free_context(ctx); return 0; } -- cgit v1.2.3