X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=main.c;h=558edc339ef25b52393176f8fa780592b503482a;hb=d858237010edd160b5e8331682f6491c17615df0;hp=8394df45ec3c3192d9f573b56a7cedd79a2b202a;hpb=6cd821d4594ba94ad387c9346119d71897f0489e;p=xonotic%2Fgmqcc.git diff --git a/main.c b/main.c index 8394df4..558edc3 100644 --- a/main.c +++ b/main.c @@ -206,8 +206,6 @@ static bool options_parse(int argc, char **argv) { /* show defaults (like pathscale) */ if (!strcmp(argv[0]+1, "show-defaults")) { - size_t itr; - char buffer[1024]; for (itr = 0; itr < COUNT_FLAGS; ++itr) { if (!OPTS_FLAG(itr)) continue; @@ -510,6 +508,11 @@ int main(int argc, char **argv) { return usage(); } + if (OPTS_FLAG(TRUE_EMPTY_STRINGS) && OPTS_FLAG(FALSE_EMPTY_STRINGS)) { + con_err("-ftrue-empty-strings and -ffalse-empty-strings are mutually exclusive"); + exit(1); + } + /* the standard decides which set of operators to use */ if (opts.standard == COMPILER_GMQCC) { operators = c_operators; @@ -582,6 +585,9 @@ int main(int argc, char **argv) { } } + if (OPTS_FLAG(TRUE_EMPTY_STRINGS)) + type_not_instr[TYPE_STRING] = INSTR_NOT_F; + util_debug("COM", "starting ...\n"); /* add macros */