31 |
|
|
32 |
|
int dofilter = 0; /* filter through pfilt first? */ |
33 |
|
|
34 |
+ |
static int printp(char *fname); |
35 |
+ |
static void plotscan(COLR scan[], int len, int y); |
36 |
+ |
static int colbit(COLR col, int x, int s); |
37 |
|
|
38 |
< |
main(argc, argv) |
39 |
< |
int argc; |
40 |
< |
char *argv[]; |
38 |
> |
|
39 |
> |
int |
40 |
> |
main( |
41 |
> |
int argc, |
42 |
> |
char *argv[] |
43 |
> |
) |
44 |
|
{ |
45 |
|
int i, status = 0; |
46 |
|
SET_DEFAULT_BINARY(); |
59 |
|
} |
60 |
|
|
61 |
|
|
62 |
< |
printp(fname) /* print a picture */ |
63 |
< |
char *fname; |
62 |
> |
static int |
63 |
> |
printp( /* print a picture */ |
64 |
> |
char *fname |
65 |
> |
) |
66 |
|
{ |
67 |
|
char buf[PATH_MAX]; |
68 |
|
FILE *input; |
124 |
|
} |
125 |
|
|
126 |
|
|
127 |
< |
plotscan(scan, len, y) /* plot a scanline */ |
128 |
< |
COLR scan[]; |
129 |
< |
int len; |
130 |
< |
int y; |
127 |
> |
static void |
128 |
> |
plotscan( /* plot a scanline */ |
129 |
> |
COLR scan[], |
130 |
> |
int len, |
131 |
> |
int y |
132 |
> |
) |
133 |
|
{ |
134 |
|
int bpos; |
135 |
|
register long c; |
171 |
|
} |
172 |
|
|
173 |
|
|
174 |
< |
colbit(col, x, s) /* determine bit value for primary at x */ |
175 |
< |
COLR col; |
176 |
< |
register int x; |
177 |
< |
int s; |
174 |
> |
static int |
175 |
> |
colbit( /* determine bit value for primary at x */ |
176 |
> |
COLR col, |
177 |
> |
register int x, |
178 |
> |
int s |
179 |
> |
) |
180 |
|
{ |
181 |
|
static int cerr[NCOLS][3]; |
182 |
|
static int err[3]; |