197 |
|
if (ourpict == NULL || ourzbuf == NULL) |
198 |
|
syserror(progname); |
199 |
|
bzero((char *)ourzbuf, hresolu*vresolu*sizeof(float)); |
200 |
+ |
/* new header */ |
201 |
+ |
newheader("RADIANCE", stdout); |
202 |
|
/* get input */ |
203 |
|
for ( ; i < argc; i += 2) |
204 |
|
addpicture(argv[i], argv[i+1]); |
243 |
|
{ |
244 |
|
char fmt[32]; |
245 |
|
|
246 |
< |
if (isformat(s)) { |
247 |
< |
formatval(fmt, s); |
246 |
> |
if (isheadid(s)) |
247 |
> |
return; |
248 |
> |
if (formatval(fmt, s)) { |
249 |
|
wrongformat = strcmp(fmt, COLRFMT); |
250 |
|
return; |
251 |
|
} |
306 |
|
register int x; |
307 |
|
if (!isfloat(zspec) || (zvalue = atof(zspec)) <= 0.0) |
308 |
|
syserror(zspec); |
306 |
– |
exit(1); |
309 |
|
for (x = scanlen(&tresolu); x-- > 0; ) |
310 |
|
zin[x] = zvalue; |
311 |
|
} |
698 |
|
cp = combuf; |
699 |
|
wp = argv; |
700 |
|
for ( ; ; ) { |
701 |
< |
while (isspace(*cp)) cp++; |
702 |
< |
if (!*cp) break; |
703 |
< |
*wp++ = cp; |
704 |
< |
while (!isspace(*cp)) |
705 |
< |
if (!*cp++) goto done; |
706 |
< |
*cp++ = '\0'; |
701 |
> |
while (isspace(*cp)) /* nullify spaces */ |
702 |
> |
*cp++ = '\0'; |
703 |
> |
if (!*cp) /* all done? */ |
704 |
> |
break; |
705 |
> |
*wp++ = cp; /* add argument to list */ |
706 |
> |
while (*++cp && !isspace(*cp)) |
707 |
> |
; |
708 |
|
} |
706 |
– |
done: |
709 |
|
*wp = NULL; |
710 |
|
/* start process */ |
711 |
|
if ((rval = open_process(PDesc, argv)) < 0) |