From 8d5c877a802f8651f4923279b83f8e100f434072 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 2 May 2013 13:29:58 +0200 Subject: Fix formatting. --- cbz/mucbz.c | 2 +- fitz/doc_link.c | 2 +- fitz/text_extract.c | 2 +- fitz/text_output.c | 6 +++--- pdf/pdf_device.c | 2 +- pdf/pdf_form.c | 10 +++++----- pdf/pdf_function.c | 8 ++++---- pdf/pdf_js.c | 2 +- pdf/pdf_lex.c | 2 +- pdf/pdf_xref.c | 2 +- xps/xps_zip.c | 2 +- 11 files changed, 20 insertions(+), 20 deletions(-) diff --git a/cbz/mucbz.c b/cbz/mucbz.c index 83ffc4fe..aa3652b3 100644 --- a/cbz/mucbz.c +++ b/cbz/mucbz.c @@ -408,7 +408,7 @@ cbz_run_page(cbz_document *doc, cbz_page *page, fz_device *dev, const fz_matrix static int cbz_meta(cbz_document *doc, int key, void *ptr, int size) { - switch(key) + switch (key) { case FZ_META_FORMAT_INFO: sprintf((char *)ptr, "CBZ"); diff --git a/fitz/doc_link.c b/fitz/doc_link.c index 17211d2e..26b57e4c 100644 --- a/fitz/doc_link.c +++ b/fitz/doc_link.c @@ -3,7 +3,7 @@ void fz_free_link_dest(fz_context *ctx, fz_link_dest *dest) { - switch(dest->kind) + switch (dest->kind) { case FZ_LINK_NONE: case FZ_LINK_GOTO: diff --git a/fitz/text_extract.c b/fitz/text_extract.c index e32de5ab..42e1dcaa 100644 --- a/fitz/text_extract.c +++ b/fitz/text_extract.c @@ -479,7 +479,7 @@ fz_free_text_page(fz_context *ctx, fz_text_page *page) fz_page_block *block; for (block = page->blocks; block < page->blocks + page->len; block++) { - switch(block->type) + switch (block->type) { case FZ_PAGE_BLOCK_TEXT: fz_free_text_block(ctx, block->u.text); diff --git a/fitz/text_output.c b/fitz/text_output.c index 74e8d2b5..7aceddef 100644 --- a/fitz/text_output.c +++ b/fitz/text_output.c @@ -123,7 +123,7 @@ fz_print_text_page_html(fz_context *ctx, fz_output *out, fz_text_page *page) for (block_n = 0; block_n < page->len; block_n++) { - switch(page->blocks[block_n].type) + switch (page->blocks[block_n].type) { case FZ_PAGE_BLOCK_TEXT: { @@ -287,7 +287,7 @@ fz_print_text_page_xml(fz_context *ctx, fz_output *out, fz_text_page *page) fz_printf(out, "\n"); for (block_n = 0; block_n < page->len; block_n++) { - switch(page->blocks[block_n].type) + switch (page->blocks[block_n].type) { case FZ_PAGE_BLOCK_TEXT: { @@ -368,7 +368,7 @@ fz_print_text_page(fz_context *ctx, fz_output *out, fz_text_page *page) for (block_n = 0; block_n < page->len; block_n++) { - switch(page->blocks[block_n].type) + switch (page->blocks[block_n].type) { case FZ_PAGE_BLOCK_TEXT: { diff --git a/pdf/pdf_device.c b/pdf/pdf_device.c index 058f4cb9..dd21fb4b 100644 --- a/pdf/pdf_device.c +++ b/pdf/pdf_device.c @@ -202,7 +202,7 @@ send_image(pdf_device *pdev, fz_image *image, int mask, int smask) pdf_dict_puts_drop(imobj, "ColorSpace", pdf_new_name(ctx, "DeviceRGB")); else if (colorspace->n == 4) pdf_dict_puts_drop(imobj, "ColorSpace", pdf_new_name(ctx, "DeviceCMYK")); - switch(cp ? cp->type : FZ_IMAGE_UNKNOWN) + switch (cp ? cp->type : FZ_IMAGE_UNKNOWN) { case FZ_IMAGE_UNKNOWN: default: diff --git a/pdf/pdf_form.c b/pdf/pdf_form.c index 9e02f2d0..339968a3 100644 --- a/pdf/pdf_form.c +++ b/pdf/pdf_form.c @@ -376,7 +376,7 @@ static fz_rect *measure_text(pdf_document *doc, font_info *font_rec, const fz_ma static void fzbuf_print_color(fz_context *ctx, fz_buffer *fzbuf, pdf_obj *arr, int stroke, float adj) { - switch(pdf_array_len(arr)) + switch (pdf_array_len(arr)) { case 1: fz_buffer_printf(ctx, fzbuf, stroke?"%f G\n":"%f g\n", @@ -837,7 +837,7 @@ static fz_buffer *create_text_appearance(pdf_document *doc, const fz_rect *bbox, { fz_translate(&tm, rect.x0, rect.y1 - (height+(ascent-descent)*fontsize)/2.0); - switch(info->q) + switch (info->q) { case Q_Right: tm.e += width; break; case Q_Cent: tm.e += width/2; break; @@ -1766,7 +1766,7 @@ void pdf_update_appearance(pdf_document *doc, pdf_obj *obj) switch (type) { case FZ_ANNOT_WIDGET: - switch(pdf_field_type(doc, obj)) + switch (pdf_field_type(doc, obj)) { case FZ_WIDGET_TYPE_TEXT: { @@ -2120,7 +2120,7 @@ int pdf_pass_event(pdf_document *doc, pdf_page *page, fz_ui_event *ui_event) if (annot) { - switch(annot->widget_type) + switch (annot->widget_type) { case FZ_WIDGET_TYPE_RADIOBUTTON: case FZ_WIDGET_TYPE_CHECKBOX: @@ -2750,7 +2750,7 @@ int pdf_choice_widget_is_multiselect(pdf_document *doc, fz_widget *tw) if (!annot) return 0; - switch(pdf_field_type(doc, annot->obj)) + switch (pdf_field_type(doc, annot->obj)) { case FZ_WIDGET_TYPE_LISTBOX: case FZ_WIDGET_TYPE_COMBOBOX: diff --git a/pdf/pdf_function.c b/pdf/pdf_function.c index 360f619b..dff0a8fb 100644 --- a/pdf/pdf_function.c +++ b/pdf/pdf_function.c @@ -705,7 +705,7 @@ parse_code(pdf_function *func, fz_stream *stream, int *codeptr, pdf_lexbuf *buf) { tok = pdf_lex(stream, buf); - switch(tok) + switch (tok) { case PDF_TOK_EOF: fz_throw(ctx, "truncated calculator function"); @@ -1358,7 +1358,7 @@ pdf_free_function_imp(fz_context *ctx, fz_storable *func_) pdf_function *func = (pdf_function *)func_; int i; - switch(func->type) + switch (func->type) { case SAMPLE: fz_free(ctx, func->u.sa.samples); @@ -1384,7 +1384,7 @@ pdf_eval_function(fz_context *ctx, fz_function *func_, float *in, float *out) { pdf_function *func = (pdf_function *)func_; - switch(func->type) + switch (func->type) { case SAMPLE: eval_sample_func(ctx, func, in, out); break; case EXPONENTIAL: eval_exponential_func(ctx, func, *in, out); break; @@ -1677,7 +1677,7 @@ pdf_load_function(pdf_document *xref, pdf_obj *dict, int in, int out) fz_try(ctx) { - switch(func->type) + switch (func->type) { case SAMPLE: load_sample_func(func, xref, dict, pdf_to_num(dict), pdf_to_gen(dict)); diff --git a/pdf/pdf_js.c b/pdf/pdf_js.c index f0920005..23b51df6 100644 --- a/pdf/pdf_js.c +++ b/pdf/pdf_js.c @@ -124,7 +124,7 @@ static pdf_jsimp_obj *app_launchURL(void *jsctx, void *obj, int argc, pdf_jsimp_ char *cUrl; int bNewFrame = 0; - switch(argc) + switch (argc) { default: return NULL; diff --git a/pdf/pdf_lex.c b/pdf/pdf_lex.c index 233ffb6d..9b4ff280 100644 --- a/pdf/pdf_lex.c +++ b/pdf/pdf_lex.c @@ -505,7 +505,7 @@ pdf_lex(fz_stream *f, pdf_lexbuf *buf) void pdf_print_token(fz_context *ctx, fz_buffer *fzbuf, int tok, pdf_lexbuf *buf) { - switch(tok) + switch (tok) { case PDF_TOK_NAME: fz_buffer_printf(ctx, fzbuf, "/%s", buf->scratch); diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c index ac89109d..bee9e210 100644 --- a/pdf/pdf_xref.c +++ b/pdf/pdf_xref.c @@ -1259,7 +1259,7 @@ pdf_update_stream(pdf_document *xref, int num, fz_buffer *newbuf) int pdf_meta(pdf_document *doc, int key, void *ptr, int size) { - switch(key) + switch (key) { /* ptr: Pointer to block (uninitialised on entry) diff --git a/xps/xps_zip.c b/xps/xps_zip.c index f5ca0eb7..0db4f042 100644 --- a/xps/xps_zip.c +++ b/xps/xps_zip.c @@ -672,7 +672,7 @@ xps_close_document(xps_document *doc) static int xps_meta(xps_document *doc, int key, void *ptr, int size) { - switch(key) + switch (key) { case FZ_META_FORMAT_INFO: sprintf((char *)ptr, "XPS"); -- cgit v1.2.3