summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Gardiner <paul.gardiner@artifex.com>2013-11-08 12:28:09 +0000
committerPaul Gardiner <paul.gardiner@artifex.com>2013-11-08 14:28:16 +0000
commit03a56be6b569c034fddcc095ba5dd137fa404c9f (patch)
tree34a96c536462b58e47df9a2c2bb23c5868089ec7 /include
parentc0c9d9800e3c015a1f401df465fb907eb23fa18c (diff)
downloadmupdf-03a56be6b569c034fddcc095ba5dd137fa404c9f.tar.xz
Use an end pointer for the annotation list to avoid unnecessary iteration
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/pdf/annot.h2
-rw-r--r--include/mupdf/pdf/page.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/mupdf/pdf/annot.h b/include/mupdf/pdf/annot.h
index bf912ef9..417f5fe3 100644
--- a/include/mupdf/pdf/annot.h
+++ b/include/mupdf/pdf/annot.h
@@ -64,7 +64,7 @@ pdf_obj *pdf_load_name_tree(pdf_document *doc, char *which);
fz_link *pdf_load_link_annots(pdf_document *, pdf_obj *annots, const fz_matrix *page_ctm);
-pdf_annot *pdf_load_annots(pdf_document *, pdf_obj *annots, pdf_page *page);
+void pdf_load_annots(pdf_document *, pdf_page *page, pdf_obj *annots);
void pdf_update_annot(pdf_document *, pdf_annot *annot);
void pdf_free_annot(fz_context *ctx, pdf_annot *link);
diff --git a/include/mupdf/pdf/page.h b/include/mupdf/pdf/page.h
index f0a8de0d..e6c4f9b2 100644
--- a/include/mupdf/pdf/page.h
+++ b/include/mupdf/pdf/page.h
@@ -84,6 +84,7 @@ struct pdf_page_s
pdf_obj *contents;
fz_link *links;
pdf_annot *annots;
+ pdf_annot **annot_tailp;
pdf_annot *changed_annots;
pdf_annot *deleted_annots;
pdf_annot *tmp_annots;