]>
Commit | Line | Data |
---|---|---|
885824d3 | 1 | /* |
2 | ** Copyright (c) Massachusetts Institute of Technology 1994, 1995, 1996. | |
3 | ** See ../LICENSE for license information. | |
4 | */ | |
5 | ||
6 | # ifndef PORTAB_H | |
7 | # define PORTAB_H | |
8 | ||
9 | /* | |
10 | ** Win32 convention? | |
11 | */ | |
12 | ||
13 | /*@constant observer char *INCLUDE_VAR@*/ | |
14 | # define INCLUDE_VAR "include" | |
15 | ||
16 | #if defined (VMS) | |
17 | /* Connection string inserted between directory and filename to make a */ | |
18 | /* full path name. */ | |
19 | ||
20 | # define CONNECTSTR ":" | |
21 | # define CONNECTCHAR ':' | |
22 | ||
23 | ||
24 | /* Directory separator character for search list. */ | |
25 | /*@constant static char SEPCHAR; @*/ | |
26 | # define SEPCHAR ':' | |
27 | ||
28 | # elif defined(MSDOS) || defined(OS2) || defined(WIN32) | |
29 | ||
30 | /* Connection string inserted between directory and filename to make a */ | |
31 | /* full path name. */ | |
32 | ||
33 | /*@constant observer char *CONNECTSTR@*/ | |
34 | # define CONNECTSTR "\\" | |
35 | ||
36 | /*@constant char CONNECTCHAR@*/ | |
37 | # define CONNECTCHAR '\\' | |
38 | ||
39 | # define HASALTCONNECTCHAR | |
40 | ||
41 | /*@constant char ALTCONNECTCHAR@*/ | |
42 | # define ALTCONNECTCHAR '/' | |
43 | ||
44 | /* Directory separator character for search list. */ | |
45 | ||
46 | /*@constant char SEPCHAR; @*/ | |
47 | # define SEPCHAR ';' | |
48 | ||
49 | #else | |
50 | /* Connection string inserted between directory and filename to make a */ | |
51 | /* full path name. */ | |
52 | ||
53 | /*@constant observer char *CONNECTSTR@*/ | |
54 | # define CONNECTSTR "/" | |
55 | ||
56 | /*@constant char CONNECTCHAR; @*/ | |
57 | # define CONNECTCHAR '/' | |
58 | ||
59 | /* Directory separator character for search list. */ | |
60 | /*@constant char SEPCHAR; @*/ | |
61 | # define SEPCHAR ':' | |
62 | ||
63 | #endif | |
64 | ||
65 | ||
66 | # ifdef P_tmpdir | |
67 | ||
68 | # if defined(OS2) && defined(__IBMC__) | |
69 | /*@constant observer char *DEFAULT_TMPDIR; @*/ | |
70 | # define DEFAULT_TMPDIR "." | |
71 | # else | |
72 | /*@constant observer char *DEFAULT_TMPDIR; @*/ | |
73 | # define DEFAULT_TMPDIR P_tmpdir | |
74 | # endif | |
75 | # else | |
76 | # ifdef WIN32 | |
77 | /*@constant observer char *DEFAULT_TMPDIR; @*/ | |
78 | # define DEFAULT_TMPDIR "\\WINDOWS\\TEMP\\" | |
79 | # else | |
80 | /*@constant observer char *DEFAULT_TMPDIR; @*/ | |
81 | # define DEFAULT_TMPDIR "/tmp/" | |
82 | # endif /* WIN32 */ | |
83 | ||
84 | # endif /* P_tmpdir */ | |
85 | ||
86 | # else | |
87 | # error "Multiple include" | |
88 | # endif |