[xslt] One other thing ...



Dear All,

If every C source file in libexslt
  #includes "libexslt/libexslt.h"

, which they do, then there's no need for:
  #if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
  #include <win32config.h>
  #else
  #include "config.h"
  #endif

as libexslt/libexslt.h does that already.

The attached patch will remove those segments of code (and thus reduce
code size, speed up compilation and stop me getting annoying warnings
about redefines when I compile it :-) ).

Yours,

Phil L.
-- 
http://www.philipnet.com                http://director.sourceforge.net
                i ou a uea i e a o ie e a o a a oue oae
--- libxslt/libexslt/common.c	2003-08-18 23:29:49.000000000 +0100
+++ libxslt-riscos/libexslt/common.c	2003-11-18 12:38:06.000000000 +0000
@@ -1,12 +1,6 @@
 #define IN_LIBEXSLT
 #include "libexslt/libexslt.h"
 
-#if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
-#include <win32config.h>
-#else
-#include "config.h"
-#endif
-
 #include <libxml/tree.h>
 #include <libxml/xpath.h>
 #include <libxml/xpathInternals.h>
--- libxslt/libexslt/date.c	2003-10-15 16:26:01.000000000 +0100
+++ libxslt-riscos/libexslt/date.c	2003-11-20 00:29:41.000000000 +0000
@@ -22,12 +22,6 @@
 #define IN_LIBEXSLT
 #include "libexslt/libexslt.h"
 
-#if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
-#include <win32config.h>
-#else
-#include "config.h"
-#endif
-
 #include <libxml/tree.h>
 #include <libxml/xpath.h>
 #include <libxml/xpathInternals.h>
--- libxslt/libexslt/dynamic.c	2003-08-18 23:29:49.000000000 +0100
+++ libxslt-riscos/libexslt/dynamic.c	2003-11-18 12:38:26.000000000 +0000
@@ -23,12 +23,6 @@
 #define IN_LIBEXSLT
 #include "libexslt/libexslt.h"
 
-#if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
-#include <win32config.h>
-#else
-#include "config.h"
-#endif
-
 #include <libxml/tree.h>
 #include <libxml/xpath.h>
 #include <libxml/xpathInternals.h>
--- libxslt/libexslt/exslt.c	2003-08-18 23:29:49.000000000 +0100
+++ libxslt-riscos/libexslt/exslt.c	2003-11-18 12:38:34.000000000 +0000
@@ -3,12 +3,6 @@
 
 #include <libxml/xmlversion.h>
 
-#if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
-#include <win32config.h>
-#else
-#include "config.h"
-#endif
-
 #if defined(WIN32) && defined(_MSC_VER)
 #include <libxslt/xsltwin32config.h>
 #else
--- libxslt/libexslt/functions.c	2003-11-02 09:13:56.000000000 +0000
+++ libxslt-riscos/libexslt/functions.c	2003-11-20 00:29:41.000000000 +0000
@@ -1,12 +1,6 @@
 #define IN_LIBEXSLT
 #include "libexslt/libexslt.h"
 
-#if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
-#include <win32config.h>
-#else
-#include "config.h"
-#endif
-
 #include <string.h>
 
 #include <libxml/tree.h>
--- libxslt/libexslt/math.c	2003-08-18 23:29:50.000000000 +0100
+++ libxslt-riscos/libexslt/math.c	2003-11-18 12:39:10.000000000 +0000
@@ -1,12 +1,6 @@
 #define IN_LIBEXSLT
 #include "libexslt/libexslt.h"
 
-#if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
-#include <win32config.h>
-#else
-#include "config.h"
-#endif
-
 #include <libxml/tree.h>
 #include <libxml/xpath.h>
 #include <libxml/xpathInternals.h>
--- libxslt/libexslt/saxon.c	2003-09-27 16:25:51.000000000 +0100
+++ libxslt-riscos/libexslt/saxon.c	2003-11-20 00:29:41.000000000 +0000
@@ -1,12 +1,6 @@
 #define IN_LIBEXSLT
 #include "libexslt/libexslt.h"
 
-#if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
-#include <win32config.h>
-#else
-#include "config.h"
-#endif
-
 #include <libxml/tree.h>
 #include <libxml/xpath.h>
 #include <libxml/xpathInternals.h>
--- libxslt/libexslt/sets.c	2003-08-18 23:29:50.000000000 +0100
+++ libxslt-riscos/libexslt/sets.c	2003-11-18 12:39:02.000000000 +0000
@@ -1,12 +1,6 @@
 #define IN_LIBEXSLT
 #include "libexslt/libexslt.h"
 
-#if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
-#include <win32config.h>
-#else
-#include "config.h"
-#endif
-
 #include <libxml/tree.h>
 #include <libxml/xpath.h>
 #include <libxml/xpathInternals.h>
--- libxslt/libexslt/strings.c	2003-11-01 06:37:54.000000000 +0000
+++ libxslt-riscos/libexslt/strings.c	2003-11-20 00:29:41.000000000 +0000
@@ -1,12 +1,6 @@
 #define IN_LIBEXSLT
 #include "libexslt/libexslt.h"
 
-#if defined(WIN32) && !defined (__CYGWIN__) && (!__MINGW32__)
-#include <win32config.h>
-#else
-#include "config.h"
-#endif
-
 #include <libxml/tree.h>
 #include <libxml/xpath.h>
 #include <libxml/xpathInternals.h>


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