From c0b89ac5bfb90835ef01573267020e42d4fe070c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 23 Aug 2015 12:17:05 +0200 Subject: Imported Upstream version 1.8.0 --- xml/ANNOUNCEMENT | 0 xml/CHANGES | 0 xml/COPYING | 0 xml/Makefile.in | 0 xml/README | 0 xml/afiles | 2 +- xml/config.h | 205 --------------------------------------------------- xml/config.h.in | 0 xml/configure | 0 xml/configure.in | 0 xml/doc/Mini-XML.pdf | Bin xml/install-sh | 0 xml/mxml-attr.c | 2 +- xml/mxml-config.h | 205 +++++++++++++++++++++++++++++++++++++++++++++++++++ xml/mxml-entity.c | 0 xml/mxml-file.c | 0 xml/mxml-get.c | 2 +- xml/mxml-index.c | 2 +- xml/mxml-node.c | 2 +- xml/mxml-private.c | 0 xml/mxml-private.h | 2 +- xml/mxml-search.c | 2 +- xml/mxml-set.c | 2 +- xml/mxml-string.c | 2 +- xml/mxml.h | 0 xml/mxml.list.in | 0 xml/mxml.pc.in | 0 xml/mxml.spec | 0 xml/mxml.xml | 0 xml/mxmldoc.c | 2 +- xml/test.xml | 0 xml/testmxml.c | 2 +- 32 files changed, 216 insertions(+), 216 deletions(-) mode change 100644 => 100755 xml/ANNOUNCEMENT mode change 100644 => 100755 xml/CHANGES mode change 100644 => 100755 xml/COPYING mode change 100644 => 100755 xml/Makefile.in mode change 100644 => 100755 xml/README mode change 100644 => 100755 xml/afiles delete mode 100644 xml/config.h mode change 100644 => 100755 xml/config.h.in mode change 100644 => 100755 xml/configure mode change 100644 => 100755 xml/configure.in mode change 100644 => 100755 xml/doc/Mini-XML.pdf mode change 100644 => 100755 xml/install-sh mode change 100644 => 100755 xml/mxml-attr.c create mode 100755 xml/mxml-config.h mode change 100644 => 100755 xml/mxml-entity.c mode change 100644 => 100755 xml/mxml-file.c mode change 100644 => 100755 xml/mxml-get.c mode change 100644 => 100755 xml/mxml-index.c mode change 100644 => 100755 xml/mxml-node.c mode change 100644 => 100755 xml/mxml-private.c mode change 100644 => 100755 xml/mxml-private.h mode change 100644 => 100755 xml/mxml-search.c mode change 100644 => 100755 xml/mxml-set.c mode change 100644 => 100755 xml/mxml-string.c mode change 100644 => 100755 xml/mxml.h mode change 100644 => 100755 xml/mxml.list.in mode change 100644 => 100755 xml/mxml.pc.in mode change 100644 => 100755 xml/mxml.spec mode change 100644 => 100755 xml/mxml.xml mode change 100644 => 100755 xml/mxmldoc.c mode change 100644 => 100755 xml/test.xml mode change 100644 => 100755 xml/testmxml.c (limited to 'xml') diff --git a/xml/ANNOUNCEMENT b/xml/ANNOUNCEMENT old mode 100644 new mode 100755 diff --git a/xml/CHANGES b/xml/CHANGES old mode 100644 new mode 100755 diff --git a/xml/COPYING b/xml/COPYING old mode 100644 new mode 100755 diff --git a/xml/Makefile.in b/xml/Makefile.in old mode 100644 new mode 100755 diff --git a/xml/README b/xml/README old mode 100644 new mode 100755 diff --git a/xml/afiles b/xml/afiles old mode 100644 new mode 100755 index 85c3914..9814c39 --- a/xml/afiles +++ b/xml/afiles @@ -10,7 +10,7 @@ config.h.in configure configure.in install-sh -config.h +mxml-config.h mxml.h mxml-attr.c mxml-entity.c diff --git a/xml/config.h b/xml/config.h deleted file mode 100644 index d0fcb76..0000000 --- a/xml/config.h +++ /dev/null @@ -1,205 +0,0 @@ -/* - * "$Id: config.h 408 2010-09-19 05:26:46Z mike $" - * - * Configuration file for Mini-XML, a small XML-like file parsing library. - * - * Copyright 2003-2010 by Michael R Sweet. - * - * These coded instructions, statements, and computer programs are the - * property of Michael R Sweet and are protected by Federal copyright - * law. Distribution and use rights are outlined in the file "COPYING" - * which should have been included with this file. If this file is - * missing or damaged, see the license at: - * - * http://www.minixml.org/ - */ - - -/* ================================================================ */ -#ifdef NT - -/* - * Beginning with VC2005, Microsoft breaks ISO C and POSIX conformance - * by deprecating a number of functions in the name of security, even - * when many of the affected functions are otherwise completely secure. - * The _CRT_SECURE_NO_DEPRECATE definition ensures that we won't get - * warnings from their use... - * - * Then Microsoft decided that they should ignore this in VC2008 and use - * yet another define (_CRT_SECURE_NO_WARNINGS) instead. Bastards. - */ - -#ifndef _CRT_SECURE_NO_DEPRECATE -# define _CRT_SECURE_NO_DEPRECATE -#endif - -#ifndef _CRT_SECURE_NO_WARNINGS -# define _CRT_SECURE_NO_WARNINGS -#endif - - -/* - * Include necessary headers... - */ - -#include -#include -#include -#include -#include -#include - - -/* - * Microsoft also renames the POSIX functions to _name, and introduces - * a broken compatibility layer using the original names. As a result, - * random crashes can occur when, for example, strdup() allocates memory - * from a different heap than used by malloc() and free(). - * - * To avoid moronic problems like this, we #define the POSIX function - * names to the corresponding non-standard Microsoft names. - */ - -#define close _close -#define open _open -#define read _read -#define snprintf _snprintf -#define strdup _strdup -#define vsnprintf _vsnprintf -#define write _write - - -/* - * Version number... - */ - -#define MXML_VERSION "Mini-XML v2.7" - - -/* - * Inline function support... - */ - -#define inline _inline - - -/* - * Long long support... - */ - -#define HAVE_LONG_LONG 1 - - -/* - * Do we have the snprintf() and vsnprintf() functions? - */ - -#define HAVE_SNPRINTF 1 -#define HAVE_VSNPRINTF 1 - - -/* - * Do we have the strXXX() functions? - */ - -#define HAVE_STRDUP 1 - - -/* - * Define prototypes for string functions as needed... - */ - -# ifndef HAVE_STRDUP -extern char *_mxml_strdup(const char *); -# define strdup _mxml_strdup -# endif /* !HAVE_STRDUP */ - -extern char *_mxml_strdupf(const char *, ...); -extern char *_mxml_vstrdupf(const char *, va_list); - -# ifndef HAVE_SNPRINTF -extern int _mxml_snprintf(char *, size_t, const char *, ...); -# define snprintf _mxml_snprintf -# endif /* !HAVE_SNPRINTF */ - -# ifndef HAVE_VSNPRINTF -extern int _mxml_vsnprintf(char *, size_t, const char *, va_list); -# define vsnprintf _mxml_vsnprintf -# endif /* !HAVE_VSNPRINTF */ - -#endif /* NT */ - -/* ================================================================ */ -/* Linux and OS X have exactly the same config */ - -#if defined(UNIX) - -/* - * Include necessary headers... - */ - -#include -#include -#include -#include -#include - -/* - * Inline function support... - */ - -#define inline - -/* - * Long long support... - */ - -#define HAVE_LONG_LONG 1 - -/* - * Do we have the snprintf() and vsnprintf() functions? - */ - -#define HAVE_SNPRINTF 1 -#define HAVE_VSNPRINTF 1 - -/* - * Do we have the strXXX() functions? - */ - -#define HAVE_STRDUP 1 - -/* - * Do we have threading support? - */ - -#define HAVE_PTHREAD_H 1 - -/* - * Define prototypes for string functions as needed... - */ - -# ifndef HAVE_STRDUP -extern char *_mxml_strdup(const char *); -# define strdup _mxml_strdup -# endif /* !HAVE_STRDUP */ - -extern char *_mxml_strdupf(const char *, ...); -extern char *_mxml_vstrdupf(const char *, va_list); - -# ifndef HAVE_SNPRINTF -extern int _mxml_snprintf(char *, size_t, const char *, ...); -# define snprintf _mxml_snprintf -# endif /* !HAVE_SNPRINTF */ - -# ifndef HAVE_VSNPRINTF -extern int _mxml_vsnprintf(char *, size_t, const char *, va_list); -# define vsnprintf _mxml_vsnprintf -# endif /* !HAVE_VSNPRINTF */ - -#endif /* UNIX */ - -/* - * End of "$Id: config.h 408 2010-09-19 05:26:46Z mike $". - */ - diff --git a/xml/config.h.in b/xml/config.h.in old mode 100644 new mode 100755 diff --git a/xml/configure b/xml/configure old mode 100644 new mode 100755 diff --git a/xml/configure.in b/xml/configure.in old mode 100644 new mode 100755 diff --git a/xml/doc/Mini-XML.pdf b/xml/doc/Mini-XML.pdf old mode 100644 new mode 100755 diff --git a/xml/install-sh b/xml/install-sh old mode 100644 new mode 100755 diff --git a/xml/mxml-attr.c b/xml/mxml-attr.c old mode 100644 new mode 100755 index c9950f5..53f8076 --- a/xml/mxml-attr.c +++ b/xml/mxml-attr.c @@ -26,7 +26,7 @@ * Include necessary headers... */ -#include "config.h" +#include "mxml-config.h" #include "mxml.h" diff --git a/xml/mxml-config.h b/xml/mxml-config.h new file mode 100755 index 0000000..072eab9 --- /dev/null +++ b/xml/mxml-config.h @@ -0,0 +1,205 @@ +/* + * "$Id: mxml-config.h 408 2010-09-19 05:26:46Z mike $" + * + * Configuration file for Mini-XML, a small XML-like file parsing library. + * + * Copyright 2003-2010 by Michael R Sweet. + * + * These coded instructions, statements, and computer programs are the + * property of Michael R Sweet and are protected by Federal copyright + * law. Distribution and use rights are outlined in the file "COPYING" + * which should have been included with this file. If this file is + * missing or damaged, see the license at: + * + * http://www.minixml.org/ + */ + + +/* ================================================================ */ +#ifdef NT + +/* + * Beginning with VC2005, Microsoft breaks ISO C and POSIX conformance + * by deprecating a number of functions in the name of security, even + * when many of the affected functions are otherwise completely secure. + * The _CRT_SECURE_NO_DEPRECATE definition ensures that we won't get + * warnings from their use... + * + * Then Microsoft decided that they should ignore this in VC2008 and use + * yet another define (_CRT_SECURE_NO_WARNINGS) instead. Bastards. + */ + +#ifndef _CRT_SECURE_NO_DEPRECATE +# define _CRT_SECURE_NO_DEPRECATE +#endif + +#ifndef _CRT_SECURE_NO_WARNINGS +# define _CRT_SECURE_NO_WARNINGS +#endif + + +/* + * Include necessary headers... + */ + +#include +#include +#include +#include +#include +#include + + +/* + * Microsoft also renames the POSIX functions to _name, and introduces + * a broken compatibility layer using the original names. As a result, + * random crashes can occur when, for example, strdup() allocates memory + * from a different heap than used by malloc() and free(). + * + * To avoid moronic problems like this, we #define the POSIX function + * names to the corresponding non-standard Microsoft names. + */ + +#define close _close +#define open _open +#define read _read +#define snprintf _snprintf +#define strdup _strdup +#define vsnprintf _vsnprintf +#define write _write + + +/* + * Version number... + */ + +#define MXML_VERSION "Mini-XML v2.7" + + +/* + * Inline function support... + */ + +#define inline _inline + + +/* + * Long long support... + */ + +#define HAVE_LONG_LONG 1 + + +/* + * Do we have the snprintf() and vsnprintf() functions? + */ + +#define HAVE_SNPRINTF 1 +#define HAVE_VSNPRINTF 1 + + +/* + * Do we have the strXXX() functions? + */ + +#define HAVE_STRDUP 1 + + +/* + * Define prototypes for string functions as needed... + */ + +# ifndef HAVE_STRDUP +extern char *_mxml_strdup(const char *); +# define strdup _mxml_strdup +# endif /* !HAVE_STRDUP */ + +extern char *_mxml_strdupf(const char *, ...); +extern char *_mxml_vstrdupf(const char *, va_list); + +# ifndef HAVE_SNPRINTF +extern int _mxml_snprintf(char *, size_t, const char *, ...); +# define snprintf _mxml_snprintf +# endif /* !HAVE_SNPRINTF */ + +# ifndef HAVE_VSNPRINTF +extern int _mxml_vsnprintf(char *, size_t, const char *, va_list); +# define vsnprintf _mxml_vsnprintf +# endif /* !HAVE_VSNPRINTF */ + +#endif /* NT */ + +/* ================================================================ */ +/* Linux and OS X have exactly the same config */ + +#if defined(UNIX) + +/* + * Include necessary headers... + */ + +#include +#include +#include +#include +#include + +/* + * Inline function support... + */ + +#define inline + +/* + * Long long support... + */ + +#define HAVE_LONG_LONG 1 + +/* + * Do we have the snprintf() and vsnprintf() functions? + */ + +#define HAVE_SNPRINTF 1 +#define HAVE_VSNPRINTF 1 + +/* + * Do we have the strXXX() functions? + */ + +#define HAVE_STRDUP 1 + +/* + * Do we have threading support? + */ + +#define HAVE_PTHREAD_H 1 + +/* + * Define prototypes for string functions as needed... + */ + +# ifndef HAVE_STRDUP +extern char *_mxml_strdup(const char *); +# define strdup _mxml_strdup +# endif /* !HAVE_STRDUP */ + +extern char *_mxml_strdupf(const char *, ...); +extern char *_mxml_vstrdupf(const char *, va_list); + +# ifndef HAVE_SNPRINTF +extern int _mxml_snprintf(char *, size_t, const char *, ...); +# define snprintf _mxml_snprintf +# endif /* !HAVE_SNPRINTF */ + +# ifndef HAVE_VSNPRINTF +extern int _mxml_vsnprintf(char *, size_t, const char *, va_list); +# define vsnprintf _mxml_vsnprintf +# endif /* !HAVE_VSNPRINTF */ + +#endif /* UNIX */ + +/* + * End of "$Id: mxml-config.h 408 2010-09-19 05:26:46Z mike $". + */ + diff --git a/xml/mxml-entity.c b/xml/mxml-entity.c old mode 100644 new mode 100755 diff --git a/xml/mxml-file.c b/xml/mxml-file.c old mode 100644 new mode 100755 diff --git a/xml/mxml-get.c b/xml/mxml-get.c old mode 100644 new mode 100755 index a5356d5..c8260c3 --- a/xml/mxml-get.c +++ b/xml/mxml-get.c @@ -37,7 +37,7 @@ * Include necessary headers... */ -#include "config.h" +#include "mxml-config.h" #include "mxml.h" diff --git a/xml/mxml-index.c b/xml/mxml-index.c old mode 100644 new mode 100755 index b6efc66..3bf17da --- a/xml/mxml-index.c +++ b/xml/mxml-index.c @@ -21,7 +21,7 @@ * Include necessary headers... */ -#include "config.h" +#include "mxml-config.h" #include "mxml.h" diff --git a/xml/mxml-node.c b/xml/mxml-node.c old mode 100644 new mode 100755 index 44af759..bebda10 --- a/xml/mxml-node.c +++ b/xml/mxml-node.c @@ -37,7 +37,7 @@ * Include necessary headers... */ -#include "config.h" +#include "mxml-config.h" #include "mxml.h" diff --git a/xml/mxml-private.c b/xml/mxml-private.c old mode 100644 new mode 100755 diff --git a/xml/mxml-private.h b/xml/mxml-private.h old mode 100644 new mode 100755 index 8789e6c..02e76d2 --- a/xml/mxml-private.h +++ b/xml/mxml-private.h @@ -18,7 +18,7 @@ * Include necessary headers... */ -#include "config.h" +#include "mxml-config.h" #include "mxml.h" diff --git a/xml/mxml-search.c b/xml/mxml-search.c old mode 100644 new mode 100755 index 3b4eb3f..2a02bd7 --- a/xml/mxml-search.c +++ b/xml/mxml-search.c @@ -26,7 +26,7 @@ * Include necessary headers... */ -#include "config.h" +#include "mxml-config.h" #include "mxml.h" diff --git a/xml/mxml-set.c b/xml/mxml-set.c old mode 100644 new mode 100755 index b0bd527..3251cc1 --- a/xml/mxml-set.c +++ b/xml/mxml-set.c @@ -30,7 +30,7 @@ * Include necessary headers... */ -#include "config.h" +#include "mxml-config.h" #include "mxml.h" diff --git a/xml/mxml-string.c b/xml/mxml-string.c old mode 100644 new mode 100755 index 6be4252..caead17 --- a/xml/mxml-string.c +++ b/xml/mxml-string.c @@ -26,7 +26,7 @@ * Include necessary headers... */ -#include "config.h" +#include "mxml-config.h" /* diff --git a/xml/mxml.h b/xml/mxml.h old mode 100644 new mode 100755 diff --git a/xml/mxml.list.in b/xml/mxml.list.in old mode 100644 new mode 100755 diff --git a/xml/mxml.pc.in b/xml/mxml.pc.in old mode 100644 new mode 100755 diff --git a/xml/mxml.spec b/xml/mxml.spec old mode 100644 new mode 100755 diff --git a/xml/mxml.xml b/xml/mxml.xml old mode 100644 new mode 100755 diff --git a/xml/mxmldoc.c b/xml/mxmldoc.c old mode 100644 new mode 100755 index 28316ee..4b26f7e --- a/xml/mxmldoc.c +++ b/xml/mxmldoc.c @@ -48,7 +48,7 @@ * Include necessary headers... */ -#include "config.h" +#include "mxml-config.h" #include "mxml.h" #include #include diff --git a/xml/test.xml b/xml/test.xml old mode 100644 new mode 100755 diff --git a/xml/testmxml.c b/xml/testmxml.c old mode 100644 new mode 100755 index 9bfa498..35186cf --- a/xml/testmxml.c +++ b/xml/testmxml.c @@ -26,7 +26,7 @@ * Include necessary headers... */ -#include "config.h" +#include "mxml-config.h" #include "mxml.h" #ifndef WIN32 # include -- cgit v1.2.3