ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rad.c
(Generate patch)

Comparing ray/src/util/rad.c (file contents):
Revision 2.17 by greg, Mon Aug 9 17:50:09 1993 UTC vs.
Revision 2.18 by greg, Fri Aug 13 09:19:30 1993 UTC

# Line 971 | Line 971 | int    n;
971   char    *vn;            /* returned view name */
972   {
973          register char   *mv = NULL;
974 +        register int    i;
975  
976          if (viewselect != NULL) {               /* command-line selected */
977                  if (n)                          /* only do one */
# Line 993 | Line 994 | char   *vn;            /* returned view name */
994          }
995          mv = nvalue(vv+VIEW, n);                /* use view n */
996          if (vn != NULL & mv != NULL) {
997 <                if (*mv != '-')
998 <                        while (*mv && !isspace(*mv))
999 <                                *vn++ = *mv++;
997 >                if (mv[i=0] != '-')
998 >                        while (mv[i] && !isspace(mv[i]))
999 >                                *vn++ = mv[i++];
1000                  *vn = '\0';
1001          }
1002          return(specview(mv));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines