mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[LIBXSLT] Improve sync with upstream. CORE-17766
Makefile.am: this hasn't been updated in a while security.c: WIN32 -> _WIN32 to keep the ROS-diff consistent with the rest win32config.h/libxslt.h: remove unnecessary ROS-diff xsltwin32config.h: this was missed in the 1.1.34 sync xsltexports.h: mark a ROS-diff as such
This commit is contained in:
parent
dee3e6e7cd
commit
e524b1bcf6
6 changed files with 74 additions and 85 deletions
134
dll/3rdparty/libxslt/Makefile.am
vendored
134
dll/3rdparty/libxslt/Makefile.am
vendored
|
@ -1,78 +1,78 @@
|
||||||
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/libxslt
|
SUBDIRS = \
|
||||||
|
libxslt \
|
||||||
|
libexslt \
|
||||||
|
xsltproc \
|
||||||
|
doc \
|
||||||
|
$(PYTHON_SUBDIR) \
|
||||||
|
tests
|
||||||
|
|
||||||
AM_CFLAGS = $(LIBXML_CFLAGS)
|
DIST_SUBDIRS = libxslt libexslt xsltproc python doc tests
|
||||||
|
|
||||||
lib_LTLIBRARIES = libxslt.la
|
confexecdir=$(libdir)
|
||||||
|
confexec_DATA = xsltConf.sh
|
||||||
|
|
||||||
xsltincdir = $(includedir)/libxslt
|
bin_SCRIPTS = xslt-config
|
||||||
|
|
||||||
xsltinc_HEADERS = \
|
dist-hook: cleanup libxslt.spec
|
||||||
xslt.h \
|
touch $(distdir)/doc/*.xml
|
||||||
xsltutils.h \
|
touch $(distdir)/doc/EXSLT/*.xml
|
||||||
pattern.h \
|
touch $(distdir)/libxslt/*.syms
|
||||||
templates.h \
|
(cd $(srcdir) ; tar -cf - --exclude CVS --exclude .svn win32 vms examples) | (cd $(distdir); tar xf -)
|
||||||
variables.h \
|
|
||||||
keys.h \
|
|
||||||
numbersInternals.h \
|
|
||||||
extensions.h \
|
|
||||||
extra.h \
|
|
||||||
functions.h \
|
|
||||||
namespaces.h \
|
|
||||||
imports.h \
|
|
||||||
attributes.h \
|
|
||||||
documents.h \
|
|
||||||
preproc.h \
|
|
||||||
transform.h \
|
|
||||||
security.h \
|
|
||||||
xsltInternals.h \
|
|
||||||
xsltexports.h \
|
|
||||||
xsltlocale.h
|
|
||||||
nodist_xsltinc_HEADERS = \
|
|
||||||
xsltconfig.h
|
|
||||||
|
|
||||||
libxslt_la_SOURCES = \
|
CVS_EXTRA_DIST =
|
||||||
attrvt.c \
|
|
||||||
xslt.c \
|
|
||||||
xsltlocale.c \
|
|
||||||
xsltutils.c \
|
|
||||||
pattern.c \
|
|
||||||
templates.c \
|
|
||||||
variables.c \
|
|
||||||
keys.c \
|
|
||||||
numbers.c \
|
|
||||||
extensions.c \
|
|
||||||
extra.c \
|
|
||||||
functions.c \
|
|
||||||
namespaces.c \
|
|
||||||
imports.c \
|
|
||||||
attributes.c \
|
|
||||||
documents.c \
|
|
||||||
preproc.c \
|
|
||||||
transform.c \
|
|
||||||
security.c \
|
|
||||||
win32config.h \
|
|
||||||
xsltwin32config.h.in \
|
|
||||||
libxslt.h
|
|
||||||
nodist_libxslt_la_SOURCES = \
|
|
||||||
xsltwin32config.h
|
|
||||||
|
|
||||||
if USE_VERSION_SCRIPT
|
EXTRA_DIST = xsltConf.sh.in xslt-config.in libxslt.spec libxslt.spec.in \
|
||||||
LIBXSLT_VERSION_SCRIPT = $(VERSION_SCRIPT_FLAGS)$(srcdir)/libxslt.syms
|
FEATURES TODO Copyright libxslt.m4 \
|
||||||
else
|
win32/libxslt/libxslt.def win32/libxslt/libxslt.dsw \
|
||||||
LIBXSLT_VERSION_SCRIPT =
|
win32/libxslt/libxslt_so.dsp win32/libxslt/xsltproc.dsp \
|
||||||
endif
|
$(CVS_EXTRA_DIST)
|
||||||
|
|
||||||
libxslt_la_LIBADD = $(LIBXML_LIBS) $(EXTRA_LIBS) $(M_LIBS)
|
## We create xsltConf.sh here and not from configure because we want
|
||||||
libxslt_la_LDFLAGS = \
|
## to get the paths expanded correctly. Macros like srcdir are given
|
||||||
$(LIBXSLT_VERSION_SCRIPT) \
|
## the value NONE in configure if the user doesn't specify them (this
|
||||||
-version-info $(LIBXSLT_VERSION_INFO)
|
## is an autoconf feature, not a bug).
|
||||||
|
|
||||||
man_MANS = libxslt.3
|
xsltConf.sh: xsltConf.sh.in Makefile
|
||||||
|
## Use sed and then mv to avoid problems if the user interrupts.
|
||||||
|
sed -e 's?\@XSLT_LIBDIR\@?$(XSLT_LIBDIR)?g' \
|
||||||
|
-e 's?\@XSLT_INCLUDEDIR\@?$(XSLT_INCLUDEDIR)?g' \
|
||||||
|
-e 's?\@VERSION\@?$(VERSION)?g' \
|
||||||
|
-e 's?\@XSLT_LIBS\@?$(XSLT_LIBS) $(EXTRA_LIBS)?g' \
|
||||||
|
-e 's?\@XSLT_PRIVATE_LIBS\@?$(XSLT_PRIVATE_LIBS)?g' \
|
||||||
|
< $(srcdir)/xsltConf.sh.in > xsltConf.tmp \
|
||||||
|
&& mv xsltConf.tmp xsltConf.sh
|
||||||
|
|
||||||
EXTRA_DIST = $(man_MANS) trio.h triodef.h libxslt.syms
|
CLEANFILES = xsltConf.sh
|
||||||
|
|
||||||
xsltproc: all
|
check-local: tests
|
||||||
@(cd ../xsltproc ; $(MAKE))
|
|
||||||
|
dummy:
|
||||||
|
|
||||||
|
tests: dummy
|
||||||
|
@echo '## Running the regression test suite'
|
||||||
|
@(cd tests ; $(MAKE) -s tests)
|
||||||
|
@(cd xsltproc ; $(MAKE) -s tests)
|
||||||
|
@(if [ "$(PYTHON_SUBDIR)" != "" ] ; then cd python ; $(MAKE) -s tests ; fi)
|
||||||
|
|
||||||
|
valgrind:
|
||||||
|
@echo '## Running the regression tests under Valgrind'
|
||||||
|
@echo '## Go get a cup of coffee it is gonna take a while ...'
|
||||||
|
@(cd tests ; $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests)
|
||||||
|
@(cd xsltproc ; $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests)
|
||||||
|
|
||||||
|
cleanup:
|
||||||
|
-@(find . -name .\#\* -exec rm {} \;)
|
||||||
|
|
||||||
|
cleantar:
|
||||||
|
@(rm -f libxslt*.tar.gz)
|
||||||
|
|
||||||
|
rpm: cleantar
|
||||||
|
@(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz)
|
||||||
|
|
||||||
|
|
||||||
|
pkgconfigdir=$(libdir)/pkgconfig
|
||||||
|
pkgconfig_DATA = libxslt.pc libexslt.pc
|
||||||
|
|
||||||
|
m4datadir = $(datadir)/aclocal
|
||||||
|
m4data_DATA = libxslt.m4
|
||||||
|
|
||||||
install-exec-hook:
|
|
||||||
$(MKDIR_P) "$(DESTDIR)$(libdir)/libxslt-plugins"
|
|
||||||
|
|
2
dll/3rdparty/libxslt/security.c
vendored
2
dll/3rdparty/libxslt/security.c
vendored
|
@ -12,7 +12,7 @@
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||||
#ifndef INVALID_FILE_ATTRIBUTES
|
#ifndef INVALID_FILE_ATTRIBUTES
|
||||||
#define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
|
#define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
|
||||||
#endif
|
#endif
|
||||||
|
|
11
dll/3rdparty/libxslt/win32config.h
vendored
11
dll/3rdparty/libxslt/win32config.h
vendored
|
@ -77,15 +77,7 @@ static int isnan (double d) {
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
#ifdef __REACTOS__
|
|
||||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
|
||||||
#define mkdir(p,m) _mkdir(p)
|
|
||||||
#define snprintf _snprintf
|
|
||||||
#if _MSC_VER < 1500
|
|
||||||
#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#else /* __REACTOS__ */
|
|
||||||
/* snprintf emulation taken from http://stackoverflow.com/a/8712996/1956010 */
|
/* snprintf emulation taken from http://stackoverflow.com/a/8712996/1956010 */
|
||||||
#if defined(_MSC_VER) && _MSC_VER < 1900
|
#if defined(_MSC_VER) && _MSC_VER < 1900
|
||||||
|
|
||||||
|
@ -120,7 +112,6 @@ __inline int c99_snprintf(char *outBuf, size_t size, const char *format, ...)
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* defined(_MSC_VER) && _MSC_VER < 1900 */
|
#endif /* defined(_MSC_VER) && _MSC_VER < 1900 */
|
||||||
#endif /* __REACTOS__ */
|
|
||||||
|
|
||||||
#define HAVE_SYS_STAT_H
|
#define HAVE_SYS_STAT_H
|
||||||
#define HAVE__STAT
|
#define HAVE__STAT
|
||||||
|
|
2
dll/3rdparty/libxslt/xsltwin32config.h
vendored
2
dll/3rdparty/libxslt/xsltwin32config.h
vendored
|
@ -62,7 +62,7 @@ extern "C" {
|
||||||
*
|
*
|
||||||
* Whether module support is configured into libxslt
|
* Whether module support is configured into libxslt
|
||||||
*/
|
*/
|
||||||
#if 1
|
#if 0
|
||||||
#ifndef WITH_MODULES
|
#ifndef WITH_MODULES
|
||||||
#define WITH_MODULES
|
#define WITH_MODULES
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -27,12 +27,10 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __REACTOS__
|
|
||||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
#define mkdir(p,m) _mkdir(p)
|
#define mkdir(p,m) _mkdir(p)
|
||||||
#endif
|
#endif
|
||||||
#endif /* __REACTOS__ */
|
|
||||||
|
|
||||||
#endif /* ! __XSLT_LIBXSLT_H__ */
|
#endif /* ! __XSLT_LIBXSLT_H__ */
|
||||||
|
|
|
@ -51,11 +51,11 @@
|
||||||
#undef XSLTCALL
|
#undef XSLTCALL
|
||||||
#if defined(IN_LIBXSLT) && !defined(LIBXSLT_STATIC)
|
#if defined(IN_LIBXSLT) && !defined(LIBXSLT_STATIC)
|
||||||
#define XSLTPUBFUN __declspec(dllexport)
|
#define XSLTPUBFUN __declspec(dllexport)
|
||||||
#ifndef __clang__
|
#if defined(__REACTOS__) && defined(__clang__)
|
||||||
#define XSLTPUBVAR __declspec(dllexport)
|
#define XSLTPUBVAR __declspec(dllexport) extern
|
||||||
#else
|
#else
|
||||||
#define XSLTPUBVAR __declspec(dllexport) extern
|
#define XSLTPUBVAR __declspec(dllexport)
|
||||||
#endif
|
#endif /* __REACTOS__ && __clang__ */
|
||||||
#else
|
#else
|
||||||
#define XSLTPUBFUN
|
#define XSLTPUBFUN
|
||||||
#if !defined(LIBXSLT_STATIC)
|
#if !defined(LIBXSLT_STATIC)
|
||||||
|
|
Loading…
Reference in a new issue