diff options
Diffstat (limited to 'pdf/pdf_page.c')
-rw-r--r-- | pdf/pdf_page.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pdf/pdf_page.c b/pdf/pdf_page.c index f275d951..08fbbac6 100644 --- a/pdf/pdf_page.c +++ b/pdf/pdf_page.c @@ -54,7 +54,7 @@ pdf_load_page_tree_node(pdf_document *xref, pdf_obj *node, struct info info) { do { - if (!node || pdf_dict_mark(node)) + if (!node || pdf_obj_mark(node)) { /* NULL node, or we've been here before. * Nothing to do. */ @@ -112,7 +112,7 @@ pdf_load_page_tree_node(pdf_document *xref, pdf_obj *node, struct info info) xref->page_refs[xref->page_len] = pdf_keep_obj(node); xref->page_objs[xref->page_len] = pdf_keep_obj(dict); xref->page_len ++; - pdf_dict_unmark(node); + pdf_obj_unmark(node); } } /* Get the next node */ @@ -120,13 +120,13 @@ pdf_load_page_tree_node(pdf_document *xref, pdf_obj *node, struct info info) break; while (++stack[stacklen].pos == stack[stacklen].max) { - pdf_dict_unmark(stack[stacklen].node); + pdf_obj_unmark(stack[stacklen].node); stacklen--; if (stacklen < 0) /* No more to pop! */ break; node = stack[stacklen].node; info = stack[stacklen].info; - pdf_dict_unmark(node); /* Unmark it, cos we're about to mark it again */ + pdf_obj_unmark(node); /* Unmark it, cos we're about to mark it again */ } if (stacklen >= 0) node = pdf_array_get(stack[stacklen].kids, stack[stacklen].pos); @@ -136,7 +136,7 @@ pdf_load_page_tree_node(pdf_document *xref, pdf_obj *node, struct info info) fz_always(ctx) { while (stacklen >= 0) - pdf_dict_unmark(stack[stacklen--].node); + pdf_obj_unmark(stack[stacklen--].node); fz_free(ctx, stack); } fz_catch(ctx) @@ -244,7 +244,7 @@ pdf_resources_use_blending(fz_context *ctx, pdf_obj *rdb) return pdf_to_bool(obj); /* stop on cyclic resource dependencies */ - if (pdf_dict_mark(rdb)) + if (pdf_obj_mark(rdb)) return 0; fz_try(ctx) @@ -274,7 +274,7 @@ found: } fz_always(ctx) { - pdf_dict_unmark(rdb); + pdf_obj_unmark(rdb); } fz_catch(ctx) { |