85 |
|
char *progname; |
86 |
|
|
87 |
|
static gethfunc headline; |
88 |
< |
static double rgb_bright(COLOR clr); |
89 |
< |
static double xyz_bright(COLOR clr); |
88 |
> |
static brightfunc_t rgb_bright; |
89 |
> |
static brightfunc_t xyz_bright; |
90 |
|
static void copyfile(FILE *in, FILE *out); |
91 |
|
static void pass1(FILE *in); |
92 |
|
static void pass2(FILE *in); |
340 |
|
} |
341 |
|
|
342 |
|
|
343 |
< |
double (*ourbright)() = rgb_bright; |
343 |
> |
brightfunc_t *ourbright = rgb_bright; |
344 |
|
|
345 |
– |
|
345 |
|
static int |
346 |
|
headline( /* process line from header */ |
347 |
|
char *s, |
371 |
|
|
372 |
|
static void |
373 |
|
copyfile( /* copy a file */ |
374 |
< |
register FILE *in, |
375 |
< |
register FILE *out |
374 |
> |
FILE *in, |
375 |
> |
FILE *out |
376 |
|
) |
377 |
|
{ |
378 |
< |
register int c; |
378 |
> |
int c; |
379 |
|
|
380 |
|
while ((c = getc(in)) != EOF) |
381 |
|
putc(c, out); |
480 |
|
{ |
481 |
|
COLOR ctmp; |
482 |
|
double d; |
483 |
< |
register int i; |
483 |
> |
int i; |
484 |
|
|
485 |
|
xbrad = xres/ncols/2 + 1; |
486 |
|
ybrad = yres/nrows/2 + 1; |
561 |
|
static int nextrow = 0; |
562 |
|
COLOR ctmp; |
563 |
|
int ybot; |
564 |
< |
register int c; |
564 |
> |
int c; |
565 |
|
/* average input scanlines */ |
566 |
|
while (nextrow <= r+orad && nextrow < nrows) { |
567 |
|
ybot = (nextrow+.5)*yres/nrows; |
584 |
|
static void |
585 |
|
scan2flush(void) /* flush output buffer */ |
586 |
|
{ |
587 |
< |
register int r; |
587 |
> |
int r; |
588 |
|
|
589 |
|
for (r = nrows-orad; r < nrows; r++) |
590 |
|
if (fwritescan(scoutbar[r%obarsize], ncols, stdout) < 0) |