diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-09-21 00:11:22 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-09-21 00:11:22 +0200 |
commit | 69ed4a8f4dbfac7f2f1de925e34807e4fee3b27c (patch) | |
tree | b7f82296a259d360ce90f0826e475321d630a222 /apps/pdfshow.c | |
parent | 99ba154018b7c4a2c47b4c7e721ffe6d9164f9f3 (diff) | |
download | mupdf-69ed4a8f4dbfac7f2f1de925e34807e4fee3b27c.tar.xz |
Don't thread ctx through safe fz_obj functions.
Diffstat (limited to 'apps/pdfshow.c')
-rw-r--r-- | apps/pdfshow.c | 16 |
1 files changed, 8 insertions, 8 deletions
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) |