From 69ed4a8f4dbfac7f2f1de925e34807e4fee3b27c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 21 Sep 2011 00:11:22 +0200 Subject: Don't thread ctx through safe fz_obj functions. --- apps/pdfshow.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'apps/pdfshow.c') diff --git a/apps/pdfshow.c b/apps/pdfshow.c index 653ffff6..0fd49010 100644 --- a/apps/pdfshow.c +++ b/apps/pdfshow.c @@ -33,7 +33,7 @@ static void showtrailer(void) if (!xref) die(fz_error_make("no file specified")); printf("trailer\n"); - fz_debug_obj(ctx, xref->trailer); + fz_debug_obj(xref->trailer); printf("\n"); } @@ -147,7 +147,7 @@ static void showobject(int num, int gen) else { printf("%d %d obj\n", num, gen); - fz_debug_obj(ctx, obj); + fz_debug_obj(obj); printf("stream\n"); showstream(num, gen); printf("endstream\n"); @@ -157,11 +157,11 @@ static void showobject(int num, int gen) else { printf("%d %d obj\n", num, gen); - fz_debug_obj(ctx, obj); + fz_debug_obj(obj); printf("endobj\n\n"); } - fz_drop_obj(ctx, obj); + fz_drop_obj(obj); } static void showgrep(char *filename) @@ -178,17 +178,17 @@ static void showgrep(char *filename) if (error) die(error); - fz_sort_dict(ctx, obj); + fz_sort_dict(obj); printf("%s:%d: ", filename, i); - fz_fprint_obj(ctx, stdout, obj, 1); + fz_fprint_obj(stdout, obj, 1); - fz_drop_obj(ctx, obj); + fz_drop_obj(obj); } } printf("%s:trailer: ", filename); - fz_fprint_obj(ctx, stdout, xref->trailer, 1); + fz_fprint_obj(stdout, xref->trailer, 1); } int main(int argc, char **argv) -- cgit v1.2.3