diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-06-24 22:03:54 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-06-25 10:11:18 +0100 |
commit | 997902cd2a0d46404ff4fe09a7380410d1499c5a (patch) | |
tree | ded41aa535d7445807aea17a364f993fb8603729 /source/pdf/pdf-cmap-load.c | |
parent | 07dd8540ae72b0e7be64d04c38d8c19b83d184b6 (diff) | |
download | mupdf-997902cd2a0d46404ff4fe09a7380410d1499c5a.tar.xz |
Rid the world of "pdf_document *xref".
For historical reasons lots of the code uses "xref" when talking about
a pdf document. Now pdf_xref is a separate type this has become
confusing, so replace 'xref' with 'doc' for clarity.
Diffstat (limited to 'source/pdf/pdf-cmap-load.c')
-rw-r--r-- | source/pdf/pdf-cmap-load.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/pdf/pdf-cmap-load.c b/source/pdf/pdf-cmap-load.c index 5fcae15d..64dd0e12 100644 --- a/source/pdf/pdf-cmap-load.c +++ b/source/pdf/pdf-cmap-load.c @@ -15,14 +15,14 @@ pdf_cmap_size(fz_context *ctx, pdf_cmap *cmap) * Load CMap stream in PDF file */ pdf_cmap * -pdf_load_embedded_cmap(pdf_document *xref, pdf_obj *stmobj) +pdf_load_embedded_cmap(pdf_document *doc, pdf_obj *stmobj) { fz_stream *file = NULL; pdf_cmap *cmap = NULL; pdf_cmap *usecmap; pdf_obj *wmode; pdf_obj *obj = NULL; - fz_context *ctx = xref->ctx; + fz_context *ctx = doc->ctx; int phase = 0; fz_var(phase); @@ -40,7 +40,7 @@ pdf_load_embedded_cmap(pdf_document *xref, pdf_obj *stmobj) fz_try(ctx) { - file = pdf_open_stream(xref, pdf_to_num(stmobj), pdf_to_gen(stmobj)); + file = pdf_open_stream(doc, pdf_to_num(stmobj), pdf_to_gen(stmobj)); phase = 1; cmap = pdf_load_cmap(ctx, file); phase = 2; @@ -61,7 +61,7 @@ pdf_load_embedded_cmap(pdf_document *xref, pdf_obj *stmobj) { phase = 3; pdf_obj_mark(obj); - usecmap = pdf_load_embedded_cmap(xref, obj); + usecmap = pdf_load_embedded_cmap(doc, obj); pdf_obj_unmark(obj); phase = 4; pdf_set_usecmap(ctx, cmap, usecmap); |