| 12 |
|
#include <ctype.h> |
| 13 |
|
#include <string.h> |
| 14 |
|
|
| 15 |
+ |
#include "platform.h" |
| 16 |
|
#include "standard.h" |
| 17 |
|
#include "rtprocess.h" /* Windows: must come before color.h */ |
| 18 |
|
#include "view.h" |
| 94 |
|
|
| 95 |
|
extern double movepixel(); |
| 96 |
|
|
| 97 |
+ |
static gethfunc headline; |
| 98 |
|
|
| 99 |
+ |
|
| 100 |
|
main(argc, argv) /* interpolate pictures */ |
| 101 |
|
int argc; |
| 102 |
|
char *argv[]; |
| 329 |
|
} |
| 330 |
|
|
| 331 |
|
|
| 332 |
< |
int |
| 333 |
< |
headline(s) /* process header string */ |
| 334 |
< |
char *s; |
| 332 |
> |
static int |
| 333 |
> |
headline( /* process header string */ |
| 334 |
> |
char *s, |
| 335 |
> |
void *p |
| 336 |
> |
) |
| 337 |
|
{ |
| 338 |
|
char fmt[32]; |
| 339 |
|
|
| 496 |
|
exit(1); |
| 497 |
|
} |
| 498 |
|
if (zfd != -1 && lseek(zfd, |
| 499 |
< |
(off_t)ylim.min*scanlen(&tresolu)*sizeof(float), 0) < 0) |
| 499 |
> |
(off_t)ylim.min*scanlen(&tresolu)*sizeof(float), |
| 500 |
> |
SEEK_SET) < 0) |
| 501 |
|
syserror(zspec); |
| 502 |
|
/* load image */ |
| 503 |
|
for (y = ylim.min; y <= ylim.max; y++) { |
| 765 |
|
for (y = step - 1; y < numscans(&tresolu); y += step) { |
| 766 |
|
if (zfd != -1) { |
| 767 |
|
if (lseek(zfd, (off_t)y*scanlen(&tresolu)*sizeof(float), |
| 768 |
< |
0) < 0) |
| 768 |
> |
SEEK_SET) < 0) |
| 769 |
|
syserror("lseek"); |
| 770 |
|
if (read(zfd, (char *)zline, |
| 771 |
|
scanlen(&tresolu)*sizeof(float)) |