45 |
|
double scalef = 0.; /* linear scaling factor */ |
46 |
|
|
47 |
|
static gethfunc headline; |
48 |
+ |
static void getahead(void); |
49 |
+ |
static void mapimage(void); |
50 |
+ |
static void getfovimg(void); |
51 |
+ |
static void check2do(void); |
52 |
|
|
53 |
|
|
54 |
< |
main(argc, argv) |
55 |
< |
int argc; |
56 |
< |
char *argv[]; |
54 |
> |
|
55 |
> |
int |
56 |
> |
main( |
57 |
> |
int argc, |
58 |
> |
char *argv[] |
59 |
> |
) |
60 |
|
{ |
61 |
|
static RGBPRIMS outprimS; |
62 |
|
int i; |
194 |
|
fprintf(stderr, "Usage: %s [-{h|a|v|s|c|l|w}[+-]][-I|-i ffrac][-e ev][-p xr yr xg yg xb yb xw yw|-f mbf.cal|-m rgb.cwp][-u Ldmax][-d Lddyn][-x mapfile] inpic [outpic]\n", |
195 |
|
progname); |
196 |
|
exit(1); |
197 |
+ |
return 1; /* pro forma return */ |
198 |
|
#undef bool |
199 |
|
} |
200 |
|
|
201 |
|
|
202 |
< |
syserror(s) /* report system error and exit */ |
203 |
< |
char *s; |
202 |
> |
extern void |
203 |
> |
syserror( /* report system error and exit */ |
204 |
> |
char *s |
205 |
> |
) |
206 |
|
{ |
207 |
|
fprintf(stderr, "%s: ", progname); |
208 |
|
perror(s); |
242 |
|
} |
243 |
|
|
244 |
|
|
245 |
< |
getahead() /* load picture header */ |
245 |
> |
static void |
246 |
> |
getahead(void) /* load picture header */ |
247 |
|
{ |
248 |
|
char *err; |
249 |
|
|
281 |
|
} |
282 |
|
|
283 |
|
|
284 |
< |
mapimage() /* map picture and send to stdout */ |
284 |
> |
static void |
285 |
> |
mapimage(void) /* map picture and send to stdout */ |
286 |
|
{ |
287 |
|
COLOR *scan; |
288 |
|
|
322 |
|
} |
323 |
|
|
324 |
|
|
325 |
< |
getfovimg() /* load foveal sampled image */ |
325 |
> |
static void |
326 |
> |
getfovimg(void) /* load foveal sampled image */ |
327 |
|
{ |
328 |
|
char combuf[PATH_MAX]; |
329 |
|
FILE *fp; |
358 |
|
} |
359 |
|
|
360 |
|
|
361 |
< |
check2do() /* check histogram to see what isn't worth doing */ |
361 |
> |
static void |
362 |
> |
check2do(void) /* check histogram to see what isn't worth doing */ |
363 |
|
{ |
364 |
|
double sum; |
365 |
|
double b, l; |