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

Comparing ray/src/common/paths.h (file contents):
Revision 2.1 by greg, Tue Sep 8 09:08:02 1992 UTC vs.
Revision 2.5 by greg, Wed Dec 9 12:59:45 1992 UTC

# Line 6 | Line 6
6   * Definitions for paths on different machines
7   */
8  
9 #ifdef NIX
10
9   #ifdef MSDOS
10  
11 < #define DIRSEP          '\\'
11 > #define DIRSEP          '/'
12 > #define ISDIRSEP(c)     ((c)=='/' || (c)=='\\')
13 > #define CASEDIRSEP      case '/': case '\\'
14   #define PATHSEP         ';'
15 + #define MAXPATH         128
16   #define TEMPLATE        "c:\\tmp\\rtXXXXXX"
17   #define TEMPLEN         15
18   #define ULIBVAR         "RAYPATH"
19 < #ifndef DEFPATH
20 < #define DEFPATH         ";\\ray\\lib"
19 > #ifndef DEFPATH
20 > #define DEFPATH         ";c:/ray/lib"
21   #endif
22 + extern char  *fixargv0();
23  
24 < #endif
24 > #else
25   #ifdef AMIGA
26  
27   #define DIRSEP          '/'
28   #define PATHSEP         ';'
29 + #define MAXPATH         128
30   #define TEMPLATE        "/tmp/rtXXXXXX"
31   #define TEMPLEN         13
32   #define ULIBVAR         "RAYPATH"
33 < #ifndef DEFPATH
34 < #define DEFPATH         ";/ray/lib"
33 > #ifndef DEFPATH
34 > #define DEFPATH         ";/ray/lib"
35   #endif
36 + #define  fixargv0(a0)   (a0)
37  
34 #endif
35
38   #else
39  
40   #define DIRSEP          '/'
41   #define PATHSEP         ':'
42 < #define TEMPLATE        "/tmp/rtXXXXXX"
42 > #define MAXPATH         256
43 > #define TEMPLATE        "/usr/tmp/rtXXXXXX"
44   #define TEMPLEN         13
45   #define ULIBVAR         "RAYPATH"
46 < #ifndef DEFPATH
47 < #define DEFPATH         ":/usr/local/lib/ray"
46 > #ifndef DEFPATH
47 > #define DEFPATH         ":/usr/local/lib/ray"
48   #endif
49 + #define  fixargv0(a0)   (a0)
50  
51 + #endif
52 + #endif
53 +
54 + #ifndef ISDIRSEP
55 + #define ISDIRSEP(c)     ((c)==DIRSEP)
56 + #endif
57 + #ifndef CASEDIRSEP
58 + #define CASEDIRSEP      case DIRSEP
59   #endif
60  
61   extern char  *mktemp(), *getenv();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines