ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/paths.h
Revision: 2.2
Committed: Tue Sep 8 10:04:36 1992 UTC (31 years, 8 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 2.1: +15 -3 lines
Log Message:
modified testing of DIRSEP to allow multiple possible values

File Contents

# User Rev Content
1 greg 2.1 /* Copyright (c) 1992 Regents of the University of California */
2    
3     /* SCCSid "$SunId$ LBL" */
4    
5     /*
6     * Definitions for paths on different machines
7     */
8    
9     #ifdef NIX
10    
11     #ifdef MSDOS
12    
13 greg 2.2 #define DIRSEP '/'
14     #define ISDIRSEP(c) ((c)=='/' || (c)=='\\')
15     #define CASEDIRSEP case '/': case '\\'
16 greg 2.1 #define PATHSEP ';'
17 greg 2.2 #define MAXPATH 128
18     #define TEMPLATE "c:/tmp/rtXXXXXX"
19 greg 2.1 #define TEMPLEN 15
20     #define ULIBVAR "RAYPATH"
21     #ifndef DEFPATH
22 greg 2.2 #define DEFPATH ";c:/ray/lib"
23 greg 2.1 #endif
24    
25     #endif
26     #ifdef AMIGA
27    
28     #define DIRSEP '/'
29     #define PATHSEP ';'
30 greg 2.2 #define MAXPATH 128
31 greg 2.1 #define TEMPLATE "/tmp/rtXXXXXX"
32     #define TEMPLEN 13
33     #define ULIBVAR "RAYPATH"
34     #ifndef DEFPATH
35     #define DEFPATH ";/ray/lib"
36     #endif
37    
38     #endif
39    
40     #else
41    
42     #define DIRSEP '/'
43     #define PATHSEP ':'
44 greg 2.2 #define MAXPATH 256
45 greg 2.1 #define TEMPLATE "/tmp/rtXXXXXX"
46     #define TEMPLEN 13
47     #define ULIBVAR "RAYPATH"
48     #ifndef DEFPATH
49     #define DEFPATH ":/usr/local/lib/ray"
50     #endif
51    
52 greg 2.2 #endif
53    
54     #ifndef ISDIRSEP
55     #define ISDIRSEP(c) ((c)==DIRSEP)
56     #endif
57     #ifndef CASEDIRSEP
58     #define CASEDIRSEP case DIRSEP
59 greg 2.1 #endif
60    
61     extern char *mktemp(), *getenv();