2 ** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2001.
3 ** See ../LICENSE for license information.
11 * This is constants.h from Mike Smith's Win32 port of lclint.
12 * Modified by Herbert 04/19/97:
13 * added conditional 'OS2' to conditional 'MSDOS'
19 # if defined(MSDOS) || defined(OS2)
20 /*@constant observer char *RCFILE; @*/
21 # define RCFILE "lclint.rc"
23 /*@constant observer char *RCFILE; @*/
24 # define RCFILE ".lclintrc"
27 /*@constant observer cstring LARCH_PATH; @*/
28 # define LARCH_PATH cstring_makeLiteralTemp ("LARCH_PATH")
30 /*@constant observer char *LCLIMPORTDIR; @*/
31 # define LCLIMPORTDIR "LCLIMPORTDIR"
33 /*@constant observer char *LLSTDLIBS_NAME; @*/
34 # define LLSTDLIBS_NAME "ansi"
36 /*@constant observer char *LLSTRICTLIBS_NAME; @*/
37 # define LLSTRICTLIBS_NAME "ansistrict"
39 /*@constant observer char *LLUNIXLIBS_NAME; @*/
40 # define LLUNIXLIBS_NAME "unix"
42 /*@constant observer char *LLUNIXSTRICTLIBS_NAME; @*/
43 # define LLUNIXSTRICTLIBS_NAME "unixstrict"
45 /*@constant observer char *LLPOSIXLIBS_NAME; @*/
46 # define LLPOSIXLIBS_NAME "posix"
48 /*@constant observer char *LLPOSIXSTRICTLIBS_NAME; @*/
49 # define LLPOSIXSTRICTLIBS_NAME "posixstrict"
51 /*@constant observer cstring REFSNAME; @*/
52 # define REFSNAME cstring_makeLiteralTemp ("refs")
55 ** Used to be .lldmp. Truncated to .lcd to fix within
56 ** MS-DOS filename limitations.
59 /*@constant observer char *DUMP_SUFFIX; @*/
60 # define DUMP_SUFFIX ".lcd"
62 /*@constant int MAX_NAME_LENGTH; @*/
63 # define MAX_NAME_LENGTH 256
65 /*@constant int MAX_LINE_LENGTH; @*/
66 # define MAX_LINE_LENGTH 1024
68 /*@constant int MAX_DUMP_LINE_LENGTH; @*/
69 # define MAX_DUMP_LINE_LENGTH 16384
71 /*@constant int MINLINELEN; @*/
72 # define MINLINELEN 20
75 ** WARNING: Can't use macros in token for cgrammar.l -->
76 ** must keep these consistent!
79 /*@constant observer char *LLMRCODE; @*/
80 # define LLMRCODE "@QLMR"
81 /* MUST be 5 chars = defin[e]. The number of spaces between the
82 # and the d is the sixth tag.
85 /*@constant observer char *PPMRCODE; @*/
86 # define PPMRCODE "@@MR@@"
88 /*@constant observer char *DEFAULT_SYSTEMDIR; @*/
89 # define DEFAULT_SYSTEMDIR "/usr/"
91 /*@constant char DEFAULT_COMMENTCHAR; @*/
92 # define DEFAULT_COMMENTCHAR '@'
94 /*@constant int DEFAULT_LINELEN; @*/
95 # define DEFAULT_LINELEN 80
97 /*@constant int DEFAULT_BUGSLIMIT; @*/
98 # define DEFAULT_BUGSLIMIT 3
100 /*@constant int DEFAULT_INDENTSPACES; @*/
101 # define DEFAULT_INDENTSPACES 3
104 ** These constants are based on implementation limits in ANSI standard,
108 /*@constant int DEFAULT_EXTERNALNAMELEN; @*/
109 # define DEFAULT_EXTERNALNAMELEN 6
111 /*@constant int DEFAULT_INTERNALNAMELEN; @*/
112 # define DEFAULT_INTERNALNAMELEN 31
114 /*@constant int DEFAULT_CONTROLNESTDEPTH; @*/
115 # define DEFAULT_CONTROLNESTDEPTH 15
117 /*@constant int DEFAULT_STRINGLITERALLEN; @*/
118 # define DEFAULT_STRINGLITERALLEN 509
120 /*@constant int DEFAULT_INCLUDENEST; @*/
121 # define DEFAULT_INCLUDENEST 8
123 /*@constant int DEFAULT_NUMSTRUCTFIELDS; @*/
124 # define DEFAULT_NUMSTRUCTFIELDS 127
126 /*@constant int DEFAULT_NUMENUMMEMBERS; @*/
127 # define DEFAULT_NUMENUMMEMBERS 127
129 /*@constant int DEFAULT_LIMIT; @*/
130 # define DEFAULT_LIMIT -1 /* unlimited messages */
132 /*@constant char PFX_UPPERCASE; @*/
133 # define PFX_UPPERCASE '^'
135 /*@constant char PFX_LOWERCASE; @*/
136 # define PFX_LOWERCASE '&'
138 /*@constant char PFX_ANY; @*/
141 /*@constant char PFX_DIGIT; @*/
142 # define PFX_DIGIT '#'
144 /*@constant char PFX_NOTUPPER; @*/
145 # define PFX_NOTUPPER '%'
147 /*@constant char PFX_NOTLOWER; @*/
148 # define PFX_NOTLOWER '~'
150 /*@constant char PFX_ANYLETTER; @*/
151 # define PFX_ANYLETTER '$'
153 /*@constant char PFX_ANYLETTERDIGIT; @*/
154 # define PFX_ANYLETTERDIGIT '/'
157 ** Note: this name is wired into ansi.h!
160 /*@constant observer char *DEFAULT_BOOLTYPE;@*/
161 # define DEFAULT_BOOLTYPE "lltX_bool"
163 /*@constant observer char *PRAGMA_EXPAND; @*/
164 # define PRAGMA_EXPAND "expand"
166 /*@constant int PRAGMA_LEN_EXPAND; @*/
167 # define PRAGMA_LEN_EXPAND 6
169 /*@constant int MAX_PRAGMA_LEN; @*/
170 # define MAX_PRAGMA_LEN PRAGMA_LEN_EXPAND
173 ** Minimum version with compatible libraries.
176 /*@constant float LCLINT_LIBVERSION; @*/
177 # define LCLINT_LIBVERSION 2.6
180 ** Flex doesn't pre-process input, so remember to copy these manually
184 /*@constant observer char *BEFORE_COMMENT_MARKER@*/
185 # define BEFORE_COMMENT_MARKER "%{"
187 /*@constant observer char *AFTER_COMMENT_MARKER@*/
188 # define AFTER_COMMENT_MARKER "%}"
191 # error "Multiple include"