mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
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
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user