From: William M. Brack Date: Fri, 2 Mar 2007 10:43:34 +0000 (+0000) Subject: added setting of TRIO_REPLACE_STDIO when TRIO routines are required. X-Git-Tag: v1.1.28~192 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18ae451bb0f52b9b2a2e2c4ec77dbe25284c95d5;p=platform%2Fupstream%2Flibxslt.git added setting of TRIO_REPLACE_STDIO when TRIO routines are required. * xsltconfig.h.in: added setting of TRIO_REPLACE_STDIO when TRIO routines are required. * namespaces.c, xsltutils.c: enhanced handling of stdio.h vs. trio.h when trio routines are required (now use XSLT_NEED_TRIO) (bug #412787) svn path=/trunk/; revision=1423 --- diff --git a/ChangeLog b/ChangeLog index c157609..7c2ce2d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,12 @@ -Sun Feb 18 09:00:08 PST 2007 William Brack + + * libxslt/xsltconfig.h.in: added setting of TRIO_REPLACE_STDIO + when TRIO routines are required. + * libxslt/namespaces.c, libxslt/xsltutils.c: enhanced handling + of stdio.h vs. trio.h when trio routines are required (now + use XSLT_NEED_TRIO) (bug #412787) + +Sun Feb 18 09:00:08 PST 2007 William Brack * python/libxsl.py: fixed tab/space inconsistency with patch provided by Andreas Hanke (bug #409193) diff --git a/doc/EXSLT/downloads.html b/doc/EXSLT/downloads.html index 223ecef..88295e5 100644 --- a/doc/EXSLT/downloads.html +++ b/doc/EXSLT/downloads.html @@ -20,7 +20,7 @@ provides Solaris binaries. Steve Ball provides Mac Os X binaries.

Contribs:

I do accept external contributions, especially if compiling on another platform, get in touch with me to upload the package. I will keep them in the -contrib directory

Libxslt is also available from CVS:

  • The Gnome +contrib directory

    Libxslt is also available from CVS:

    • The Gnome CVS base. Check the Gnome CVS Tools page; the CVS module is libxslt.

    • diff --git a/libxslt/namespaces.c b/libxslt/namespaces.c index a8ba8e2..6c72746 100644 --- a/libxslt/namespaces.c +++ b/libxslt/namespaces.c @@ -32,6 +32,11 @@ #ifdef HAVE_CTYPE_H #include #endif +#ifndef XSLT_NEED_TRIO +#include +#else +#include +#endif #include #include diff --git a/libxslt/xsltconfig.h.in b/libxslt/xsltconfig.h.in index bd35c08..a8b5acf 100644 --- a/libxslt/xsltconfig.h.in +++ b/libxslt/xsltconfig.h.in @@ -77,7 +77,7 @@ extern "C" { /** * XSLT_NEED_TRIO: * - * should be activated in the existing libc library lacks some of the + * should be activated if the existing libc library lacks some of the * string formatting function, in that case reuse the Trio ones already * compiled in the libxml2 library. */ @@ -93,6 +93,10 @@ extern "C" { #endif #endif +#ifdef XSLT_NEED_TRIO +#define TRIO_REPLACE_STDIO +#endif + /** * WITH_XSLT_DEBUGGER: * diff --git a/libxslt/xsltutils.c b/libxslt/xsltutils.c index f300769..375ecfc 100644 --- a/libxslt/xsltutils.c +++ b/libxslt/xsltutils.c @@ -12,7 +12,12 @@ #define IN_LIBXSLT #include "libxslt.h" +#ifndef XSLT_NEED_TRIO #include +#else +#include +#endif + #include #ifdef HAVE_SYS_TIME_H #include @@ -47,11 +52,6 @@ #endif /* _MS_VER */ #endif /* WIN32 */ -#ifdef XSLT_NEED_TRIO -#include "trio.h" -#define vsnprintf trio_vsnprintf -#endif - /************************************************************************ * * * Convenience function *