6 * Permission is hereby granted, free of charge, to any person obtaining a copy of
7 * this software and associated documentation files (the "Software"), to deal in
8 * the Software without restriction, including without limitation the rights to
9 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 * of the Software, and to permit persons to whom the Software is furnished to do
11 * so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be included in all
14 * copies or substantial portions of the Software.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24 #ifndef GMQCC_DEFINE_FLAG
25 # define GMQCC_DEFINE_FLAG(x)
29 #ifdef GMQCC_TYPE_FLAGS
30 GMQCC_DEFINE_FLAG(OVERLAP_LOCALS)
31 GMQCC_DEFINE_FLAG(DARKPLACES_STRING_TABLE_BUG)
32 GMQCC_DEFINE_FLAG(OMIT_NULL_BYTES)
33 GMQCC_DEFINE_FLAG(ADJUST_VECTOR_FIELDS)
34 GMQCC_DEFINE_FLAG(FTEPP)
35 GMQCC_DEFINE_FLAG(RELAXED_SWITCH)
36 GMQCC_DEFINE_FLAG(SHORT_LOGIC)
37 GMQCC_DEFINE_FLAG(PERL_LOGIC)
38 GMQCC_DEFINE_FLAG(TRANSLATABLE_STRINGS)
39 GMQCC_DEFINE_FLAG(INITIALIZED_NONCONSTANTS)
43 #ifdef GMQCC_TYPE_WARNS
44 GMQCC_DEFINE_FLAG(DEBUG)
45 GMQCC_DEFINE_FLAG(UNUSED_VARIABLE)
46 GMQCC_DEFINE_FLAG(USED_UNINITIALIZED)
47 GMQCC_DEFINE_FLAG(UNKNOWN_CONTROL_SEQUENCE)
48 GMQCC_DEFINE_FLAG(EXTENSIONS)
49 GMQCC_DEFINE_FLAG(FIELD_REDECLARED)
50 GMQCC_DEFINE_FLAG(MISSING_RETURN_VALUES)
51 GMQCC_DEFINE_FLAG(TOO_FEW_PARAMETERS)
52 GMQCC_DEFINE_FLAG(LOCAL_SHADOWS)
53 GMQCC_DEFINE_FLAG(LOCAL_CONSTANTS)
54 GMQCC_DEFINE_FLAG(VOID_VARIABLES)
55 GMQCC_DEFINE_FLAG(IMPLICIT_FUNCTION_POINTER)
56 GMQCC_DEFINE_FLAG(VARIADIC_FUNCTION)
57 GMQCC_DEFINE_FLAG(FRAME_MACROS)
58 GMQCC_DEFINE_FLAG(EFFECTLESS_STATEMENT)
59 GMQCC_DEFINE_FLAG(END_SYS_FIELDS)
60 GMQCC_DEFINE_FLAG(ASSIGN_FUNCTION_TYPES)
61 GMQCC_DEFINE_FLAG(PREPROCESSOR)
62 GMQCC_DEFINE_FLAG(MULTIFILE_IF)
63 GMQCC_DEFINE_FLAG(DOUBLE_DECLARATION)
64 GMQCC_DEFINE_FLAG(CONST_VAR)
67 /* some cleanup so we don't have to */
68 #undef GMQCC_TYPE_FLAGS
69 #undef GMQCC_TYPE_WARNS
70 #undef GMQCC_DEFINE_FLAG