diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2005-01-04 21:50:05 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2005-01-04 21:50:05 +0000 |
commit | 48df9613ba18a51f8bbcc8b089ff96dbeca55ad7 (patch) | |
tree | 989974f51d708a7757d7b9b5e24851db9367c242 /testModule.c | |
parent | be076e9b0611e941d9cdf297a8988ddd6639fa74 (diff) | |
download | android_external_libxml2-48df9613ba18a51f8bbcc8b089ff96dbeca55ad7.tar.gz android_external_libxml2-48df9613ba18a51f8bbcc8b089ff96dbeca55ad7.tar.bz2 android_external_libxml2-48df9613ba18a51f8bbcc8b089ff96dbeca55ad7.zip |
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
Diffstat (limited to 'testModule.c')
-rw-r--r-- | testModule.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/testModule.c b/testModule.c index a878e036..f245829b 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 @@ int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { 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)) { |