fixed namespace bug in push mode reported by Rob Richards added it to the
* parser.c: fixed namespace bug in push mode reported by
Rob Richards
* test/ns6 result//ns6*: added it to the regression tests
* xmlmodule.c testModule.c include/libxml/xmlmodule.h:
added an extra option argument to module opening and defined
a couple of flags to the API.
Daniel
diff --git a/testModule.c b/testModule.c
index a878e03..f245829 100644
--- a/testModule.c
+++ b/testModule.c
@@ -27,7 +27,7 @@
#define MODULE_PATH ".libs"
#endif
-typedef int (*hello_world_t)();
+typedef int (*hello_world_t)(void);
int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
xmlChar filename[PATH_MAX];
@@ -35,11 +35,12 @@
hello_world_t hello_world = NULL;
/* build the module filename, and confirm the module exists */
- xmlStrPrintf(filename, sizeof(filename), "%s/testdso%s",
+ xmlStrPrintf(filename, sizeof(filename),
+ (const xmlChar*) "%s/testdso%s",
(const xmlChar*)MODULE_PATH,
(const xmlChar*)LIBXML_MODULE_EXTENSION);
- module = xmlModuleOpen((const char*)filename);
+ module = xmlModuleOpen((const char*)filename, 0);
if (module)
{
if (xmlModuleSymbol(module, "hello_world", (void **) &hello_world)) {