diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-10-14 16:25:29 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-10-14 16:25:29 +0000 |
commit | 545f6240cf70e7b26335c8a42e095fbc86888648 (patch) | |
tree | 5a4d608ecbb3c31011b879fd3784ab0e1638616b /lib | |
parent | 9eba0808f20753cd15887b057f0d0fb20e663c03 (diff) | |
download | netpbm-mirror-545f6240cf70e7b26335c8a42e095fbc86888648.tar.gz netpbm-mirror-545f6240cf70e7b26335c8a42e095fbc86888648.tar.xz netpbm-mirror-545f6240cf70e7b26335c8a42e095fbc86888648.zip |
Eliminate K-R function declarations
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@84 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libpnm3.c | 46 | ||||
-rw-r--r-- | lib/libppmcmap.c | 8 | ||||
-rw-r--r-- | lib/libppmd.c | 10 |
3 files changed, 0 insertions, 64 deletions
diff --git a/lib/libpnm3.c b/lib/libpnm3.c index c9c9a1b0..bc55ae3e 100644 --- a/lib/libpnm3.c +++ b/lib/libpnm3.c @@ -21,16 +21,8 @@ #include "pbm.h" #include "libpbm.h" -#if __STDC__ xel pnm_backgroundxel( xel** xels, int cols, int rows, xelval maxval, int format ) -#else /*__STDC__*/ -xel -pnm_backgroundxel( xels, cols, rows, maxval, format ) - xel** xels; - int cols, rows, format; - xelval maxval; -#endif /*__STDC__*/ { xel bgxel, ul, ur, ll, lr; @@ -93,16 +85,8 @@ pnm_backgroundxel( xels, cols, rows, maxval, format ) return bgxel; } -#if __STDC__ xel pnm_backgroundxelrow( xel* xelrow, int cols, xelval maxval, int format ) -#else /*__STDC__*/ -xel -pnm_backgroundxelrow( xelrow, cols, maxval, format ) - xel* xelrow; - int cols, format; - xelval maxval; -#endif /*__STDC__*/ { xel bgxel, l, r; @@ -158,15 +142,8 @@ pnm_backgroundxelrow( xelrow, cols, maxval, format ) return bgxel; } -#if __STDC__ xel pnm_whitexel( xelval maxval, int format ) -#else /*__STDC__*/ -xel -pnm_whitexel( maxval, format ) - xelval maxval; - int format; -#endif /*__STDC__*/ { xel x; @@ -191,15 +168,8 @@ pnm_whitexel( maxval, format ) return x; } -#if __STDC__ xel pnm_blackxel( xelval maxval, int format ) -#else /*__STDC__*/ -xel -pnm_blackxel( maxval, format ) - xelval maxval; - int format; -#endif /*__STDC__*/ { xel x; @@ -252,16 +222,8 @@ pnm_invertxel(xel* const xP, -#if __STDC__ void pnm_promoteformat( xel** xels, int cols, int rows, xelval maxval, int format, xelval newmaxval, int newformat ) -#else /*__STDC__*/ -void -pnm_promoteformat( xels, cols, rows, maxval, format, newmaxval, newformat ) - xel** xels; - xelval maxval, newmaxval; - int cols, rows, format, newformat; -#endif /*__STDC__*/ { int row; @@ -270,16 +232,8 @@ pnm_promoteformat( xels, cols, rows, maxval, format, newmaxval, newformat ) xels[row], cols, maxval, format, newmaxval, newformat ); } -#if __STDC__ void pnm_promoteformatrow( xel* xelrow, int cols, xelval maxval, int format, xelval newmaxval, int newformat ) -#else /*__STDC__*/ -void -pnm_promoteformatrow( xelrow, cols, maxval, format, newmaxval, newformat ) - xel* xelrow; - xelval maxval, newmaxval; - int cols, format, newformat; -#endif /*__STDC__*/ { register int col; register xel* xP; diff --git a/lib/libppmcmap.c b/lib/libppmcmap.c index c1243cb6..954488d7 100644 --- a/lib/libppmcmap.c +++ b/lib/libppmcmap.c @@ -774,15 +774,7 @@ ppm_findclosestcolor(const pixel * const colormap, void -#if __STDC__ ppm_colorrowtomapfile(FILE *ofp, pixel *colormap, int ncolors, pixval maxval) -#else -ppm_colorrowtomapfile(ofp, colormap, ncolors, maxval) - FILE *ofp; - pixel *colormap; - int ncolors; - pixval maxval; -#endif { int i; diff --git a/lib/libppmd.c b/lib/libppmd.c index ac8b6dee..a6ff0059 100644 --- a/lib/libppmd.c +++ b/lib/libppmd.c @@ -941,12 +941,7 @@ static int extleft, exttop, extright, extbottom; /* To accumulate extents */ /* ISIN -- Return sine of an angle in integral degrees. The value returned is 65536 times the sine. */ -#if __STDC__ static long isin(int deg) -#else - static long isin(deg) - int deg; -#endif { /* Domain reduce to 0 to 360 degrees. */ @@ -971,12 +966,7 @@ static long isin(int deg) /* ICOS -- Return cosine of an angle in integral degrees. The value returned is 65536 times the cosine. */ -#if __STDC__ static long icos(int deg) -#else - static long icos(deg) - int deg; -#endif { return isin(deg + 90); } |