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

Comparing ray/src/px/x11image.c (file contents):
Revision 2.3 by greg, Mon Dec 23 23:20:09 1991 UTC vs.
Revision 2.4 by greg, Tue Apr 28 09:40:32 1992 UTC

# Line 192 | Line 192 | userr:
192   headline(s)             /* get relevant info from header */
193   char  *s;
194   {
195        static char  *altname[] = {"rview","rpict","pinterp",VIEWSTR,NULL};
196        register char  **an;
195          char  fmt[32];
196  
197          if (isexpos(s))
# Line 201 | Line 199 | char  *s;
199          else if (isformat(s)) {
200                  formatval(fmt, s);
201                  wrongformat = strcmp(fmt, COLRFMT);
202 <        } else
203 <                for (an = altname; *an != NULL; an++)
206 <                        if (!strncmp(*an, s, strlen(*an))) {
207 <                                if (sscanview(&ourview, s+strlen(*an)) > 0)
208 <                                        gotview++;
209 <                                return;
210 <                        }
202 >        } else if (isview(s) && sscanview(&ourview, s) > 0)
203 >                gotview++;
204   }
205  
206  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines