From 7d920025a2eaca1ec879d2e78b46576ca3351cc9 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Tue, 10 Jan 2012 01:10:28 +0100 Subject: Fix many spelling errors. --- apps/pdfapp.c | 8 ++++---- apps/pdfclean.c | 2 +- apps/win_main.c | 2 +- draw/draw_device.c | 2 +- draw/draw_edge.c | 2 +- draw/draw_scale.c | 4 ++-- draw/draw_simple_scale.c | 4 ++-- fitz/base_hash.c | 4 ++-- fitz/filt_faxd.c | 2 +- fitz/fitz.h | 2 +- fitz/memento.h | 4 ++-- pdf/pdf_crypt.c | 2 +- pdf/pdf_repair.c | 2 +- pdf/pdf_shade.c | 2 +- scripts/opj_config.h | 2 +- 15 files changed, 22 insertions(+), 22 deletions(-) diff --git a/apps/pdfapp.c b/apps/pdfapp.c index 34fe09a5..f8c9c79e 100644 --- a/apps/pdfapp.c +++ b/apps/pdfapp.c @@ -36,7 +36,7 @@ char *pdfapp_version(pdfapp_t *app) { return "MuPDF 0.9\n" - "Copyright 2006-2011 Artifex Sofware, Inc.\n"; + "Copyright 2006-2011 Artifex Software, Inc.\n"; } char *pdfapp_usage(pdfapp_t *app) @@ -813,7 +813,7 @@ void pdfapp_onkey(pdfapp_t *app, int c) #endif /* - * Pan view, but dont need to repaint image + * Pan view, but don't need to repaint image */ case 'w': @@ -1124,7 +1124,7 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta { /* Yes. We can assume that deltay != 0 */ int deltay = y - app->sely; - /* Check whether the panning has occured in the + /* Check whether the panning has occurred in the * direction that we are already crossing the * limit it. If not, we can conclude that we * have switched ends of the page and will thus @@ -1133,7 +1133,7 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta if( app->beyondy == 0 || (app->beyondy ^ deltay) >= 0 ) { /* Updating how far we are beyond and - * flipping pages if beyond threshhold + * flipping pages if beyond threshold */ app->beyondy += deltay; if (app->beyondy > BEYOND_THRESHHOLD) diff --git a/apps/pdfclean.c b/apps/pdfclean.c index c114cffe..f0a33918 100644 --- a/apps/pdfclean.c +++ b/apps/pdfclean.c @@ -114,7 +114,7 @@ static void removeduplicateobjs(void) for (num = 1; num < xref->len; num++) { - /* Only compare an object to objects preceeding it */ + /* Only compare an object to objects preceding it */ for (other = 1; other < num; other++) { fz_obj *a, *b; diff --git a/apps/win_main.c b/apps/win_main.c index 7223f4e6..e04a5bf9 100644 --- a/apps/win_main.c +++ b/apps/win_main.c @@ -612,7 +612,7 @@ void handlekey(int c) winrepaint(&gapp); } - /* translate VK into ascii equivalents */ + /* translate VK into ASCII equivalents */ if (c > 256) { switch (c - 256) diff --git a/draw/draw_device.c b/draw/draw_device.c index 6b1710d6..f07ad681 100644 --- a/draw/draw_device.c +++ b/draw/draw_device.c @@ -1109,7 +1109,7 @@ fz_draw_pop_clip(fz_device *devp) if (dev->top == 0) { - fz_warn(ctx, "Unexpectd pop clip"); + fz_warn(ctx, "Unexpected pop clip"); return; } state = &dev->stack[--dev->top]; diff --git a/draw/draw_edge.c b/draw/draw_edge.c index 2cc6ddbe..adb460ac 100644 --- a/draw/draw_edge.c +++ b/draw/draw_edge.c @@ -135,7 +135,7 @@ fz_set_aa_level(fz_context *ctx, int level) /* * Global Edge List -- list of straight path segments for scan conversion * - * Stepping along the edges is with bresenham's line algorithm. + * Stepping along the edges is with Bresenham's line algorithm. * * See Mike Abrash -- Graphics Programming Black Book (notably chapter 40) */ diff --git a/draw/draw_scale.c b/draw/draw_scale.c index 578a1d1e..e478633c 100644 --- a/draw/draw_scale.c +++ b/draw/draw_scale.c @@ -11,7 +11,7 @@ and then positioning it at (frac(x),frac(y)). /* Do we special case handling of single pixel high/wide images? The * 'purest' handling is given by not special casing them, but certain * files that use such images 'stack' them to give full images. Not - * special casing them results in then being fainter and giving noticable + * special casing them results in then being fainter and giving noticeable * rounding errors. */ #define SINGLE_PIXEL_SPECIALS @@ -1233,7 +1233,7 @@ fz_scale_pixmap(fz_context *ctx, fz_pixmap *src, float x, float y, float w, floa * When scaling vertically, we always store out forwards, but may * feed source rows in in a different order. * - * Consider the image rectange 'r' to which the image is mapped, + * Consider the image rectangle 'r' to which the image is mapped, * and the (possibly) larger rectangle 'R', given by expanding 'r' to * complete pixels. * diff --git a/draw/draw_simple_scale.c b/draw/draw_simple_scale.c index 6c8e451d..178b182f 100644 --- a/draw/draw_simple_scale.c +++ b/draw/draw_simple_scale.c @@ -15,7 +15,7 @@ intermediate results rather than ints. /* Do we special case handling of single pixel high/wide images? The * 'purest' handling is given by not special casing them, but certain * files that use such images 'stack' them to give full images. Not - * special casing them results in then being fainter and giving noticable + * special casing them results in then being fainter and giving noticeable * rounding errors. */ #define SINGLE_PIXEL_SPECIALS @@ -1195,7 +1195,7 @@ fz_scale_pixmap(fz_context *ctx, fz_pixmap *src, float x, float y, float w, floa * When scaling vertically, we always store out forwards, but may * feed source rows in in a different order. * - * Consider the image rectange 'r' to which the image is mapped, + * Consider the image rectangle 'r' to which the image is mapped, * and the (possibly) larger rectangle 'R', given by expanding 'r' to * complete pixels. * diff --git a/fitz/base_hash.c b/fitz/base_hash.c index 02acc8f1..2cbd9f4b 100644 --- a/fitz/base_hash.c +++ b/fitz/base_hash.c @@ -1,7 +1,7 @@ #include "fitz.h" /* -Simple hashtable with open adressing linear probe. +Simple hashtable with open addressing linear probe. Unlike text book examples, removing entries works correctly in this implementation, so it wont start exhibiting bad behaviour if entries are inserted @@ -194,7 +194,7 @@ fz_hash_remove(fz_hash_table *table, void *key) { if (!ents[pos].val) { - fz_warn(table->ctx, "assert: remove inexistant hash entry"); + fz_warn(table->ctx, "assert: remove inexistent hash entry"); return; } diff --git a/fitz/filt_faxd.c b/fitz/filt_faxd.c index 0a2426d0..927bf4c4 100644 --- a/fitz/filt_faxd.c +++ b/fitz/filt_faxd.c @@ -152,7 +152,7 @@ const cfd_node cf_2d_decode[] = { {-1,0},{-1,0},{-1,0},{-1,0},{-1,0},{-1,0},{-1,0},{-1,0},{-3,3} }; -/* Uncompresssed decoding table. */ +/* Uncompressed decoding table. */ const cfd_node cf_uncompressed_decode[] = { {64,12},{5,6},{4,5},{4,5},{3,4},{3,4},{3,4},{3,4},{2,3},{2,3}, {2,3},{2,3},{2,3},{2,3},{2,3},{2,3},{1,2},{1,2},{1,2},{1,2},{1,2}, diff --git a/fitz/fitz.h b/fitz/fitz.h index 7788ffd6..1f971cd3 100644 --- a/fitz/fitz.h +++ b/fitz/fitz.h @@ -192,7 +192,7 @@ void fz_var_imp(void *); * } * * 3) The macros are implemented using setjmp and longjmp, and so the standard - * C restrictions on the use of those functions apply to fz_try/fa_catch + * C restrictions on the use of those functions apply to fz_try/fz_catch * too. In particular, any "truly local" variable that is set between the * start of fz_try and something in fz_try throwing an exception may become * undefined as part of the process of throwing that exception. diff --git a/fitz/memento.h b/fitz/memento.h index b5953fe8..e4b7778f 100644 --- a/fitz/memento.h +++ b/fitz/memento.h @@ -15,7 +15,7 @@ * * Usage: * First, build your project with MEMENTO defined, and include this - * header file whereever you use malloc, realloc or free. + * header file wherever you use malloc, realloc or free. * This header file will use macros to point malloc, realloc and free to * point to Memento_malloc, Memento_realloc, Memento_free. * @@ -58,7 +58,7 @@ * the the code will wait until it reaches that event and then start * checking the heap after every allocation event. Assuming it is a * deterministic failure, you should then find out where in your program - * the error is occuring (between event x-1 and event x). + * the error is occurring (between event x-1 and event x). * * Then you can rerun the program again, and call * Memento_breakAt(int event); and the program will call diff --git a/pdf/pdf_crypt.c b/pdf/pdf_crypt.c index 6567cf89..4e8dc5e5 100644 --- a/pdf/pdf_crypt.c +++ b/pdf/pdf_crypt.c @@ -651,7 +651,7 @@ pdf_get_crypt_length(pdf_xref *xref) * PDF 1.7 algorithm 3.1 and ExtensionLevel 3 algorithm 3.1a * * Using the global encryption key that was generated from the - * password, create a new key that is used to decrypt indivual + * password, create a new key that is used to decrypt individual * objects and streams. This key is based on the object and * generation numbers. */ diff --git a/pdf/pdf_repair.c b/pdf/pdf_repair.c index 39c77f4d..6c04f690 100644 --- a/pdf/pdf_repair.c +++ b/pdf/pdf_repair.c @@ -491,7 +491,7 @@ pdf_repair_obj_stms(pdf_xref *xref) } } - /* Ensure that streamed objects reside insided a known non-streamed object */ + /* Ensure that streamed objects reside inside a known non-streamed object */ for (i = 0; i < xref->len; i++) if (xref->table[i].type == 'o' && xref->table[xref->table[i].ofs].type != 'n') fz_throw(xref->ctx, "invalid reference to non-object-stream: %d (%d 0 R)", xref->table[i].ofs, i); diff --git a/pdf/pdf_shade.c b/pdf/pdf_shade.c index 86894dc5..4f43c225 100644 --- a/pdf/pdf_shade.c +++ b/pdf/pdf_shade.c @@ -61,7 +61,7 @@ pdf_add_quad(fz_context *ctx, fz_shade *shade, pdf_add_triangle(ctx, shade, v1, v3, v2); } -/* Subdivide and tesselate tensor-patches */ +/* Subdivide and tessellate tensor-patches */ typedef struct pdf_tensor_patch_s pdf_tensor_patch; diff --git a/scripts/opj_config.h b/scripts/opj_config.h index d34edd22..db37745d 100644 --- a/scripts/opj_config.h +++ b/scripts/opj_config.h @@ -14,7 +14,7 @@ * * The file 'opj_config.h' will be included in some source files. * ==== YOU CAN NOT COMPILE WITHOUT IT. ==== - * === DO NOT FOREGET TO CHANGE 'config.nix' APPROPRIATELY. ==== + * === DO NOT FORGET TO CHANGE 'config.nix' APPROPRIATELY. ==== */ /* DO NOT DEFINE BOTH VERSIONS OF LCMS */ -- cgit v1.2.3