25 |
|
|
26 |
|
int dofilter = 0; /* filter through pfilt first? */ |
27 |
|
|
28 |
+ |
static int printp(char *fname); |
29 |
+ |
static void plotscan(COLR scan[], int len, int y); |
30 |
+ |
static int bit(COLR col, int x); |
31 |
|
|
32 |
< |
main(argc, argv) |
33 |
< |
int argc; |
34 |
< |
char *argv[]; |
32 |
> |
|
33 |
> |
int |
34 |
> |
main( |
35 |
> |
int argc, |
36 |
> |
char *argv[] |
37 |
> |
) |
38 |
|
{ |
39 |
|
int i, status = 0; |
40 |
|
SET_DEFAULT_BINARY(); |
53 |
|
} |
54 |
|
|
55 |
|
|
56 |
< |
printp(fname) /* print a picture */ |
57 |
< |
char *fname; |
56 |
> |
static int |
57 |
> |
printp( /* print a picture */ |
58 |
> |
char *fname |
59 |
> |
) |
60 |
|
{ |
61 |
|
char buf[PATH_MAX]; |
62 |
|
FILE *input; |
118 |
|
} |
119 |
|
|
120 |
|
|
121 |
< |
plotscan(scan, len, y) /* plot a scanline */ |
122 |
< |
COLR scan[]; |
123 |
< |
int len; |
124 |
< |
int y; |
121 |
> |
static void |
122 |
> |
plotscan( /* plot a scanline */ |
123 |
> |
COLR scan[], |
124 |
> |
int len, |
125 |
> |
int y |
126 |
> |
) |
127 |
|
{ |
128 |
|
int bpos, start, end; |
129 |
|
register long c; |
170 |
|
} |
171 |
|
|
172 |
|
|
173 |
< |
bit(col, x) /* determine bit value for pixel at x */ |
174 |
< |
COLR col; |
175 |
< |
register int x; |
173 |
> |
static int |
174 |
> |
bit( /* determine bit value for pixel at x */ |
175 |
> |
COLR col, |
176 |
> |
register int x |
177 |
> |
) |
178 |
|
{ |
179 |
|
static int cerr[NCOLS]; |
180 |
|
static int err; |