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

Comparing ray/src/common/getpath.c (file contents):
Revision 2.22 by greg, Mon Nov 22 18:23:56 2021 UTC vs.
Revision 2.24 by greg, Sat Jun 7 05:09:45 2025 UTC

# Line 4 | Line 4 | static const char      RCSid[] = "$Id$";
4   /*
5   *  getpath.c - function to search for file in a list of directories
6   *
7 < *  External symbols declared in rtio.h
7 > *  External symbols declared in paths.h
8   */
9  
10   #include "copyright.h"
11  
12   #include  <ctype.h>
13  
14 #include  "rtio.h"
14   #include  "paths.h"
15  
16  
# Line 101 | Line 100 | getpath(       /* expand fname, return full path */
100          char  *cp;
101          char fname[PATH_MAX];
102  
103 <        if (!fname | (fname == pname))
104 <                return(fname);
103 >        if (!ffname | (ffname == fname))
104 >                return(ffname);
105  
106          /* if we have a dot in the string, we assume there is a file name
107             extension present */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines