mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
memory: Remove memory debugging
This is useless compared to sanitizers or valgrind and has a considerable performance impact if enabled accidentally.
This commit is contained in:
@@ -44,7 +44,6 @@ var withIso8859x = false;
|
||||
var withZlib = false;
|
||||
var withLzma = false;
|
||||
var withDebug = true;
|
||||
var withMemDebug = false;
|
||||
var withSchemas = true;
|
||||
var withSchematron = true;
|
||||
var withRegExps = true;
|
||||
@@ -128,7 +127,6 @@ function usage()
|
||||
txt += " zlib: Enable zlib support (" + (withZlib? "yes" : "no") + ")\n";
|
||||
txt += " lzma: Enable lzma support (" + (withLzma? "yes" : "no") + ")\n";
|
||||
txt += " xml_debug: Enable XML debbugging module (" + (withDebug? "yes" : "no") + ")\n";
|
||||
txt += " mem_debug: Enable memory debugger (" + (withMemDebug? "yes" : "no") + ")\n";
|
||||
txt += " regexps: Enable regular expressions (" + (withRegExps? "yes" : "no") + ")\n";
|
||||
txt += " modules: Enable module support (" + (withModules? "yes" : "no") + ")\n";
|
||||
txt += " tree: Enable tree api (" + (withTree? "yes" : "no") + ")\n";
|
||||
@@ -223,7 +221,6 @@ function discoverVersion()
|
||||
vf.WriteLine("WITH_ZLIB=" + (withZlib? "1" : "0"));
|
||||
vf.WriteLine("WITH_LZMA=" + (withLzma? "1" : "0"));
|
||||
vf.WriteLine("WITH_DEBUG=" + (withDebug? "1" : "0"));
|
||||
vf.WriteLine("WITH_MEM_DEBUG=" + (withMemDebug? "1" : "0"));
|
||||
vf.WriteLine("WITH_SCHEMAS=" + (withSchemas? "1" : "0"));
|
||||
vf.WriteLine("WITH_SCHEMATRON=" + (withSchematron? "1" : "0"));
|
||||
vf.WriteLine("WITH_REGEXPS=" + (withRegExps? "1" : "0"));
|
||||
@@ -327,8 +324,6 @@ function configureLibxml()
|
||||
of.WriteLine(s.replace(/\@WITH_LZMA\@/, withLzma? "1" : "0"));
|
||||
} else if (s.search(/\@WITH_DEBUG\@/) != -1) {
|
||||
of.WriteLine(s.replace(/\@WITH_DEBUG\@/, withDebug? "1" : "0"));
|
||||
} else if (s.search(/\@WITH_MEM_DEBUG\@/) != -1) {
|
||||
of.WriteLine(s.replace(/\@WITH_MEM_DEBUG\@/, withMemDebug? "1" : "0"));
|
||||
} else if (s.search(/\@WITH_SCHEMAS\@/) != -1) {
|
||||
of.WriteLine(s.replace(/\@WITH_SCHEMAS\@/, withSchemas? "1" : "0"));
|
||||
} else if (s.search(/\@WITH_SCHEMATRON\@/) != -1) {
|
||||
@@ -478,8 +473,6 @@ for (i = 0; (i < WScript.Arguments.length) && (error == 0); i++) {
|
||||
withLzma = strToBool(arg.substring(opt.length + 1, arg.length));
|
||||
else if (opt == "xml_debug")
|
||||
withDebug = strToBool(arg.substring(opt.length + 1, arg.length));
|
||||
else if (opt == "mem_debug")
|
||||
withMemDebug = strToBool(arg.substring(opt.length + 1, arg.length));
|
||||
else if (opt == "schemas")
|
||||
withSchemas = strToBool(arg.substring(opt.length + 1, arg.length));
|
||||
else if (opt == "schematron")
|
||||
@@ -656,7 +649,6 @@ txtOut += " iso8859x support: " + boolToStr(withIso8859x) + "\n";
|
||||
txtOut += " zlib support: " + boolToStr(withZlib) + "\n";
|
||||
txtOut += " lzma support: " + boolToStr(withLzma) + "\n";
|
||||
txtOut += " Debugging module: " + boolToStr(withDebug) + "\n";
|
||||
txtOut += " Memory debugging: " + boolToStr(withMemDebug) + "\n";
|
||||
txtOut += " Regexp support: " + boolToStr(withRegExps) + "\n";
|
||||
txtOut += " Module support: " + boolToStr(withModules) + "\n";
|
||||
txtOut += " Tree support: " + boolToStr(withTree) + "\n";
|
||||
|
Reference in New Issue
Block a user