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

# Content
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 #define DIRSEP '/'
14 #define ISDIRSEP(c) ((c)=='/' || (c)=='\\')
15 #define CASEDIRSEP case '/': case '\\'
16 #define PATHSEP ';'
17 #define MAXPATH 128
18 #define TEMPLATE "c:/tmp/rtXXXXXX"
19 #define TEMPLEN 15
20 #define ULIBVAR "RAYPATH"
21 #ifndef DEFPATH
22 #define DEFPATH ";c:/ray/lib"
23 #endif
24
25 #endif
26 #ifdef AMIGA
27
28 #define DIRSEP '/'
29 #define PATHSEP ';'
30 #define MAXPATH 128
31 #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 #define MAXPATH 256
45 #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 #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();