1 |
< |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
1 |
> |
/* Copyright (c) 1999 Silicon Graphics, Inc. */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ SGI"; |
1048 |
|
} |
1049 |
|
#endif |
1050 |
|
copystruct(&vwr, &stdview); |
1051 |
< |
cp = vopts; /* get -vf files first */ |
1051 |
> |
sscanview(&vwr, cp=vopts); /* set initial options */ |
1052 |
|
while ((cp = strstr(cp, "-vf ")) != NULL && |
1053 |
< |
*atos(buf, sizeof(buf), cp += 4)) |
1054 |
< |
viewfile(buf, &vwr, NULL); |
1055 |
< |
sscanview(&vwr, vopts); /* get the rest */ |
1053 |
> |
*atos(buf, sizeof(buf), cp += 4)) { |
1054 |
> |
viewfile(buf, &vwr, NULL); /* load -vf file */ |
1055 |
> |
sscanview(&vwr, cp); /* reset tail */ |
1056 |
> |
} |
1057 |
|
fputs(VIEWSTR, stdout); |
1058 |
|
fprintview(&vwr, stdout); /* print full spec. */ |
1059 |
|
fputc('\n', stdout); |