about summary refs log tree commit diff
path: root/editor
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-12-30 05:05:58 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-12-30 05:05:58 +0000
commit4b896dbdd5d76d1457f67b04c0903d4210cea874 (patch)
tree29ee6394de1647061d56bbe710d9a88478e58410 /editor
parentef169d7bad450fd906e843169278c693730a8b2b (diff)
downloadnetpbm-mirror-4b896dbdd5d76d1457f67b04c0903d4210cea874.tar.gz
netpbm-mirror-4b896dbdd5d76d1457f67b04c0903d4210cea874.tar.xz
netpbm-mirror-4b896dbdd5d76d1457f67b04c0903d4210cea874.zip
Fix typos in comments and messages, whitespace
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3728 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rw-r--r--editor/pamaltsat.c10
-rw-r--r--editor/pamcut.c4
-rw-r--r--editor/pamlevels.c2
-rw-r--r--editor/pnmcrop.c2
-rwxr-xr-xeditor/ppmshadow2
5 files changed, 10 insertions, 10 deletions
diff --git a/editor/pamaltsat.c b/editor/pamaltsat.c
index 6d9b91e0..3bff55bd 100644
--- a/editor/pamaltsat.c
+++ b/editor/pamaltsat.c
@@ -160,7 +160,7 @@ typedef double (binsearchFunc)(double       const x,
 
 /* The binary-search function. Returns such <x> from [<min>, <max>] that
    monotonically increasing function func(x, data) equals <value> within
-   precision <prec>. <dataP> is an arbitary parameter to <func>. */
+   precision <prec>. <dataP> is an arbitrary parameter to <func>. */
 static double
 binsearch(binsearchFunc       func,
           const void  * const dataP,
@@ -299,7 +299,7 @@ typedef struct {
     TupleD *        tupsatP;
         /* saturated color                            */
     double *        intRatioP;
-        /* ratio of orignal and saturated intensities */
+        /* ratio of original and saturated intensities */
 } MaxLogSatInfo;
 
 
@@ -346,7 +346,7 @@ getMaxLogSat(LinSampleInfo * const siP,
 /*  Discarding return value (maximum saturation) because upon completion of
     binsearch() info.tupsatP will contain the saturated color. The target value
     of maximum channel intensity is decreased by PREC in order to avoid
-    overlow. */
+    overflow. */
     binsearch(binsearchMaxLogSat, &info, PREC, 1.0, upperLimit, 1.0 - PREC);
 }
 
@@ -399,11 +399,11 @@ saturateSpectrum(LinSampleInfo * const siP,
     else {
         double const km1 =
             (1.0 - siP->intensity)/(siP->maxval - siP->intensity);
-            /* Maximum saturation factor that keeps maximum layer intesity
+            /* Maximum saturation factor that keeps maximum layer intensity
                within range
             */
         double const km2 = siP->intensity/(siP->intensity - sample[siP->minl]);
-            /* Maximum saturation factor  that keeps minimum layer intesity
+            /* Maximum saturation factor  that keeps minimum layer intensity
                within range
             */
 
diff --git a/editor/pamcut.c b/editor/pamcut.c
index db5b5b3d..6da4fc0c 100644
--- a/editor/pamcut.c
+++ b/editor/pamcut.c
@@ -35,10 +35,10 @@ typedef struct {
 
            If LOCTYPE_NONE: Meaningless
 
-           If LOCTYPE_FROMFAR: Number of colums from the far edge of the image
+           If LOCTYPE_FROMFAR: Number of columns from the far edge of the image
            (right or bottom).  Last column/row is 1.
 
-           If LOCTYPE_FROMNEAR: Number of colums from the near edge of the
+           If LOCTYPE_FROMNEAR: Number of columns from the near edge of the
            image (left or top).  First column/row is 0.
         */
 } Location;
diff --git a/editor/pamlevels.c b/editor/pamlevels.c
index fbbb2c0b..a282751a 100644
--- a/editor/pamlevels.c
+++ b/editor/pamlevels.c
@@ -482,7 +482,7 @@ pamlevels(CmdlineInfo const cmdline) {
 static void
 freeCmdLineInfo(CmdlineInfo cmdline) {
 /*----------------------------------------------------------------------------
-  Free any memory that has been dynamically allcoated in <cmdline>.
+  Free any memory that has been dynamically allocated in <cmdline>.
 -----------------------------------------------------------------------------*/
     TransSet * const xxP = &cmdline.xlats;
 
diff --git a/editor/pnmcrop.c b/editor/pnmcrop.c
index 6ef1c280..5e74190f 100644
--- a/editor/pnmcrop.c
+++ b/editor/pnmcrop.c
@@ -1136,7 +1136,7 @@ extremeCrops(struct CmdlineInfo const cmdline,
         pm_message("Input image has no distinction between "
                    "border and content");
 
-    /* We can't just pick a representive pixel, say top-left corner.
+    /* We can't just pick a representative pixel, say top-left corner.
        If -top and/or -bottom was specified but not -left and -right,
        the output should be one row, not a single pixel.
 
diff --git a/editor/ppmshadow b/editor/ppmshadow
index ae6b1b0f..c07c03b0 100755
--- a/editor/ppmshadow
+++ b/editor/ppmshadow
@@ -89,7 +89,7 @@ sub imageDimensions($) {
 sub backgroundColor($) {
     my ($fileName) = @_;
 #-----------------------------------------------------------------------------
-#  Return the color of the backround of the image in the file named $fileName.
+#  Return the color of the background of the image in the file named $fileName.
 #-----------------------------------------------------------------------------
     # We call the color of the top left pixel the background color.