diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-07-03 10:45:15 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-07-03 16:49:37 +0100 |
commit | c49742f64fc6b6d0e62bb971f47c13d63bea7434 (patch) | |
tree | 58310290e3c4bd18b269498783e3373fdce7aa2a /source | |
parent | b3f197164385a58214ba150fb33b23227bae6712 (diff) | |
download | mupdf-c49742f64fc6b6d0e62bb971f47c13d63bea7434.tar.xz |
Rename pdf_set_objects_parent_num to pdf_set_obj_parent
Diffstat (limited to 'source')
-rw-r--r-- | source/pdf/pdf-object.c | 8 | ||||
-rw-r--r-- | source/pdf/pdf-write.c | 2 | ||||
-rw-r--r-- | source/pdf/pdf-xref.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/source/pdf/pdf-object.c b/source/pdf/pdf-object.c index c4623f0a..6a77e7b4 100644 --- a/source/pdf/pdf-object.c +++ b/source/pdf/pdf-object.c @@ -543,7 +543,7 @@ static void object_altered(pdf_obj *obj, pdf_obj *val) object needs to record the parent_num */ pdf_xref_ensure_incremental_object(obj->doc, obj->parent_num); - pdf_set_objects_parent_num(val, obj->parent_num); + pdf_set_obj_parent(val, obj->parent_num); } void @@ -1349,7 +1349,7 @@ pdf_drop_obj(pdf_obj *obj) } void -pdf_set_objects_parent_num(pdf_obj *obj, int num) +pdf_set_obj_parent(pdf_obj *obj, int num) { int n, i; @@ -1363,12 +1363,12 @@ pdf_set_objects_parent_num(pdf_obj *obj, int num) case PDF_ARRAY: n = pdf_array_len(obj); for (i = 0; i < n; i++) - pdf_set_objects_parent_num(pdf_array_get(obj, i), num); + pdf_set_obj_parent(pdf_array_get(obj, i), num); break; case PDF_DICT: n = pdf_dict_len(obj); for (i = 0; i < n; i++) - pdf_set_objects_parent_num(pdf_dict_get_val(obj, i), num); + pdf_set_obj_parent(pdf_dict_get_val(obj, i), num); break; } } diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c index 27fe6d6c..4e6ddb21 100644 --- a/source/pdf/pdf-write.c +++ b/source/pdf/pdf-write.c @@ -800,7 +800,7 @@ static void renumberobjs(pdf_document *doc, pdf_write_options *opts) newxref[opts->renumber_map[num]] = *e; if (e->obj) { - pdf_set_objects_parent_num(e->obj, opts->renumber_map[num]); + pdf_set_obj_parent(e->obj, opts->renumber_map[num]); e->obj = NULL; } new_use_list[opts->renumber_map[num]] = opts->use_list[num]; diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c index ee9f8ea1..0337bb16 100644 --- a/source/pdf/pdf-xref.c +++ b/source/pdf/pdf-xref.c @@ -1309,7 +1309,7 @@ pdf_cache_object(pdf_document *doc, int num, int gen) fz_throw(ctx, FZ_ERROR_GENERIC, "cannot find object in xref (%d %d R)", num, gen); } - pdf_set_objects_parent_num(x->obj, num); + pdf_set_obj_parent(x->obj, num); } pdf_obj * |