34 |
|
|
35 |
|
#define PACKSIZ 256 /* max. calculation packet size */ |
36 |
|
|
37 |
< |
#define RTCOM "rtrace -h- -ovl -fff" |
37 |
> |
#define RTCOM "rtrace -h- -ovl -fff " |
38 |
|
|
39 |
|
#define ABS(x) ((x)>0?(x):-(x)) |
40 |
|
|
161 |
|
vresolu = atoi(argv[++i]); |
162 |
|
break; |
163 |
|
case 'p': /* pixel aspect */ |
164 |
< |
check(2,"f"); |
164 |
> |
if (argv[i][2] != 'a') |
165 |
> |
goto badopt; |
166 |
> |
check(3,"f"); |
167 |
|
pixaspect = atof(argv[++i]); |
168 |
|
break; |
169 |
|
case 'v': /* view file */ |
245 |
|
headline(s) /* process header string */ |
246 |
|
char *s; |
247 |
|
{ |
246 |
– |
static char *altname[] = {VIEWSTR,"rpict","rview","pinterp",NULL}; |
247 |
– |
register char **an; |
248 |
|
char fmt[32]; |
249 |
|
|
250 |
|
if (isformat(s)) { |
259 |
|
theirexp *= exposval(s); |
260 |
|
return; |
261 |
|
} |
262 |
< |
for (an = altname; *an != NULL; an++) |
263 |
< |
if (!strncmp(*an, s, strlen(*an))) { |
264 |
< |
if (sscanview(&theirview, s+strlen(*an)) > 0) |
265 |
< |
gotview++; |
266 |
< |
break; |
267 |
< |
} |
262 |
> |
if (isview(s) && sscanview(&theirview, s) > 0) |
263 |
> |
gotview++; |
264 |
|
} |
265 |
|
|
266 |
|
|