[xslt] [patch] 2 bug fixes



the following patch fixes two bugs.

1) use XSLT_LIBS not LIBXSLT_LIBS in test/plugin/Makefile.am. 
LIBXSLT_LIBS is wrong. reported by William. (thanks)

2) add a XSLTPUBFUN to testplugin registration function (found during
windows testing)

jr

Index: tests/plugins/Makefile.am
===================================================================
RCS file: /cvs/gnome/libxslt/tests/plugins/Makefile.am,v
retrieving revision 1.1
diff -u -r1.1 Makefile.am
--- tests/plugins/Makefile.am	17 Jan 2005 15:51:34 -0000	1.1
+++ tests/plugins/Makefile.am	20 Jan 2005 18:11:24 -0000
@@ -16,7 +16,7 @@
 
 xmlsoft_org_xslt_testplugin_la_CFLAGS = -DMODULE_COMPILE $(LIBXML_CFLAGS) $(LIBXSLT_CFLAGS)
 xmlsoft_org_xslt_testplugin_la_SOURCES = testplugin.c
-xmlsoft_org_xslt_testplugin_la_LDFLAGS = -module -avoid-version $(LIBXML_LIBS) $(LIBXSLT_LIBS)
+xmlsoft_org_xslt_testplugin_la_LDFLAGS = -module -avoid-version $(LIBXML_LIBS) $(XSLT_LIBS)
 
 test-logall:
 	@echo '## Running plugin tests'
Index: tests/plugins/testplugin.c
===================================================================
RCS file: /cvs/gnome/libxslt/tests/plugins/testplugin.c,v
retrieving revision 1.2
diff -u -r1.2 testplugin.c
--- tests/plugins/testplugin.c	17 Jan 2005 15:51:34 -0000	1.2
+++ tests/plugins/testplugin.c	20 Jan 2005 18:11:24 -0000
@@ -311,7 +311,7 @@
  */
 
 void
-xmlsoft_org_xslt_testplugin_init(void)
+XSLTPUBFUN xmlsoft_org_xslt_testplugin_init(void)
 {
     xsltRegisterExtModuleFull((const xmlChar *) XSLT_TESTPLUGIN_URL,
                               xsltExtInitTest, xsltExtShutdownTest,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]