1 |
– |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* prot.c - program to rotate picture file 90 degrees clockwise. |
6 |
|
* |
11 |
|
|
12 |
|
#include "color.h" |
13 |
|
|
14 |
+ |
#include <time.h> |
15 |
+ |
|
16 |
|
#include "resolu.h" |
17 |
|
|
18 |
|
int order; /* input scanline order */ |
21 |
|
int correctorder = 0; /* order correction? */ |
22 |
|
int ccw = 0; /* rotate CCW? */ |
23 |
|
|
24 |
< |
#ifdef BIGMEM |
26 |
< |
char buf[1<<22]; /* output buffer */ |
27 |
< |
#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 */ |
150 |
|
exit(1); |
151 |
|
} |
152 |
|
} |
153 |
< |
free((char *)inln); |
153 |
> |
free((void *)inln); |
154 |
|
} |
155 |
|
|
156 |
|
|
186 |
|
exit(1); |
187 |
|
} |
188 |
|
} |
189 |
< |
free((char *)inln); |
189 |
> |
free((void *)inln); |
190 |
|
} |