]> de.git.xonotic.org Git - xonotic/gmqcc.git/blob - opts.def
Merge branch 'master' into test-suite
[xonotic/gmqcc.git] / opts.def
1 /*
2  * Copyright (C) 2012
3  *     Wolfgang Bumiller
4  *     Dale Weiler
5  *
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:
12  *
13  * The above copyright notice and this permission notice shall be included in all
14  * copies or substantial portions of the Software.
15  *
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
22  * SOFTWARE.
23  */
24 #ifndef GMQCC_DEFINE_FLAG
25 #   define GMQCC_DEFINE_FLAG(x)
26 #endif
27
28 /* codegen flags */
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 #endif
36
37 /* warning flags */
38 #ifdef GMQCC_TYPE_WARNS
39     GMQCC_DEFINE_FLAG(DEBUG)
40     GMQCC_DEFINE_FLAG(UNUSED_VARIABLE)
41     GMQCC_DEFINE_FLAG(USED_UNINITIALIZED)
42     GMQCC_DEFINE_FLAG(UNKNOWN_CONTROL_SEQUENCE)
43     GMQCC_DEFINE_FLAG(EXTENSIONS)
44     GMQCC_DEFINE_FLAG(FIELD_REDECLARED)
45     GMQCC_DEFINE_FLAG(MISSING_RETURN_VALUES)
46     GMQCC_DEFINE_FLAG(TOO_FEW_PARAMETERS)
47     GMQCC_DEFINE_FLAG(LOCAL_SHADOWS)
48     GMQCC_DEFINE_FLAG(LOCAL_CONSTANTS)
49     GMQCC_DEFINE_FLAG(VOID_VARIABLES)
50     GMQCC_DEFINE_FLAG(IMPLICIT_FUNCTION_POINTER)
51     GMQCC_DEFINE_FLAG(VARIADIC_FUNCTION)
52     GMQCC_DEFINE_FLAG(FRAME_MACROS)
53     GMQCC_DEFINE_FLAG(EFFECTLESS_STATEMENT)
54     GMQCC_DEFINE_FLAG(END_SYS_FIELDS)
55     GMQCC_DEFINE_FLAG(ASSIGN_FUNCTION_TYPES)
56     GMQCC_DEFINE_FLAG(PREPROCESSOR)
57     GMQCC_DEFINE_FLAG(MULTIFILE_IF)
58 #endif
59
60 /* some cleanup so we don't have to */
61 #undef GMQCC_TYPE_FLAGS
62 #undef GMQCC_TYPE_WARNS
63 #undef GMQCC_DEFINE_FLAG