about summary refs log tree commit diff
path: root/editor/specialty
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2024-09-07 16:47:31 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2024-09-07 16:47:31 +0000
commit37693f98c95a44079507ccbb7fc51fbab72d6479 (patch)
treef2ec4b95b2a80eb0ea10df218d90e838760315ef /editor/specialty
parentd21bd279be4f70e9cdf4369691dd9e82fadfa5c4 (diff)
downloadnetpbm-mirror-37693f98c95a44079507ccbb7fc51fbab72d6479.tar.gz
netpbm-mirror-37693f98c95a44079507ccbb7fc51fbab72d6479.tar.xz
netpbm-mirror-37693f98c95a44079507ccbb7fc51fbab72d6479.zip
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4934 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor/specialty')
-rw-r--r--editor/specialty/pbmlife.c15
-rw-r--r--editor/specialty/pgmabel.c21
2 files changed, 21 insertions, 15 deletions
diff --git a/editor/specialty/pbmlife.c b/editor/specialty/pbmlife.c
index 03735d58..c1fe8eba 100644
--- a/editor/specialty/pbmlife.c
+++ b/editor/specialty/pbmlife.c
@@ -13,18 +13,16 @@
 #include "pbm.h"
 
 int
-main( argc, argv )
-int argc;
-char* argv[];
-    {
+main(int argc, char * argv []) {
+
     FILE* ifp;
     bit* prevrow;
     bit* thisrow;
     bit* nextrow;
     bit* temprow;
-    register bit* newrow;
+    bit* newrow;
     int rows, cols, row;
-    register int col, count;
+    int col, count;
     int format;
 
 
@@ -111,4 +109,7 @@ char* argv[];
     pm_close( stdout );
 
     exit( 0 );
-    }
+}
+
+
+
diff --git a/editor/specialty/pgmabel.c b/editor/specialty/pgmabel.c
index 3e05be5e..aeed967b 100644
--- a/editor/specialty/pgmabel.c
+++ b/editor/specialty/pgmabel.c
@@ -60,7 +60,10 @@ static double *aldl, *ardl;                /* pointer for weighting factors */
 **      adl   <-  pre-calculated surface coefficient for each segment
 */
 static double
-Sum ( int n, double *xr, int N, double *adl)
+Sum ( int    const n,
+      double const *xr,
+      int    const N,
+      double const *adl)
 {
     int k;
     double result=0.0;
@@ -80,7 +83,9 @@ Sum ( int n, double *xr, int N, double *adl)
 **      r     <-  radial position of the center of the surface
 */
 static double
-dr ( int R, double r,  int N)
+dr ( int    const R,
+     double const r,
+     int    const N)
 {
     double a;
     double b;
@@ -96,9 +101,11 @@ dr ( int R, double r,  int N)
 **        adl  <-  array with pre-calculated weighting factors
 */
 static void
-abel ( float *y, int N, double *adl)
+abel ( float  * y,
+       int      const N,
+       double * const adl)
 {
-    register int n;
+    int n;
     double *rho, *rhop;       /* results and new index                       */
 
     MALLOCARRAY(rho, N);
@@ -155,10 +162,8 @@ help()
 /* ----------------------------------------------------------------------------
 ** main program
 */
-int main( argc, argv )
-    int    argc;
-    char*  argv[];
-{
+int main(int argc, char * argv[] ) {
+
     FILE*  ifp;
     gray maxval;                            /* maximum gray-level            */
     gray* grayorig;