21 |
|
int correctorder = 0; /* order correction? */ |
22 |
|
int ccw = 0; /* rotate CCW? */ |
23 |
|
|
24 |
< |
#ifdef BIGMEM |
25 |
< |
char buf[1<<22]; /* output buffer */ |
26 |
< |
#else |
24 |
> |
#ifdef SMLMEM |
25 |
|
char buf[1<<20]; /* output buffer */ |
26 |
+ |
#else |
27 |
+ |
char buf[1<<22]; /* output buffer */ |
28 |
|
#endif |
29 |
|
|
30 |
|
int nrows; /* number of rows output at once */ |
37 |
|
{0,XDECR}, {XDECR,XDECR|YDECR}, {XDECR|YDECR,YDECR}, {YDECR,0} |
38 |
|
}; |
39 |
|
|
40 |
+ |
static int neworder(void); |
41 |
+ |
static void rotatecw(FILE *fp); |
42 |
+ |
static void rotateccw(FILE *fp); |
43 |
|
|
44 |
< |
int |
45 |
< |
neworder() /* return corrected order */ |
44 |
> |
|
45 |
> |
|
46 |
> |
static int |
47 |
> |
neworder(void) /* return corrected order */ |
48 |
|
{ |
49 |
|
register int i; |
50 |
|
|
57 |
|
exit(2); |
58 |
|
} |
59 |
|
|
60 |
< |
|
61 |
< |
main(argc, argv) |
62 |
< |
int argc; |
63 |
< |
char *argv[]; |
60 |
> |
int |
61 |
> |
main( |
62 |
> |
int argc, |
63 |
> |
char *argv[] |
64 |
> |
) |
65 |
|
{ |
66 |
|
static char picfmt[LPICFMT+1] = PICFMT; |
67 |
|
int rval; |
124 |
|
} |
125 |
|
|
126 |
|
|
127 |
< |
rotatecw(fp) /* rotate picture clockwise */ |
128 |
< |
FILE *fp; |
127 |
> |
static void |
128 |
> |
rotatecw( /* rotate picture clockwise */ |
129 |
> |
FILE *fp |
130 |
> |
) |
131 |
|
{ |
132 |
|
register COLR *inln; |
133 |
|
register int xoff, inx, iny; |
162 |
|
} |
163 |
|
|
164 |
|
|
165 |
< |
rotateccw(fp) /* rotate picture counter-clockwise */ |
166 |
< |
FILE *fp; |
165 |
> |
static void |
166 |
> |
rotateccw( /* rotate picture counter-clockwise */ |
167 |
> |
FILE *fp |
168 |
> |
) |
169 |
|
{ |
170 |
|
register COLR *inln; |
171 |
|
register int xoff, inx, iny; |