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

Comparing ray/src/common/image.c (file contents):
Revision 2.3 by greg, Tue Apr 28 09:36:42 1992 UTC vs.
Revision 2.4 by greg, Tue Sep 8 09:09:20 1992 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1991 Regents of the University of California */
1 > /* Copyright (c) 1992 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 16 | Line 16 | static char SCCSid[] = "$SunId$ LBL";
16  
17   #include  "resolu.h"
18  
19 + #include  "paths.h"
20 +
21   VIEW  stdview = STDVIEW;                /* default view parameters */
22  
23  
# Line 382 | Line 384 | char  *s;
384          register char  **an;
385                                          /* add program name to list */
386          if (altname[0] == NULL)
387 <                if ((cp = rindex(progname, '/')) != NULL)
387 >                if ((cp = rindex(progname, DIRSEP)) != NULL)
388                          altname[0] = cp+1;
389                  else
390                          altname[0] = progname;
# Line 390 | Line 392 | char  *s;
392          cp = s;
393          while (*cp && *cp != ' ')
394                  cp++;
395 <        while (cp > s && cp[-1] != '/')
395 >        while (cp > s && cp[-1] != DIRSEP)
396                  cp--;
397          for (an = altname; *an != NULL; an++)
398                  if (!strncmp(*an, cp, strlen(*an)))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines