]> andersk Git - splint.git/blame - src/Headers/portab.h
Created html faq file to replace the faq.txt
[splint.git] / src / Headers / portab.h
CommitLineData
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
a0a162cd 13# if defined(__IBMC__) && defined(OS2)
14# define S_IFMT (unsigned short)0xFFFF
15# endif
16
68de3f33 17# if defined (OS2) || defined (MSDOS) || defined (WIN32)
18/*@constant observer cstring INCLUDEPATH_VAR@*/
19# define INCLUDEPATH_VAR cstring_makeLiteralTemp ("INCLUDE")
20# else
7272a1c1 21/*@constant observer cstring INCLUDEPATH_VAR@*/
22# define INCLUDEPATH_VAR cstring_makeLiteralTemp ("CPATH")
68de3f33 23# endif
885824d3 24
25#if defined (VMS)
68de3f33 26
27/*
28** VMS is here, but hasn't been tested for many releases. Not sure if this works.
29*/
30
31/*
32** Connection string inserted between directory and filename to make a
33** full path name.
34*/
885824d3 35
36# define CONNECTSTR ":"
37# define CONNECTCHAR ':'
38
885824d3 39/* Directory separator character for search list. */
7272a1c1 40/*@constant static char PATH_SEPARATOR; @*/
41# define PATH_SEPARATOR ':'
885824d3 42
43# elif defined(MSDOS) || defined(OS2) || defined(WIN32)
44
45/* Connection string inserted between directory and filename to make a */
46/* full path name. */
47
48/*@constant observer char *CONNECTSTR@*/
49# define CONNECTSTR "\\"
50
51/*@constant char CONNECTCHAR@*/
52# define CONNECTCHAR '\\'
53
54# define HASALTCONNECTCHAR
55
56/*@constant char ALTCONNECTCHAR@*/
57# define ALTCONNECTCHAR '/'
58
59/* Directory separator character for search list. */
60
7272a1c1 61/*@constant char PATH_SEPARATOR; @*/
62# define PATH_SEPARATOR ';'
885824d3 63
64#else
65/* Connection string inserted between directory and filename to make a */
66/* full path name. */
67
68/*@constant observer char *CONNECTSTR@*/
69# define CONNECTSTR "/"
70
71/*@constant char CONNECTCHAR; @*/
72# define CONNECTCHAR '/'
73
74/* Directory separator character for search list. */
7272a1c1 75/*@constant char PATH_SEPARATOR; @*/
76# define PATH_SEPARATOR ':'
885824d3 77
78#endif
79
80
81# ifdef P_tmpdir
82
83# if defined(OS2) && defined(__IBMC__)
84/*@constant observer char *DEFAULT_TMPDIR; @*/
85# define DEFAULT_TMPDIR "."
86# else
87/*@constant observer char *DEFAULT_TMPDIR; @*/
88# define DEFAULT_TMPDIR P_tmpdir
89# endif
90# else
91# ifdef WIN32
92/*@constant observer char *DEFAULT_TMPDIR; @*/
93# define DEFAULT_TMPDIR "\\WINDOWS\\TEMP\\"
94# else
95/*@constant observer char *DEFAULT_TMPDIR; @*/
96# define DEFAULT_TMPDIR "/tmp/"
97# endif /* WIN32 */
98
99# endif /* P_tmpdir */
100
101# else
102# error "Multiple include"
103# endif
68de3f33 104
This page took 0.096796 seconds and 5 git commands to generate.