497 |
|
zin = (float *)malloc(scanlen(&tresolu)*sizeof(float)); |
498 |
|
if (zin == NULL) |
499 |
|
syserror(progname); |
500 |
< |
if ((zfd = open(zspec, O_RDONLY)) == -1) { |
500 |
> |
if ((zfd = open_float_depth(zspec, (long)tresolu.xr*tresolu.yr)) < 0) { |
501 |
|
double zvalue; |
502 |
|
int x; |
503 |
|
if (!isflt(zspec) || (zvalue = atof(zspec)) <= 0.0) |
1162 |
|
int rval; |
1163 |
|
char **wp, *cp; |
1164 |
|
|
1165 |
< |
if (PDesc.running) { |
1165 |
> |
if (PDesc.flags & PF_RUNNING) { |
1166 |
|
fprintf(stderr, "%s: too many calculations\n", progname); |
1167 |
|
exit(1); |
1168 |
|
} |
1197 |
|
static void |
1198 |
|
caldone(void) /* done with calculation */ |
1199 |
|
{ |
1200 |
< |
if (!PDesc.running) |
1200 |
> |
if (!(PDesc.flags & PF_RUNNING)) |
1201 |
|
return; |
1202 |
|
clearqueue(); |
1203 |
|
close_process(&PDesc); |