2 ** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003.
3 ** See ../LICENSE for license information.
11 * This is constants.h from Mike Smith's Win32 port of splint.
12 * Modified by Herbert 04/19/97:
13 * added conditional 'OS2' to conditional 'MSDOS'
20 /*@constant observer char *RCFILE; @*/
21 # define RCFILE "splint.rc"
23 /*@constant observer char *RCFILE; @*/
24 # define RCFILE ".splintrc"
26 /*@constant observer char *ALTRCFILE; @*/
27 # define ALTRCFILE ".lclintrc"
30 /*@constant observer cstring LARCH_PATH; @*/
31 # define LARCH_PATH cstring_makeLiteralTemp ("LARCH_PATH")
33 /*@constant observer char *LCLIMPORTDIR; @*/
34 # define LCLIMPORTDIR "LCLIMPORTDIR"
36 /*@constant observer char *LLSTDLIBS_NAME; @*/
37 # define LLSTDLIBS_NAME "standard"
39 /*@constant observer char *LLSTRICTLIBS_NAME; @*/
40 # define LLSTRICTLIBS_NAME "standardstrict"
42 /*@constant observer char *LLUNIXLIBS_NAME; @*/
43 # define LLUNIXLIBS_NAME "unix"
45 /*@constant observer char *LLUNIXSTRICTLIBS_NAME; @*/
46 # define LLUNIXSTRICTLIBS_NAME "unixstrict"
48 /*@constant observer char *LLPOSIXLIBS_NAME; @*/
49 # define LLPOSIXLIBS_NAME "posix"
51 /*@constant observer char *LLPOSIXSTRICTLIBS_NAME; @*/
52 # define LLPOSIXSTRICTLIBS_NAME "posixstrict"
54 /*@constant observer cstring REFSNAME; @*/
55 # define REFSNAME cstring_makeLiteralTemp ("refs")
58 ** Used to be .lldmp. Truncated to .lcd to fix within
59 ** MS-DOS filename limitations.
62 /*@constant observer char *DUMP_SUFFIX; @*/
63 # define DUMP_SUFFIX ".lcd"
66 ** All valid libraries start with this
69 /*@constant observer char *LIBRARY_MARKER@*/
70 # define LIBRARY_MARKER ";;; Splint Library "
72 /*@constant int MAX_NAME_LENGTH=256; @*/
73 # define MAX_NAME_LENGTH 1024
75 /*@constant int MAX_LINE_LENGTH=1024; @*/
76 # define MAX_LINE_LENGTH 1024
78 /*@constant int MAX_DUMP_LINE_LENGTH=16384; @*/
79 # define MAX_DUMP_LINE_LENGTH 16384
81 /*@constant int MINLINELEN=20; @*/
82 # define MINLINELEN 20
86 ** WARNING: Can't use macros in token for cgrammar.l -->
87 ** must keep these consistent!
90 /*@constant observer char *LLMRCODE; @*/
91 # define LLMRCODE "@QLMR"
92 /* MUST be 5 chars = defin[e]. The number of spaces between the
93 # and the d is the sixth tag.
96 /*@constant observer char *PPMRCODE; @*/
97 # define PPMRCODE "@@MR@@"
99 /*@constant observer char *DEFAULT_SYSTEMDIR; @*/
101 # define DEFAULT_SYSTEMDIR "/os2/"
103 # define DEFAULT_SYSTEMDIR "/usr/"
106 /*@constant char DEFAULT_COMMENTCHAR; @*/
107 # define DEFAULT_COMMENTCHAR '@'
109 /*@constant int DEFAULT_LINELEN=80; @*/
110 # define DEFAULT_LINELEN 80
112 /*@constant int DEFAULT_BUGSLIMIT=3; @*/
113 # define DEFAULT_BUGSLIMIT 3
115 /*@constant int DEFAULT_INDENTSPACES=3; @*/
116 # define DEFAULT_INDENTSPACES 3
119 ** Setting this to 0 means emacs compile mode will
120 ** jump to the locations in message hints.
123 /*@constant int DEFAULT_LOCINDENTSPACES=3; @*/
124 # define DEFAULT_LOCINDENTSPACES 3
127 ** These constants are based on implementation limits in ANSI standard,
131 /*@constant int ANSI89_EXTERNALNAMELEN=6; @*/
132 # define ANSI89_EXTERNALNAMELEN 6
134 /*@constant int ANSI89_INTERNALNAMELEN=31; @*/
135 # define ANSI89_INTERNALNAMELEN 31
137 /*@constant int ANSI89_CONTROLNESTDEPTH=15; @*/
138 # define ANSI89_CONTROLNESTDEPTH 15
140 /*@constant int ANSI89_STRINGLITERALLEN=509; @*/
141 # define ANSI89_STRINGLITERALLEN 509
143 /*@constant int ANSI89_INCLUDENEST=8; @*/
144 # define ANSI89_INCLUDENEST 8
146 /*@constant int ANSI89_NUMSTRUCTFIELDS=127; @*/
147 # define ANSI89_NUMSTRUCTFIELDS 127
149 /*@constant int ANSI89_NUMENUMMEMBERS=127; @*/
150 # define ANSI89_NUMENUMMEMBERS 127
153 ** From ISO C99 5.2.4.1
156 /*@constant int ISO99_EXTERNALNAMELEN=31; @*/
157 # define ISO99_EXTERNALNAMELEN 31
159 /*@constant int ISO99_INTERNALNAMELEN=63; @*/
160 # define ISO99_INTERNALNAMELEN 63
162 /*@constant int ISO99_CONTROLNESTDEPTH=63; @*/
163 # define ISO99_CONTROLNESTDEPTH 63
165 /*@constant int ISO99_STRINGLITERALLEN=4095; @*/
166 # define ISO99_STRINGLITERALLEN 4095
168 /*@constant int ISO99_INCLUDENEST=63; @*/
169 # define ISO99_INCLUDENEST 63
171 /*@constant int ISO99_NUMSTRUCTFIELDS=1023 @*/
172 # define ISO99_NUMSTRUCTFIELDS 1023
174 /*@constant int ISO99_NUMENUMMEMBERS=1023 @*/
175 # define ISO99_NUMENUMMEMBERS 1023
177 /*@constant int DEFAULT_LIMIT=-1; @*/
178 # define DEFAULT_LIMIT -1 /* unlimited messages */
180 /*@constant char PFX_UPPERCASE; @*/
181 # define PFX_UPPERCASE '^'
183 /*@constant char PFX_LOWERCASE; @*/
184 # define PFX_LOWERCASE '&'
186 /*@constant char PFX_ANY; @*/
189 /*@constant char PFX_DIGIT; @*/
190 # define PFX_DIGIT '#'
192 /*@constant char PFX_NOTUPPER; @*/
193 # define PFX_NOTUPPER '%'
195 /*@constant char PFX_NOTLOWER; @*/
196 # define PFX_NOTLOWER '~'
198 /*@constant char PFX_ANYLETTER; @*/
199 # define PFX_ANYLETTER '$'
201 /*@constant char PFX_ANYLETTERDIGIT; @*/
202 # define PFX_ANYLETTERDIGIT '/'
205 ** _Bool is defined by ISO C99 (replaced old lltx_Bool)
208 /*@constant observer char *DEFAULT_BOOLTYPE;@*/
209 # define DEFAULT_BOOLTYPE "_Bool"
211 /*@constant observer char *PRAGMA_EXPAND; @*/
212 # define PRAGMA_EXPAND "expand"
214 /*@constant int PRAGMA_LEN_EXPAND=6; @*/
215 # define PRAGMA_LEN_EXPAND 6
217 /*@constant int MAX_PRAGMA_LEN; @*/
218 # define MAX_PRAGMA_LEN PRAGMA_LEN_EXPAND
221 ** Flex doesn't pre-process input, so remember to copy these manually
225 /*@constant observer char *BEFORE_COMMENT_MARKER@*/
226 # define BEFORE_COMMENT_MARKER "%{"
228 /*@constant observer char *AFTER_COMMENT_MARKER@*/
229 # define AFTER_COMMENT_MARKER "%}"
232 # error "Multiple include"