| 1 |
– |
/* Copyright (c) 1986 Regents of the University of California */ |
| 2 |
– |
|
| 1 |
|
#ifndef lint |
| 2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
| 2 |
> |
static const char RCSid[] = "$Id$"; |
| 3 |
|
#endif |
| 6 |
– |
|
| 4 |
|
/* |
| 5 |
|
* greyscale.c - program to produce grey test levels. |
| 6 |
|
* |
| 16 |
|
|
| 17 |
|
double minlog = 0.0; /* minimum for log scale (0 == linear) */ |
| 18 |
|
|
| 19 |
+ |
static void greyscale(COLOR col0); |
| 20 |
+ |
static void printargs(int ac, char **av, FILE *fp); |
| 21 |
|
|
| 22 |
< |
main(argc, argv) |
| 23 |
< |
int argc; |
| 24 |
< |
char *argv[]; |
| 22 |
> |
|
| 23 |
> |
int |
| 24 |
> |
main( |
| 25 |
> |
int argc, |
| 26 |
> |
char *argv[] |
| 27 |
> |
) |
| 28 |
|
{ |
| 29 |
|
COLOR col; |
| 30 |
|
double d1,d2,d3; |
| 58 |
|
printf("\n"); |
| 59 |
|
printf("-Y 512 +X 512\n"); |
| 60 |
|
greyscale(col); |
| 61 |
+ |
return 0; |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
|
| 65 |
< |
greyscale(col0) /* output our grey scale */ |
| 66 |
< |
COLOR col0; |
| 65 |
> |
static void |
| 66 |
> |
greyscale( /* output our grey scale */ |
| 67 |
> |
COLOR col0 |
| 68 |
> |
) |
| 69 |
|
{ |
| 65 |
– |
double exp(); |
| 70 |
|
COLOR col1, col2, scanline[512]; |
| 71 |
|
double x; |
| 72 |
|
int j; |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
|
| 113 |
< |
printargs(ac, av, fp) /* print arguments to a file */ |
| 114 |
< |
int ac; |
| 115 |
< |
char **av; |
| 116 |
< |
FILE *fp; |
| 113 |
> |
static void |
| 114 |
> |
printargs( /* print arguments to a file */ |
| 115 |
> |
int ac, |
| 116 |
> |
char **av, |
| 117 |
> |
FILE *fp |
| 118 |
> |
) |
| 119 |
|
{ |
| 120 |
|
while (ac-- > 0) { |
| 121 |
|
fputs(*av++, fp); |