gmqcc/gmqcc.ini.example

160 lines
5.7 KiB
Text
Raw Normal View History

2012-12-21 04:01:47 +00:00
# This is an example INI file that can be used to set compiler options
# without the rquirement for supplying them as arguments on the command
# line, this can be coupled with progs.src. To utilize this file there
# are two options availble, if it's named "gmqcc.ini" or "gmqcc.cfg" and
# the file exists in the directory that GMQCC is invoked from, the compiler
# will implicitally find and execute regardless. For more freedom you may
# use -config=<file> from the command line to specify a more explicit
# directory/name.ext for the configuration file.
2012-12-21 04:01:47 +00:00
# These are common compiler flags usually represented via the -f prefix
# from the command line.
[flags]
2012-12-21 04:01:47 +00:00
# Enabling this can potentially reduces code size by overlapping
# locals where possible.
OVERLAP_LOCALS = false
# in some older versions of the Darkplaces engine the string table
# size is computed wrong causing compiled progs.dat to fail to load
# Enabling this works around the bug by writing a few additional
# null bytes to the end of the string table to compensate.
DARKPLACES_STRING_TABLE_BUG = false
# Enabling this corrects the assignment of vector field pointers via
# subsituting STORE_FLD with STORE_V.
ADJUST_VECTOR_FIELDS = true
2012-12-21 04:01:47 +00:00
# Enabling this allows the use of the FTEQ preprocessor, as well as
# additional preprocessing directives such as #error and #warning.
FTEPP = true
2012-12-21 04:01:47 +00:00
# Enabling this relaxes switch statement semantics
RELAXED_SWITCH = false
2012-12-21 04:01:47 +00:00
# Enabling this allows short-circut evaluation and logic, opposed
# to full evaluation.
SHORT_LOGIC = false
2012-12-21 04:01:47 +00:00
# Enabling this allows perl-like evaluation/logic.
PERL_LOGIC = true
2012-12-21 04:01:47 +00:00
# Enabling this allows the use of the "translatable strings" extension
# assisted by .po files.
TRANSLATABLE_STRINGS = false
2012-12-21 04:01:47 +00:00
# Enabling this prevents initializations from becoming constant unless
# 'const' is specified as a type qualifier.
INITIALIZED_NONCONSTANTS = false
2012-12-21 04:01:47 +00:00
# Enabling this allows function types to be assignable even if their
# signatures are invariant of each other.
ASSIGN_FUNCTION_TYPES = false
2012-12-21 04:01:47 +00:00
# Enabling this will allow the generation of .lno files for engine
# virtual machine backtraces (this is enabled with -g as well).
LNO = false
2012-12-21 04:01:47 +00:00
# Enabling this corrects ternary percedence bugs present in fteqcc.
CORRECT_TERNARY = true
2012-12-21 04:01:47 +00:00
# These are all the warnings, usually present via the -W prefix from
# the command line.
[warnings]
2012-12-21 04:01:47 +00:00
# ?? Used for debugging ??
DEBUG = false
2012-12-21 04:01:47 +00:00
# Enables warnings about unused variables.
UNUSED_VARIABLE = true
2012-12-21 04:01:47 +00:00
# Enables warnings about uninitialized variables.
USED_UNINITIALIZED = true
2012-12-21 04:01:47 +00:00
# Enables warnings about the unknown control sequences in the source
# stream.
UNKNOWN_CONTROL_SEQUENCE = true
2012-12-21 04:01:47 +00:00
# Enables warnings about the use of (an) extension(s).
EXTENSIONS = true
2012-12-21 04:01:47 +00:00
# Enables warnings about redeclared fields.
FIELD_REDECLARED = true
2012-12-21 04:01:47 +00:00
# Enables warnings about missing return values.
MISSING_RETURN_VALUES = true
2012-12-21 04:01:47 +00:00
# Enables warnings about missing parameters for function calls.
TOO_FEW_PARAMETERS = true
2012-12-21 04:01:47 +00:00
# Enables warnings about locals shadowing parameters or other locals.
LOCAL_SHADOWS = true
2012-12-21 04:01:47 +00:00
# Enables warnings about constants specified as locals.
LOCAL_CONSTANTS = true
2012-12-21 04:01:47 +00:00
# Enables warnings about variables declared as type void.
VOID_VARIABLES = true
2012-12-21 04:01:47 +00:00
# Enables warnings about implicitally declared function pointers.
IMPLICIT_FUNCTION_POINTER = true
2012-12-21 04:01:47 +00:00
# Enables warnings for use of varadics for non-builtin functions.
VARIADIC_FUNCTION = true
2012-12-21 04:01:47 +00:00
# Enables warnings about duplicated frame macros.
FRAME_MACROS = true
2012-12-21 04:01:47 +00:00
# Enables warnings about effectivless statements.
EFFECTLESS_STATEMENT = true
2012-12-21 04:01:47 +00:00
# Enables warnings of "end_sys_fields" beiing declared a field.
END_SYS_FIELDS = true
2012-12-21 04:01:47 +00:00
# Enables warnings for infompatible function pointer signatures used
# in assignment.
ASSIGN_FUNCTION_TYPES = true
2012-12-21 04:01:47 +00:00
# Enables warnings about redefined macros in the preprocessor
PREPROCESSOR = true
2012-12-21 04:01:47 +00:00
# Enables warnings about multi-file if statements
MULTIFILE_IF = true
2012-12-21 04:01:47 +00:00
# Enables warnings about double declarations
DOUBLE_DECLARATION = true
2012-12-21 04:01:47 +00:00
# Enables warnings about type qualifiers containing both 'var' and
# 'const'
CONST_VAR = true
2012-12-21 04:01:47 +00:00
# Enables warnings about the use of multibytes characters / constants
MULTIBYTE_CHARACTER = true
2012-12-21 04:01:47 +00:00
# Enables warnings about ternary expressions whos precedence may be
# not what was initially expected.
TERNARY_PRECEDENCE = true
2012-12-21 04:01:47 +00:00
# Enables warnings about unknown pragmas.
UNKNOWN_PRAGMAS = true
2012-12-21 04:01:47 +00:00
# Enables warnings about unreachable code.
UNREACHABLE_CODE = true
2012-12-21 04:01:47 +00:00
# Enables preprocessor "#warnings"
CPP = true
2012-12-21 04:01:47 +00:00
# Finally these are all the optimizations, usually present via the -O
# prefix from the command line.
[optimizations]
2012-12-21 04:01:47 +00:00
# Enables peephole optimizations.
PEEPHOLE = true
2012-12-21 04:01:47 +00:00
# Enables localtemp omission optimizations.
LOCALTEMPS = true
2012-12-21 04:01:47 +00:00
# Enables tail recrusion optimizationd.
TAIL_RECURSION = true
2012-12-21 04:01:47 +00:00
# Enables tail-call optimizations.
TAIL_CALLS = true