Skip to content

Commit 642b8f9

Browse files
committed
Fix some typos
Most of them were found by codespell. Signed-off-by: Stefan Weil <[email protected]>
1 parent cad3e7d commit 642b8f9

32 files changed

+68
-68
lines changed

ChangeLog

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,7 +1849,7 @@
18491849

18501850
* libtiff/tif_jpeg.c: in JPEGFixupTags(), recognize SOF2, SOF9 and SOF10
18511851
markers to avoid emitting a warning (even if, according to the TechNote,
1852-
there are admitedly unusual/not recommended or even forbidden variants, but
1852+
there are admittedly unusual/not recommended or even forbidden variants, but
18531853
they do work well with libjpeg for SOF2, and with libjpeg-turbo for SOF2,
18541854
SOF9 and SOF10).
18551855
Define in_color_space and input_components to the right values in
@@ -2432,7 +2432,7 @@
24322432
2012-05-19 Bob Friesenhahn <[email protected]>
24332433

24342434
* man/TIFFGetField.3tiff: Correct the 'count' field type in the
2435-
example for how to retreive the value of unsupported tags.
2435+
example for how to retrieve the value of unsupported tags.
24362436

24372437
2012-03-30 Frank Warmerdam <[email protected]>
24382438

@@ -3039,7 +3039,7 @@
30393039

30403040
2010-04-21 Frank Warmerdam <[email protected]>
30413041

3042-
* libtiff/tif_jpeg.c: avoid preparing jpeg tables everytime
3042+
* libtiff/tif_jpeg.c: avoid preparing jpeg tables every time
30433043
JPEGSetupEncode() is called if the tables already seem to be
30443044
established. This prevents spurious updates and rewriting of
30453045
directories with jpegtables when doing updates to existing images.
@@ -3371,7 +3371,7 @@
33713371

33723372
* test/common.sh - start verbose mode after common settings.
33733373

3374-
* libtiff/tif_dirinfo.c: Replace lfind() with local equivelent to
3374+
* libtiff/tif_dirinfo.c: Replace lfind() with local equivalent to
33753375
avoid type mismatches on different platforms.
33763376
http://bugzilla.maptools.org/show_bug.cgi?id=1889
33773377

@@ -3518,7 +3518,7 @@
35183518

35193519
* tools/tiffdump.c: When compiling for Microsoft Windows, apply
35203520
consistent (__int64) casting when testing if _lseeki64 has
3521-
successfully seeked as requested. This is necessary for large
3521+
successfully sought as requested. This is necessary for large
35223522
file support to work since off_t is only 32-bit.
35233523

35243524
2008-07-29 Frank Warmerdam <[email protected]>
@@ -4316,7 +4316,7 @@ btiff/tif_win32.c: Replace custom Win32 memory api with generic
43164316
* libtiff/tif_getimage.c: replaced usage of TIFFScanlineSize in
43174317
gtStripContig with TIFFNewScanlineSize so as to fix buggy behaviour
43184318
on subsampled images - this ought to get sorted when we feel brave
4319-
enough to replace TIFFScanlineSize alltogether
4319+
enough to replace TIFFScanlineSize altogether
43204320

43214321
* libtiff/tif_ojpeg.c: fixed bug in OJPEGReadSkip
43224322

@@ -4974,7 +4974,7 @@ btiff/tif_win32.c: Replace custom Win32 memory api with generic
49744974

49754975
2005-06-03 Andrey Kiselev <[email protected]>
49764976

4977-
* libtiff/tif_open.c: Replace runtime endianess check with the compile
4977+
* libtiff/tif_open.c: Replace runtime endianness check with the compile
49784978
time one.
49794979

49804980
* libtiff/tif_predict.c: Floating point predictor now works on
@@ -6316,7 +6316,7 @@ btiff/tif_win32.c: Replace custom Win32 memory api with generic
63166316
2003-11-16 Andrey Kiselev <[email protected]>
63176317

63186318
* libtiff/{tiff.h, tif_dirinfo.c}: Added support for IFD (13)
6319-
datatype, intruduced in "Adobe PageMaker TIFF Tech. Notes".
6319+
datatype, introduced in "Adobe PageMaker TIFF Tech. Notes".
63206320

63216321
2003-11-15 Frank Warmerdam <[email protected]>
63226322

@@ -6627,7 +6627,7 @@ btiff/tif_win32.c: Replace custom Win32 memory api with generic
66276627

66286628
* contrib/ojpeg/{Makefile.in, jdhuff.h, jinclude.h, ojpeg.c, README},
66296629
configure, Makefile.in: Improved libtiff compilation with OJPEG
6630-
support. Now no need for patching IJG JPEG library, hack requred by
6630+
support. Now no need for patching IJG JPEG library, hack required by
66316631
libtiff will be compiled and used in-place. Implemented with
66326632
suggestion and help from Bill Allombert, Debian's libjpeg maintainer.
66336633

@@ -7485,7 +7485,7 @@ btiff/tif_win32.c: Replace custom Win32 memory api with generic
74857485
sizes. It fixes two problems:
74867486

74877487
Without scaling (-S) the fax is now centered on the page size specified
7488-
with -H and/or -W. Before, fax2ps was using an obscure and practially
7488+
with -H and/or -W. Before, fax2ps was using an obscure and practically
74897489
useless algorithm to allocate the image relative to Letter sized paper
74907490
which sometime sled to useless whitespace on the paper, while at the
74917491
same time cutting of the faxes printable area at the opposite border.

contrib/iptcutil/iptcutil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ int sindex(char ch,char *string)
782782
char *cp;
783783
for(cp=string;*cp;++cp)
784784
if(ch==*cp)
785-
return (int)(cp-string); /* return postion of character */
785+
return (int)(cp-string); /* return position of character */
786786
return -1; /* eol ... no match found */
787787
}
788788

contrib/pds/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Your ReadRGBA() routine works well for reading many different formats
3030
(TILED, STIP, compressed or not, etc.) of the most basic types of data
3131
(RGB, 8-bit greyscale, 8-bit colormapped) into an SGI-style data array,
3232
and serves as a good template for users with other needs. I used it as
33-
an exmaple of how to make an iterator which, rather than fill a data
33+
an example of how to make an iterator which, rather than fill a data
3434
array, calls an arbitrary user-supplied callback function for each
3535
"chunk" of data - that "chunk" might be a strip or a tile, and might
3636
have one sample-per-pixel or two, and might be 8-bit data or 16-bit or

contrib/pds/tif_imageiter.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ TIFFImageIterBegin(TIFFImageIter* img, TIFF* tif, int stop, char emsg[1024])
114114
TIFFErrorExt(tif->tif_clientdata, TIFFFileName(tif), "Missing required \"Colormap\" tag");
115115
return (0);
116116
}
117-
/* fall thru... */
117+
/* fall through... */
118118
case PHOTOMETRIC_MINISWHITE:
119119
case PHOTOMETRIC_MINISBLACK:
120120
/* This should work now so skip the check - BSR
@@ -181,7 +181,7 @@ TIFFImageIterBegin(TIFFImageIter* img, TIFF* tif, int stop, char emsg[1024])
181181
case ORIENTATION_LEFTBOT: /* XXX */
182182
TIFFWarning(TIFFFileName(tif), "using bottom-left orientation");
183183
img->orientation = ORIENTATION_BOTLEFT;
184-
/* fall thru... */
184+
/* fall through... */
185185
case ORIENTATION_BOTLEFT:
186186
break;
187187
case ORIENTATION_TOPRIGHT:
@@ -190,7 +190,7 @@ TIFFImageIterBegin(TIFFImageIter* img, TIFF* tif, int stop, char emsg[1024])
190190
default:
191191
TIFFWarning(TIFFFileName(tif), "using top-left orientation");
192192
img->orientation = ORIENTATION_TOPLEFT;
193-
/* fall thru... */
193+
/* fall through... */
194194
case ORIENTATION_TOPLEFT:
195195
break;
196196
}

contrib/pds/tif_imageiter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct _TIFFImageIter {
4444
uint16 samplesperpixel; /* image samples/pixel */
4545
uint16 orientation; /* image orientation */
4646
uint16 photometric; /* image photometric interp */
47-
uint16* redcmap; /* colormap pallete */
47+
uint16* redcmap; /* colormap palette */
4848
uint16* greencmap;
4949
uint16* bluecmap;
5050
/* get image data routine */

contrib/pds/tif_pdsdirread.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ TIFFReadPrivateDataSubDirectory(TIFF* tif, toff_t pdir_offset,
192192
* the fields to check type and tag information,
193193
* and to extract info required to size data
194194
* structures. A second pass is made afterwards
195-
* to read in everthing not taken in the first pass.
195+
* to read in everything not taken in the first pass.
196196
*/
197197
td = &tif->tif_dir;
198198

@@ -825,7 +825,7 @@ TIFFFetchNormalSubTag(TIFF* tif, TIFFDirEntry* dp, const TIFFFieldInfo* fip,
825825
break;
826826
}
827827
}
828-
/* fall thru... */
828+
/* fall through... */
829829
case TIFF_LONG:
830830
case TIFF_SLONG:
831831
{ uint32 v32 =

contrib/tags/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
NOTE: Sept/2004
33

44
The following described approach to managing tag extensions has been
5-
mostly superceeded since libtiff 3.6.0. The described approach requires
5+
mostly superseded since libtiff 3.6.0. The described approach requires
66
internal knowledge of the libtiff API and tends to be very fragile
77
in the face of libtiff upgrades.
88

contrib/tags/xtif_dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ _XTIFFDefaultDirectory(TIFF *tif)
269269
* Install into TIFF structure.
270270
*/
271271
TIFFMEMBER(tif,clientdir) = (tidata_t)xt;
272-
tif->tif_flags |= XTIFF_INITIALIZED; /* dont do this again! */
272+
tif->tif_flags |= XTIFF_INITIALIZED; /* don't do this again! */
273273
}
274274

275275
/* set up our own defaults */

contrib/win_dib/README.tiff2dib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ it contain the function LoadTIFFinDIB that load
4040
a TIFF file and build a memory DIB with it and return the
4141
HANDLE (HDIB) of the memory bloc containing this DIB.
4242
Since DIB is the "natural" bitmap format for Windows 3.1, 95 and NT,
43-
this function sould be usefull for some Windows 95 (or NT) developer.
43+
this function should be useful for some Windows 95 (or NT) developer.
4444

4545

4646
Sorry for my approximate english ...

contrib/win_dib/Tiffile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ setorientation(TIFFRGBAImage* img, uint32 h)
360360
case ORIENTATION_LEFTBOT: /* XXX */
361361
TIFFWarning(TIFFFileName(tif), "using bottom-left orientation");
362362
img->orientation = ORIENTATION_BOTLEFT;
363-
/* fall thru... */
363+
/* fall through... */
364364
case ORIENTATION_BOTLEFT:
365365
y = 0;
366366
break;
@@ -370,7 +370,7 @@ setorientation(TIFFRGBAImage* img, uint32 h)
370370
default:
371371
TIFFWarning(TIFFFileName(tif), "using top-left orientation");
372372
img->orientation = ORIENTATION_TOPLEFT;
373-
/* fall thru... */
373+
/* fall through... */
374374
case ORIENTATION_TOPLEFT:
375375
y = h-1;
376376
break;

0 commit comments

Comments
 (0)