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

Comparing ray/src/px/pinterp.c (file contents):
Revision 2.4 by greg, Thu Mar 26 13:03:34 1992 UTC vs.
Revision 2.6 by greg, Tue May 26 15:23:09 1992 UTC

# Line 161 | Line 161 | char   *argv[];
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 */
# Line 243 | Line 245 | userr:
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)) {
# Line 259 | Line 259 | char   *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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines