diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-04-24 16:36:46 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-04-27 15:12:03 +0200 |
commit | ce680b96e207c90429eb702c5ee4b9bec177fdfd (patch) | |
tree | 2794e8a3efc8ad08d5ca976db4adc3ef10c512a8 /source/pdf/pdf-xref.c | |
parent | 9a725130b9b16daa332f8502e24eac9cab4cf9b2 (diff) | |
download | mupdf-ce680b96e207c90429eb702c5ee4b9bec177fdfd.tar.xz |
Typedef function pointers consistently.
Diffstat (limited to 'source/pdf/pdf-xref.c')
-rw-r--r-- | source/pdf/pdf-xref.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c index 2b1513fe..2d046bbe 100644 --- a/source/pdf/pdf-xref.c +++ b/source/pdf/pdf-xref.c @@ -2217,15 +2217,15 @@ pdf_new_document(fz_context *ctx, fz_stream *file) { pdf_document *doc = fz_new_derived_document(ctx, pdf_document); - doc->super.drop_document = (fz_document_drop_fn *)pdf_drop_document_imp; - doc->super.needs_password = (fz_document_needs_password_fn *)pdf_needs_password; - doc->super.authenticate_password = (fz_document_authenticate_password_fn *)pdf_authenticate_password; - doc->super.has_permission = (fz_document_has_permission_fn *)pdf_has_permission; - doc->super.load_outline = (fz_document_load_outline_fn *)pdf_load_outline; - doc->super.resolve_link = (fz_document_resolve_link_fn *)pdf_resolve_link; - doc->super.count_pages = (fz_document_count_pages_fn *)pdf_count_pages; - doc->super.load_page = (fz_document_load_page_fn *)pdf_load_page; - doc->super.lookup_metadata = (fz_document_lookup_metadata_fn *)pdf_lookup_metadata; + doc->super.drop_document = (fz_document_drop_fn*)pdf_drop_document_imp; + doc->super.needs_password = (fz_document_needs_password_fn*)pdf_needs_password; + doc->super.authenticate_password = (fz_document_authenticate_password_fn*)pdf_authenticate_password; + doc->super.has_permission = (fz_document_has_permission_fn*)pdf_has_permission; + doc->super.load_outline = (fz_document_load_outline_fn*)pdf_load_outline; + doc->super.resolve_link = (fz_document_resolve_link_fn*)pdf_resolve_link; + doc->super.count_pages = (fz_document_count_pages_fn*)pdf_count_pages; + doc->super.load_page = (fz_document_load_page_fn*)pdf_load_page; + doc->super.lookup_metadata = (fz_document_lookup_metadata_fn*)pdf_lookup_metadata; doc->update_appearance = pdf_update_appearance; pdf_lexbuf_init(ctx, &doc->lexbuf.base, PDF_LEXBUF_LARGE); @@ -2610,17 +2610,17 @@ pdf_obj *pdf_progressive_advance(fz_context *ctx, pdf_document *doc, int pagenum pdf_document *pdf_document_from_fz_document(fz_context *ctx, fz_document *ptr) { - return (pdf_document *)((ptr && ptr->count_pages == (void*)pdf_count_pages) ? ptr : NULL); + return (pdf_document *)((ptr && ptr->count_pages == (fz_document_count_pages_fn*)pdf_count_pages) ? ptr : NULL); } pdf_page *pdf_page_from_fz_page(fz_context *ctx, fz_page *ptr) { - return (pdf_page *)((ptr && ptr->bound_page == (void*)pdf_bound_page) ? ptr : NULL); + return (pdf_page *)((ptr && ptr->bound_page == (fz_page_bound_page_fn*)pdf_bound_page) ? ptr : NULL); } pdf_annot *pdf_annot_from_fz_annot(fz_context *ctx, fz_annot *ptr) { - return (pdf_annot *)((ptr && ptr->bound_annot == (void*)pdf_bound_annot) ? ptr : NULL); + return (pdf_annot *)((ptr && ptr->bound_annot == (fz_annot_bound_fn*)pdf_bound_annot) ? ptr : NULL); } pdf_document *pdf_specifics(fz_context *ctx, fz_document *doc) @@ -2740,8 +2740,8 @@ static const char *pdf_mimetypes[] = fz_document_handler pdf_document_handler = { NULL, - (fz_document_open_fn *) pdf_open_document, - (fz_document_open_with_stream_fn *) pdf_open_document_with_stream, + (fz_document_open_fn*)pdf_open_document, + (fz_document_open_with_stream_fn*)pdf_open_document_with_stream, pdf_extensions, pdf_mimetypes }; |