]> andersk Git - splint.git/blame - src/Headers/portab.h
*** empty log message ***
[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
885824d3 17/*@constant observer char *INCLUDE_VAR@*/
18# define INCLUDE_VAR "include"
19
20#if defined (VMS)
21/* Connection string inserted between directory and filename to make a */
22/* full path name. */
23
24# define CONNECTSTR ":"
25# define CONNECTCHAR ':'
26
27
28/* Directory separator character for search list. */
29/*@constant static char SEPCHAR; @*/
30# define SEPCHAR ':'
31
32# elif defined(MSDOS) || defined(OS2) || defined(WIN32)
33
34/* Connection string inserted between directory and filename to make a */
35/* full path name. */
36
37/*@constant observer char *CONNECTSTR@*/
38# define CONNECTSTR "\\"
39
40/*@constant char CONNECTCHAR@*/
41# define CONNECTCHAR '\\'
42
43# define HASALTCONNECTCHAR
44
45/*@constant char ALTCONNECTCHAR@*/
46# define ALTCONNECTCHAR '/'
47
48/* Directory separator character for search list. */
49
50/*@constant char SEPCHAR; @*/
51# define SEPCHAR ';'
52
53#else
54/* Connection string inserted between directory and filename to make a */
55/* full path name. */
56
57/*@constant observer char *CONNECTSTR@*/
58# define CONNECTSTR "/"
59
60/*@constant char CONNECTCHAR; @*/
61# define CONNECTCHAR '/'
62
63/* Directory separator character for search list. */
64/*@constant char SEPCHAR; @*/
65# define SEPCHAR ':'
66
67#endif
68
69
70# ifdef P_tmpdir
71
72# if defined(OS2) && defined(__IBMC__)
73/*@constant observer char *DEFAULT_TMPDIR; @*/
74# define DEFAULT_TMPDIR "."
75# else
76/*@constant observer char *DEFAULT_TMPDIR; @*/
77# define DEFAULT_TMPDIR P_tmpdir
78# endif
79# else
80# ifdef WIN32
81/*@constant observer char *DEFAULT_TMPDIR; @*/
82# define DEFAULT_TMPDIR "\\WINDOWS\\TEMP\\"
83# else
84/*@constant observer char *DEFAULT_TMPDIR; @*/
85# define DEFAULT_TMPDIR "/tmp/"
86# endif /* WIN32 */
87
88# endif /* P_tmpdir */
89
90# else
91# error "Multiple include"
92# endif
This page took 0.061354 seconds and 5 git commands to generate.