mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
Mark Vakoc added regexp support
This commit is contained in:
@@ -45,6 +45,7 @@ var withIconv = true;
|
|||||||
var withDebug = true;
|
var withDebug = true;
|
||||||
var withMemDebug = false;
|
var withMemDebug = false;
|
||||||
var withSchemas = true;
|
var withSchemas = true;
|
||||||
|
var withRegExps = true;
|
||||||
/* Win32 build options. */
|
/* Win32 build options. */
|
||||||
var buildDebug = 0;
|
var buildDebug = 0;
|
||||||
var buildStatic = 0;
|
var buildStatic = 0;
|
||||||
@@ -106,6 +107,7 @@ function usage()
|
|||||||
txt += " iconv: Enable ICONV support (" + (withIconv? "yes" : "no") + ")\n";
|
txt += " iconv: Enable ICONV support (" + (withIconv? "yes" : "no") + ")\n";
|
||||||
txt += " xml_debug: Enable XML debbugging module (" + (withDebug? "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 += " mem_debug: Enable memory debugger (" + (withMemDebug? "yes" : "no") + ")\n";
|
||||||
|
txt += " regexps: Enable regular expressions (" + (withRegExps? "yes" : "no") + ")\n";
|
||||||
txt += " schemas: Enable XML Schema support (" + (withSchemas? "yes" : "no") + ")\n";
|
txt += " schemas: Enable XML Schema support (" + (withSchemas? "yes" : "no") + ")\n";
|
||||||
txt += "\nWin32 build options, default value given in parentheses:\n\n";
|
txt += "\nWin32 build options, default value given in parentheses:\n\n";
|
||||||
txt += " debug: Build unoptimised debug executables (" + (buildDebug? "yes" : "no") + ")\n";
|
txt += " debug: Build unoptimised debug executables (" + (buildDebug? "yes" : "no") + ")\n";
|
||||||
@@ -171,6 +173,7 @@ function discoverVersion()
|
|||||||
vf.WriteLine("WITH_DEBUG=" + (withDebug? "1" : "0"));
|
vf.WriteLine("WITH_DEBUG=" + (withDebug? "1" : "0"));
|
||||||
vf.WriteLine("WITH_MEM_DEBUG=" + (withMemDebug? "1" : "0"));
|
vf.WriteLine("WITH_MEM_DEBUG=" + (withMemDebug? "1" : "0"));
|
||||||
vf.WriteLine("WITH_SCHEMAS=" + (withSchemas? "1" : "0"));
|
vf.WriteLine("WITH_SCHEMAS=" + (withSchemas? "1" : "0"));
|
||||||
|
vf.WriteLine("WITH_REGEXPS=" + (withRegExps? "1" : "0"));
|
||||||
vf.WriteLine("DEBUG=" + (buildDebug? "1" : "0"));
|
vf.WriteLine("DEBUG=" + (buildDebug? "1" : "0"));
|
||||||
vf.WriteLine("STATIC=" + (buildStatic? "1" : "0"));
|
vf.WriteLine("STATIC=" + (buildStatic? "1" : "0"));
|
||||||
vf.WriteLine("PREFIX=" + buildPrefix);
|
vf.WriteLine("PREFIX=" + buildPrefix);
|
||||||
@@ -230,6 +233,8 @@ function configureLibxml()
|
|||||||
of.WriteLine(s.replace(/\@WITH_MEM_DEBUG\@/, withMemDebug? "1" : "0"));
|
of.WriteLine(s.replace(/\@WITH_MEM_DEBUG\@/, withMemDebug? "1" : "0"));
|
||||||
} else if (s.search(/\@WITH_SCHEMAS\@/) != -1) {
|
} else if (s.search(/\@WITH_SCHEMAS\@/) != -1) {
|
||||||
of.WriteLine(s.replace(/\@WITH_SCHEMAS\@/, withSchemas? "1" : "0"));
|
of.WriteLine(s.replace(/\@WITH_SCHEMAS\@/, withSchemas? "1" : "0"));
|
||||||
|
} else if (s.search(/\@WITH_REGEXPS\@/) != -1) {
|
||||||
|
of.WriteLine(s.replace(/\@WITH_REGEXPS\@/, withRegExps? "1" : "0"));
|
||||||
} else
|
} else
|
||||||
of.WriteLine(ln);
|
of.WriteLine(ln);
|
||||||
}
|
}
|
||||||
@@ -334,6 +339,8 @@ for (i = 0; (i < WScript.Arguments.length) && (error == 0); i++) {
|
|||||||
withMemDebug = strToBool(arg.substring(opt.length + 1, arg.length));
|
withMemDebug = strToBool(arg.substring(opt.length + 1, arg.length));
|
||||||
else if (opt == "schemas")
|
else if (opt == "schemas")
|
||||||
withSchemas = strToBool(arg.substring(opt.length + 1, arg.length));
|
withSchemas = strToBool(arg.substring(opt.length + 1, arg.length));
|
||||||
|
else if (opt == "regexps")
|
||||||
|
withRegExps = strToBool(arg.substring(opt.length + 1, arg.length));
|
||||||
else if (opt == "debug")
|
else if (opt == "debug")
|
||||||
buildDebug = strToBool(arg.substring(opt.length + 1, arg.length));
|
buildDebug = strToBool(arg.substring(opt.length + 1, arg.length));
|
||||||
else if (opt == "static")
|
else if (opt == "static")
|
||||||
@@ -413,6 +420,7 @@ txtOut += " XInclude support: " + boolToStr(withXinclude) + "\n";
|
|||||||
txtOut += " ICONV support: " + boolToStr(withIconv) + "\n";
|
txtOut += " ICONV support: " + boolToStr(withIconv) + "\n";
|
||||||
txtOut += " Debugging module: " + boolToStr(withDebug) + "\n";
|
txtOut += " Debugging module: " + boolToStr(withDebug) + "\n";
|
||||||
txtOut += " Memory debugging: " + boolToStr(withMemDebug) + "\n";
|
txtOut += " Memory debugging: " + boolToStr(withMemDebug) + "\n";
|
||||||
|
txtOut += " Regexp support: " + boolToStr(withRegExps) + "\n";
|
||||||
txtOut += "XML Schema support: " + boolToStr(withSchemas) + "\n";
|
txtOut += "XML Schema support: " + boolToStr(withSchemas) + "\n";
|
||||||
txtOut += "\n";
|
txtOut += "\n";
|
||||||
txtOut += "Win32 build configuration\n";
|
txtOut += "Win32 build configuration\n";
|
||||||
|
|||||||
@@ -1135,7 +1135,8 @@ xmlCleanupPredefinedEntities
|
|||||||
|
|
||||||
/* xmlregexp.h
|
/* xmlregexp.h
|
||||||
--------------------------------------------------------------------- */
|
--------------------------------------------------------------------- */
|
||||||
#ifdef LIBXML_SCHEMAS_ENABLED
|
|
||||||
|
#ifdef LIBXML_REGEXP_ENABLED
|
||||||
/* The POSIX like API */
|
/* The POSIX like API */
|
||||||
xmlRegexpCompile
|
xmlRegexpCompile
|
||||||
xmlRegFreeRegexp
|
xmlRegFreeRegexp
|
||||||
@@ -1145,8 +1146,22 @@ xmlCleanupPredefinedEntities
|
|||||||
/* The progressive API */
|
/* The progressive API */
|
||||||
xmlRegNewExecCtxt
|
xmlRegNewExecCtxt
|
||||||
xmlRegFreeExecCtxt
|
xmlRegFreeExecCtxt
|
||||||
xmlRegExecPushString
|
xmlRegExecPushString
|
||||||
#endif /* LIBXML_SCHEMAS_ENABLED */
|
xmlRegFreeRegexp
|
||||||
|
xmlRegFreeExecCtxt
|
||||||
|
xmlRegExecPushString
|
||||||
|
xmlRegNewExecCtxt
|
||||||
|
xmlRegexpPrint
|
||||||
|
xmlFreeAutomata
|
||||||
|
xmlAutomataCompile
|
||||||
|
xmlAutomataSetFinalState
|
||||||
|
xmlAutomataNewCountTrans
|
||||||
|
xmlAutomataNewTransition
|
||||||
|
xmlAutomataGetInitState
|
||||||
|
xmlNewAutomata
|
||||||
|
xmlAutomataNewEpsilon
|
||||||
|
xmlAutomataNewState
|
||||||
|
#endif /* LIBXML_REGEXP_ENABLED */
|
||||||
|
|
||||||
|
|
||||||
/* xmlschemas.h
|
/* xmlschemas.h
|
||||||
@@ -1548,6 +1563,7 @@ xmlCleanupPredefinedEntities
|
|||||||
#endif /* LIBXML_XPATH_ENABLED */
|
#endif /* LIBXML_XPATH_ENABLED */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* xpointer.h
|
/* xpointer.h
|
||||||
--------------------------------------------------------------------- */
|
--------------------------------------------------------------------- */
|
||||||
#ifdef LIBXML_XPTR_ENABLED
|
#ifdef LIBXML_XPTR_ENABLED
|
||||||
|
|||||||
Reference in New Issue
Block a user