Changeset: 830c7b46b7fe for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=830c7b46b7fe
Modified Files:
monetdb5/modules/mal/mdb.c
Branch: default
Log Message:
Fix compilation
diffs (109 lines):
diff --git a/monetdb5/modules/mal/mdb.c b/monetdb5/modules/mal/mdb.c
--- a/monetdb5/modules/mal/mdb.c
+++ b/monetdb5/modules/mal/mdb.c
@@ -255,58 +255,54 @@ bailout:
/* Toggle the debug flags on/off */
static str
MDBsetDebugStr_(int *ret, str *flg)
-{ int debug;
-
- debug = *ret = GDKdebug;
- if( strcmp("threads",*flg)==0) debug ^= GRPthreads;
- if( strcmp("memory",*flg)==0) debug ^= GRPmemory;
- if( strcmp("properties",*flg)==0) debug ^= GRPproperties;
- if( strcmp("io",*flg)==0) debug ^= GRPio;
- if( strcmp("heaps",*flg)==0) debug ^= GRPheaps;
- if( strcmp("transactions",*flg)==0) debug ^= GRPtransactions;
- if( strcmp("modules",*flg)==0) debug ^= GRPmodules;
- if( strcmp("algorithms",*flg)==0) debug ^= GRPalgorithms;
- if( strcmp("performance",*flg)==0) debug ^= GRPperformance;
- if( strcmp("forcemito",*flg)==0) debug ^= GRPforcemito;
- GDKdebug = debug;
+{
+ if( strcmp("threads",*flg)==0) GDKdebug ^= GRPthreads;
+ if( strcmp("memory",*flg)==0) GDKdebug ^= GRPmemory;
+ if( strcmp("properties",*flg)==0) GDKdebug ^= GRPproperties;
+ if( strcmp("io",*flg)==0) GDKdebug ^= GRPio;
+ if( strcmp("heaps",*flg)==0) GDKdebug ^= GRPheaps;
+ if( strcmp("transactions",*flg)==0) GDKdebug ^= GRPtransactions;
+ if( strcmp("modules",*flg)==0) GDKdebug ^= GRPmodules;
+ if( strcmp("algorithms",*flg)==0) GDKdebug ^= GRPalgorithms;
+ if( strcmp("performance",*flg)==0) GDKdebug ^= GRPperformance;
+ if( strcmp("forcemito",*flg)==0) GDKdebug ^= GRPforcemito;
+ *ret = GDKdebug;
- debug = OPTdebug;
- if( strcmp("aliases",*flg)==0) debug ^= OPTaliases;
- if( strcmp("candidates", *flg) == 0) debug ^= OPTcandidates;
- if( strcmp("coercion", *flg) == 0) debug ^= OPTcoercion;
- if( strcmp("commonterms", *flg) == 0) debug ^= OPTcommonterms;
- if( strcmp("constants", *flg) == 0) debug ^= OPTconstants;
- if( strcmp("costmodel", *flg) == 0) debug ^= OPTcostmodel;
- if( strcmp("dataflow", *flg) == 0) debug ^= OPTdataflow;
- if( strcmp("deadcode", *flg) == 0) debug ^= OPTdeadcode;
- if( strcmp("emptybind", *flg) == 0) debug ^= OPTemptybind;
- if( strcmp("evaluate", *flg) == 0) debug ^= OPTevaluate;
- if( strcmp("garbagecollector", *flg) == 0) debug ^= OPTgarbagecollector;
- if( strcmp("generator", *flg) == 0) debug ^= OPTgenerator;
- if( strcmp("inline", *flg) == 0) debug ^= OPTinline;
- if( strcmp("jit", *flg) == 0) debug ^= OPTjit;
- if( strcmp("json", *flg) == 0) debug ^= OPTjson;
- if( strcmp("macros", *flg) == 0) debug ^= OPTmacros;
- if( strcmp("matpack", *flg) == 0) debug ^= OPTmatpack;
- if( strcmp("mergetable", *flg) == 0) debug ^= OPTmergetable;
- if( strcmp("mitosis", *flg) == 0) debug ^= OPTmitosis;
- if( strcmp("multiplex", *flg) == 0) debug ^= OPTmultiplex;
- if( strcmp("oltp", *flg) == 0) debug ^= OPToltp;
- if( strcmp("pipes", *flg) == 0) debug ^= OPTpipes;
- if( strcmp("postfix", *flg) == 0) debug ^= OPTpostfix;
- if( strcmp("prelude", *flg) == 0) debug ^= OPTprelude;
- if( strcmp("profiler", *flg) == 0) debug ^= OPTprofiler;
- if( strcmp("projectionpath", *flg) == 0) debug ^= OPTprojectionpath;
- if( strcmp("pushselect", *flg) == 0) debug ^= OPTpushselect;
- if( strcmp("querylog", *flg) == 0) debug ^= OPTquerylog;
- if( strcmp("reduce", *flg) == 0) debug ^= OPTreduce;
- if( strcmp("remap", *flg) == 0) debug ^= OPTremap;
- if( strcmp("remotequeries", *flg) == 0) debug ^= OPTremotequeries;
- if( strcmp("reorder", *flg) == 0) debug ^= OPTreorder;
- if( strcmp("support", *flg) == 0) debug ^= OPTsupport;
- if( strcmp("volcano", *flg) == 0) debug ^= OPTvolcano;
- if( strcmp("wlc", *flg) == 0) debug ^= OPTwlc;
- OPTdebug = debug;
+ if( strcmp("aliases",*flg)==0) OPTdebug ^= OPTaliases;
+ if( strcmp("candidates", *flg) == 0) OPTdebug ^= OPTcandidates;
+ if( strcmp("coercion", *flg) == 0) OPTdebug ^= OPTcoercion;
+ if( strcmp("commonterms", *flg) == 0) OPTdebug ^= OPTcommonterms;
+ if( strcmp("constants", *flg) == 0) OPTdebug ^= OPTconstants;
+ if( strcmp("costmodel", *flg) == 0) OPTdebug ^= OPTcostmodel;
+ if( strcmp("dataflow", *flg) == 0) OPTdebug ^= OPTdataflow;
+ if( strcmp("deadcode", *flg) == 0) OPTdebug ^= OPTdeadcode;
+ if( strcmp("emptybind", *flg) == 0) OPTdebug ^= OPTemptybind;
+ if( strcmp("evaluate", *flg) == 0) OPTdebug ^= OPTevaluate;
+ if( strcmp("garbagecollector", *flg) == 0) OPTdebug ^=
OPTgarbagecollector;
+ if( strcmp("generator", *flg) == 0) OPTdebug ^= OPTgenerator;
+ if( strcmp("inline", *flg) == 0) OPTdebug ^= OPTinline;
+ if( strcmp("jit", *flg) == 0) OPTdebug ^= OPTjit;
+ if( strcmp("json", *flg) == 0) OPTdebug ^= OPTjson;
+ if( strcmp("macros", *flg) == 0) OPTdebug ^= OPTmacros;
+ if( strcmp("matpack", *flg) == 0) OPTdebug ^= OPTmatpack;
+ if( strcmp("mergetable", *flg) == 0) OPTdebug ^= OPTmergetable;
+ if( strcmp("mitosis", *flg) == 0) OPTdebug ^= OPTmitosis;
+ if( strcmp("multiplex", *flg) == 0) OPTdebug ^= OPTmultiplex;
+ if( strcmp("oltp", *flg) == 0) OPTdebug ^= OPToltp;
+ if( strcmp("pipes", *flg) == 0) OPTdebug ^= OPTpipes;
+ if( strcmp("postfix", *flg) == 0) OPTdebug ^= OPTpostfix;
+ if( strcmp("prelude", *flg) == 0) OPTdebug ^= OPTprelude;
+ if( strcmp("profiler", *flg) == 0) OPTdebug ^= OPTprofiler;
+ if( strcmp("projectionpath", *flg) == 0) OPTdebug ^= OPTprojectionpath;
+ if( strcmp("pushselect", *flg) == 0) OPTdebug ^= OPTpushselect;
+ if( strcmp("querylog", *flg) == 0) OPTdebug ^= OPTquerylog;
+ if( strcmp("reduce", *flg) == 0) OPTdebug ^= OPTreduce;
+ if( strcmp("remap", *flg) == 0) OPTdebug ^= OPTremap;
+ if( strcmp("remotequeries", *flg) == 0) OPTdebug ^= OPTremotequeries;
+ if( strcmp("reorder", *flg) == 0) OPTdebug ^= OPTreorder;
+ if( strcmp("support", *flg) == 0) OPTdebug ^= OPTsupport;
+ if( strcmp("volcano", *flg) == 0) OPTdebug ^= OPTvolcano;
+ if( strcmp("wlc", *flg) == 0) OPTdebug ^= OPTwlc;
return MAL_SUCCEED;
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list