fixed problem with 'minimal library' compilation (LIBXML_PATTERN_ENABLED
* gentest.py, testapi.c: fixed problem with 'minimal library'
compilation (LIBXML_PATTERN_ENABLED not properly checked) reported
by Greg Morgan
diff --git a/ChangeLog b/ChangeLog
index 4a8022b..176810b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Mar 24 19:01:22 PST 2005 William Brack <wbrack@mmm.com.hk>
+
+ * gentest.py, testapi.c: fixed problem with 'minimal library'
+ compilation (LIBXML_PATTERN_ENABLED not properly checked) reported
+ by Greg Morgan
+
Thu Mar 24 12:01:30 CET 2005 Kasimier Buchcik <libxml2-cvs@cazic.net>
* xmlschemas.c: Fixed call to a facet error report: the type of
diff --git a/gentest.py b/gentest.py
index 234685c..e4ede36 100755
--- a/gentest.py
+++ b/gentest.py
@@ -45,6 +45,7 @@
"xmlsave" : "LIBXML_OUTPUT_ENABLED",
"DOCBparser" : "LIBXML_DOCB_ENABLED",
"xmlmodule" : "LIBXML_MODULES_ENABLED",
+ "pattern" : "LIBXML_PATTERN_ENABLED",
}
#
diff --git a/testapi.c b/testapi.c
index c3d7045..339e89e 100644
--- a/testapi.c
+++ b/testapi.c
@@ -16733,6 +16733,7 @@
return(test_ret);
}
+#ifdef LIBXML_PATTERN_ENABLED
#define gen_nb_xmlStreamCtxtPtr 1
static xmlStreamCtxtPtr gen_xmlStreamCtxtPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) {
@@ -16740,6 +16741,8 @@
}
static void des_xmlStreamCtxtPtr(int no ATTRIBUTE_UNUSED, xmlStreamCtxtPtr val ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) {
}
+#endif
+
static int
test_xmlStreamPop(void) {