diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-12-31 08:08:29 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-12-31 08:08:29 +0000 |
commit | 31fc573df625b06a5f7b8b8e769e9f35cbfdaf91 (patch) | |
tree | caf153af4ea24150e1f54e77c35b9ee51e727055 /generator/ppmpat.c | |
parent | 2cc04cae07f40a7c58616e4614e88cf0ae8e63c7 (diff) | |
download | netpbm-mirror-31fc573df625b06a5f7b8b8e769e9f35cbfdaf91.tar.gz netpbm-mirror-31fc573df625b06a5f7b8b8e769e9f35cbfdaf91.tar.xz netpbm-mirror-31fc573df625b06a5f7b8b8e769e9f35cbfdaf91.zip |
Release 10.37.0
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@187 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'generator/ppmpat.c')
-rw-r--r-- | generator/ppmpat.c | 54 |
1 files changed, 1 insertions, 53 deletions
diff --git a/generator/ppmpat.c b/generator/ppmpat.c index 343100d5..6034b2db 100644 --- a/generator/ppmpat.c +++ b/generator/ppmpat.c @@ -218,14 +218,8 @@ random_color(pixval const maxval) { #define DARK_THRESH 0.25 -#if __STDC__ static pixel random_bright_color( pixval maxval ) -#else /*__STDC__*/ -static pixel -random_bright_color( maxval ) - pixval maxval; -#endif /*__STDC__*/ { pixel p; @@ -238,14 +232,8 @@ random_bright_color( maxval ) return p; } -#if __STDC__ static pixel random_dark_color( pixval maxval ) -#else /*__STDC__*/ -static pixel -random_dark_color( maxval ) - pixval maxval; -#endif /*__STDC__*/ { pixel p; @@ -313,16 +301,8 @@ gingham2( pixel** pixels, int cols, int rows, pixval maxval ) average_drawproc, &forecolor ); } -#if __STDC__ static void gingham3( pixel** pixels, int cols, int rows, pixval maxval ) -#else /*__STDC__*/ -static void -gingham3( pixels, cols, rows, maxval ) - pixel** pixels; - int cols, rows; - pixval maxval; -#endif /*__STDC__*/ { int colso4, rowso4; pixel backcolor, fore1color, fore2color; @@ -362,16 +342,8 @@ gingham3( pixels, cols, rows, maxval ) average_drawproc, &fore1color ); } -#if __STDC__ static void madras( pixel** pixels, int cols, int rows, pixval maxval ) -#else /*__STDC__*/ -static void -madras( pixels, cols, rows, maxval ) - pixel** pixels; - int cols, rows; - pixval maxval; -#endif /*__STDC__*/ { int cols2, rows2, cols3, rows3, cols12, rows12, cols6a, rows6a, cols6b, rows6b; @@ -493,16 +465,8 @@ madras( pixels, cols, rows, maxval ) cols, rows3, average_drawproc, &fore2color ); } -#if __STDC__ static void tartan( pixel** pixels, int cols, int rows, pixval maxval ) -#else /*__STDC__*/ -static void -tartan( pixels, cols, rows, maxval ) - pixel** pixels; - int cols, rows; - pixval maxval; -#endif /*__STDC__*/ { int cols1, rows1, cols3, rows3, cols10, rows10, cols5a, rows5a, cols5b, rows5b; @@ -579,16 +543,8 @@ tartan( pixels, cols, rows, maxval ) #define MAXPOLES 500 -#if __STDC__ static void poles( pixel** pixels, int cols, int rows, pixval maxval ) -#else /*__STDC__*/ -static void -poles( pixels, cols, rows, maxval ) - pixel** pixels; - int cols, rows; - pixval maxval; -#endif /*__STDC__*/ { int poles, i, xs[MAXPOLES], ys[MAXPOLES], col, row; pixel colors[MAXPOLES]; @@ -730,16 +686,8 @@ sq_assign_colors(int const circlecount, } -#if __STDC__ static void squig( pixel** pixels, int cols, int rows, pixval maxval ) -#else /*__STDC__*/ -static void -squig( pixels, cols, rows, maxval ) - pixel** pixels; - int cols, rows; - pixval maxval; -#endif /*__STDC__*/ { pixel color; int i, j, xc[SQ_POINTS], yc[SQ_POINTS], x0, y0, x1, y1, x2, y2, x3, y3; @@ -1006,7 +954,7 @@ main(int argc, char ** argv) { if ( argn != argc ) pm_usage( usage); - srand( (int) ( time( 0 ) ^ getpid( ) ) ); + srand(pm_randseed()); pixels = ppm_allocarray( cols, rows ); switch ( pattern ) |