ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/paths.h
Revision: 2.3
Committed: Mon Sep 21 12:02:07 1992 UTC (31 years, 7 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 2.2: +9 -12 lines
Log Message:
Changes for PC port

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 MSDOS
10    
11 greg 2.2 #define DIRSEP '/'
12     #define ISDIRSEP(c) ((c)=='/' || (c)=='\\')
13     #define CASEDIRSEP case '/': case '\\'
14 greg 2.1 #define PATHSEP ';'
15 greg 2.2 #define MAXPATH 128
16 greg 2.3 #define TEMPLATE "c:\\tmp\\rtXXXXXX"
17 greg 2.1 #define TEMPLEN 15
18     #define ULIBVAR "RAYPATH"
19 greg 2.3 #ifndef DEFPATH
20     #define DEFPATH ";c:/ray/lib"
21 greg 2.1 #endif
22    
23 greg 2.3 #else
24 greg 2.1 #ifdef AMIGA
25    
26     #define DIRSEP '/'
27     #define PATHSEP ';'
28 greg 2.2 #define MAXPATH 128
29 greg 2.1 #define TEMPLATE "/tmp/rtXXXXXX"
30     #define TEMPLEN 13
31     #define ULIBVAR "RAYPATH"
32 greg 2.3 #ifndef DEFPATH
33     #define DEFPATH ";/ray/lib"
34 greg 2.1 #endif
35    
36     #else
37    
38     #define DIRSEP '/'
39     #define PATHSEP ':'
40 greg 2.2 #define MAXPATH 256
41 greg 2.1 #define TEMPLATE "/tmp/rtXXXXXX"
42     #define TEMPLEN 13
43     #define ULIBVAR "RAYPATH"
44 greg 2.3 #ifndef DEFPATH
45     #define DEFPATH ":/usr/local/lib/ray"
46 greg 2.1 #endif
47    
48 greg 2.3 #endif
49 greg 2.2 #endif
50    
51     #ifndef ISDIRSEP
52     #define ISDIRSEP(c) ((c)==DIRSEP)
53     #endif
54     #ifndef CASEDIRSEP
55     #define CASEDIRSEP case DIRSEP
56 greg 2.1 #endif
57    
58     extern char *mktemp(), *getenv();