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

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