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

Comparing ray/src/common/fropen.c (file contents):
Revision 2.14 by greg, Tue Aug 26 04:24:26 2003 UTC vs.
Revision 2.16 by greg, Thu Dec 19 16:38:12 2013 UTC

# Line 16 | Line 16 | static const char      RCSid[] = "$Id$";
16  
17  
18   FILE *
19 < frlibopen(fname)                /* find file and open for reading */
20 < register char  *fname;
19 > frlibopen(                      /* find file and open for reading */
20 >        char  *fname
21 > )
22   {
23          FILE  *fp;
24          char  pname[PATH_MAX];
25 <        register char  *sp, *cp;
25 >        char  *sp, *cp;
26  
27          if (fname == NULL)
28                  return(NULL);
29  
30 <        if (ISDIRSEP(fname[0]) || fname[0] == '.')      /* absolute path */
30 >        if (ISABS(fname) || fname[0] == '.')    /* absolute path */
31                  return(fopen(fname, "r"));
32                                                  /* check search path */
33          sp = getrlibpath();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines