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 |
greg |
2.4 |
extern char *fixargv0(); |
23 |
greg |
2.1 |
|
24 |
greg |
2.3 |
#else |
25 |
greg |
2.1 |
#ifdef AMIGA |
26 |
|
|
|
27 |
|
|
#define DIRSEP '/' |
28 |
|
|
#define PATHSEP ';' |
29 |
greg |
2.2 |
#define MAXPATH 128 |
30 |
greg |
2.1 |
#define TEMPLATE "/tmp/rtXXXXXX" |
31 |
|
|
#define TEMPLEN 13 |
32 |
|
|
#define ULIBVAR "RAYPATH" |
33 |
greg |
2.3 |
#ifndef DEFPATH |
34 |
|
|
#define DEFPATH ";/ray/lib" |
35 |
greg |
2.1 |
#endif |
36 |
greg |
2.4 |
#define fixargv0(a0) (a0) |
37 |
greg |
2.1 |
|
38 |
|
|
#else |
39 |
|
|
|
40 |
|
|
#define DIRSEP '/' |
41 |
|
|
#define PATHSEP ':' |
42 |
greg |
2.2 |
#define MAXPATH 256 |
43 |
greg |
2.5 |
#define TEMPLATE "/usr/tmp/rtXXXXXX" |
44 |
greg |
2.6 |
#define TEMPLEN 17 |
45 |
greg |
2.1 |
#define ULIBVAR "RAYPATH" |
46 |
greg |
2.3 |
#ifndef DEFPATH |
47 |
|
|
#define DEFPATH ":/usr/local/lib/ray" |
48 |
greg |
2.1 |
#endif |
49 |
greg |
2.4 |
#define fixargv0(a0) (a0) |
50 |
greg |
2.1 |
|
51 |
greg |
2.3 |
#endif |
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(); |