diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2013-02-19 16:13:07 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2013-02-19 16:13:07 +0100 |
commit | 9cc9978a7260d201137459a65601e35dce1d444e (patch) | |
tree | a2577f5ae25661febf023e081a6577f2eb373b10 /pdf | |
parent | ecd0129a551c96a4b05d77ef55601125e2fc2c67 (diff) | |
download | mupdf-9cc9978a7260d201137459a65601e35dce1d444e.tar.xz |
Fix whitespace.
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_device.c | 2 | ||||
-rw-r--r-- | pdf/pdf_form.c | 10 | ||||
-rw-r--r-- | pdf/pdf_interpret.c | 2 | ||||
-rw-r--r-- | pdf/pdf_js.c | 1 | ||||
-rw-r--r-- | pdf/pdf_js_none.c | 2 | ||||
-rw-r--r-- | pdf/pdf_jsimp_cpp.c | 1 | ||||
-rw-r--r-- | pdf/pdf_jsimp_cpp.h | 1 | ||||
-rw-r--r-- | pdf/pdf_store.c | 1 | ||||
-rw-r--r-- | pdf/pdf_type3.c | 1 | ||||
-rw-r--r-- | pdf/pdf_write.c | 3 | ||||
-rw-r--r-- | pdf/pdf_xobject.c | 2 | ||||
-rw-r--r-- | pdf/pdf_xref.c | 1 |
12 files changed, 6 insertions, 21 deletions
diff --git a/pdf/pdf_device.c b/pdf/pdf_device.c index aea5593f..36a0e89c 100644 --- a/pdf/pdf_device.c +++ b/pdf/pdf_device.c @@ -282,7 +282,6 @@ send_image(pdf_device *pdev, fz_image *image, int mask, int smask) if (bpc) pdf_dict_puts_drop(imobj, "BitsPerComponent", pdf_new_int(ctx, bpc)); - imref = pdf_new_ref(pdev->xref, imobj); pdf_update_stream(pdev->xref, pdf_to_num(imref), buffer); pdf_dict_puts_drop(imobj, "Length", pdf_new_int(ctx, buffer->len)); @@ -598,7 +597,6 @@ pdf_dev_tm(pdf_device *pdev, const fz_matrix *tm) gs->tm = *tm; } - static void pdf_dev_push_new_buf(pdf_device *pdev, fz_buffer *buf, void (*on_pop)(pdf_device*,void *), void *on_pop_arg) { diff --git a/pdf/pdf_form.c b/pdf/pdf_form.c index bdab08e7..c57608c0 100644 --- a/pdf/pdf_form.c +++ b/pdf/pdf_form.c @@ -51,7 +51,6 @@ enum Display_NoView }; - enum { Q_Left = 0, @@ -1057,8 +1056,7 @@ static int get_matrix(pdf_document *doc, pdf_xobject *form, int q, fz_matrix *mt coef_i = MATRIX_COEFS-1; } - coefs[coef_i++] = tok == PDF_TOK_INT ? lbuf.i - : lbuf.f; + coefs[coef_i++] = tok == PDF_TOK_INT ? lbuf.i : lbuf.f; } else { @@ -1647,7 +1645,7 @@ static pdf_obj *specified_fields(pdf_document *doc, pdf_obj *fields, int exclude pdf_obj *form = pdf_dict_getp(doc->trailer, "Root/AcroForm/Fields"); int i, n; pdf_obj *result = pdf_new_array(ctx, 0); - pdf_obj *nil = NULL; + pdf_obj *nil = NULL; fz_var(nil); fz_try(ctx) @@ -2539,7 +2537,7 @@ void pdf_field_set_fill_color(pdf_document *doc, pdf_obj *field, pdf_obj *col) { /* col == NULL mean transparent, but we can simply pass it on as with * non-NULL values because pdf_dict_putp interprets a NULL value as - " delete */ + * delete */ pdf_dict_putp(field, "MK/BG", col); pdf_field_mark_dirty(doc->ctx, field); } @@ -2595,7 +2593,7 @@ fz_rect *fz_bound_widget(fz_widget *widget, fz_rect *rect) if (rect == NULL) return NULL; - *rect = annot->pagerect; + *rect = annot->pagerect; return rect; } diff --git a/pdf/pdf_interpret.c b/pdf/pdf_interpret.c index 3021196c..d5bf4cd2 100644 --- a/pdf/pdf_interpret.c +++ b/pdf/pdf_interpret.c @@ -984,7 +984,6 @@ copy_state(fz_context *ctx, pdf_gstate *gs, pdf_gstate *old) pdf_keep_xobject(ctx, gs->softmask); } - static pdf_csi * pdf_new_csi(pdf_document *xref, fz_device *dev, const fz_matrix *ctm, char *event, fz_cookie *cookie, pdf_gstate *gstate, int nested) { @@ -1421,7 +1420,6 @@ pdf_run_xobject(pdf_csi *csi, pdf_obj *resources, pdf_xobject *xobj, const fz_ma { pdf_xobject *softmask = gstate->softmask; - gstate->softmask = NULL; popmask = 1; diff --git a/pdf/pdf_js.c b/pdf/pdf_js.c index 6f3db814..0060061f 100644 --- a/pdf/pdf_js.c +++ b/pdf/pdf_js.c @@ -147,7 +147,6 @@ static pdf_obj *load_color(fz_context *ctx, pdf_jsimp *imp, pdf_jsimp_obj *val) int i; int n; - n = pdf_jsimp_array_len(imp, val); /* The only legitimate color expressed as an array of length 1 diff --git a/pdf/pdf_js_none.c b/pdf/pdf_js_none.c index 5a57d6ca..8d129609 100644 --- a/pdf/pdf_js_none.c +++ b/pdf/pdf_js_none.c @@ -60,4 +60,4 @@ void pdf_js_execute_count(pdf_js *js, char *code, int count) int pdf_js_supported() { return 0; -}
\ No newline at end of file +} diff --git a/pdf/pdf_jsimp_cpp.c b/pdf/pdf_jsimp_cpp.c index d47ffc8d..c521f239 100644 --- a/pdf/pdf_jsimp_cpp.c +++ b/pdf/pdf_jsimp_cpp.c @@ -6,7 +6,6 @@ #include "mupdf-internal.h" #include "pdf_jsimp_cpp.h" - pdf_jsimp *pdf_new_jsimp(fz_context *ctx, void *jsctx) { pdf_jsimp *jsi = NULL; diff --git a/pdf/pdf_jsimp_cpp.h b/pdf/pdf_jsimp_cpp.h index a35e9733..83af1d23 100644 --- a/pdf/pdf_jsimp_cpp.h +++ b/pdf/pdf_jsimp_cpp.h @@ -1,7 +1,6 @@ /* C++ version of the pdf_jsimp api. C++ cannot safely call fz_throw, * so C++ implementations return explicit errors in char * form. */ - fz_context *pdf_jsimp_ctx_cpp(pdf_jsimp *imp); const char *pdf_new_jsimp_cpp(fz_context *ctx, void *jsctx, pdf_jsimp **imp); const char *pdf_drop_jsimp_cpp(pdf_jsimp *imp); diff --git a/pdf/pdf_store.c b/pdf/pdf_store.c index 2b20fca1..530229d3 100644 --- a/pdf/pdf_store.c +++ b/pdf/pdf_store.c @@ -75,4 +75,3 @@ pdf_remove_item(fz_context *ctx, fz_store_free_fn *free, pdf_obj *key) { fz_remove_item(ctx, free, key, &pdf_obj_store_type); } - diff --git a/pdf/pdf_type3.c b/pdf/pdf_type3.c index 8dd780dd..047f9ef1 100644 --- a/pdf/pdf_type3.c +++ b/pdf/pdf_type3.c @@ -14,7 +14,6 @@ pdf_t3_free_resources(void *doc, void *rdb_) pdf_drop_obj(rdb); } - pdf_font_desc * pdf_load_type3_font(pdf_document *xref, pdf_obj *rdb, pdf_obj *dict) { diff --git a/pdf/pdf_write.c b/pdf/pdf_write.c index 8823c100..2c0ca0b4 100644 --- a/pdf/pdf_write.c +++ b/pdf/pdf_write.c @@ -5,7 +5,6 @@ /* #define DEBUG_HEAP_SORT */ /* #define DEBUG_WRITING */ - typedef struct pdf_write_options_s pdf_write_options; /* @@ -1394,7 +1393,6 @@ update_linearization_params(pdf_document *xref, pdf_write_options *opts) pdf_set_int(opts->hints_length, opts->hintstream_len); } - /* * Make sure we have loaded objects from object streams. */ @@ -2191,7 +2189,6 @@ static void dump_object_details(pdf_document *xref, pdf_write_options *opts) } #endif - void pdf_write_document(pdf_document *xref, char *filename, fz_write_options *fz_opts) { int lastfree; diff --git a/pdf/pdf_xobject.c b/pdf/pdf_xobject.c index a334392f..525c04ae 100644 --- a/pdf/pdf_xobject.c +++ b/pdf/pdf_xobject.c @@ -79,7 +79,7 @@ pdf_load_xobject(pdf_document *xref, pdf_obj *dict) form->isolated = pdf_to_bool(pdf_dict_gets(attrs, "I")); form->knockout = pdf_to_bool(pdf_dict_gets(attrs, "K")); - + obj = pdf_dict_gets(attrs, "S"); if (pdf_is_name(obj) && !strcmp(pdf_to_name(obj), "Transparency")) form->transparency = 1; diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c index 0e954c30..c94ad85e 100644 --- a/pdf/pdf_xref.c +++ b/pdf/pdf_xref.c @@ -1321,7 +1321,6 @@ pdf_page_presentation(pdf_document *doc, pdf_page *page, float *duration) return &page->transition; } - static fz_interactive * pdf_interact(pdf_document *doc) { |