Skip to content

Commit a206a64

Browse files
committed
project: Update for 2.12.3 merge.
1 parent 9fb9165 commit a206a64

File tree

3 files changed

+52
-72
lines changed

3 files changed

+52
-72
lines changed

SMP/SMP.patch

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/catalog.c b/catalog.c
2-
index 24a49f3d..0eaaf7ba 100644
2+
index 945ea2c8..73902f29 100644
33
--- a/catalog.c
44
+++ b/catalog.c
5-
@@ -75,6 +75,10 @@
5+
@@ -74,6 +74,10 @@
66
#endif
77

88
#if defined(_WIN32) && defined(_MSC_VER)
@@ -13,7 +13,7 @@ index 24a49f3d..0eaaf7ba 100644
1313
#undef XML_XML_DEFAULT_CATALOG
1414
static char XML_XML_DEFAULT_CATALOG[256] = "file://" SYSCONFDIR "/xml/catalog";
1515
#if !defined(_WINDOWS_)
16-
@@ -3113,12 +3117,17 @@ xmlInitializeCatalog(void) {
16+
@@ -3112,12 +3116,17 @@ xmlInitializeCatalog(void) {
1717

1818
catalogs = (const char *) getenv("XML_CATALOG_FILES");
1919
if (catalogs == NULL)
@@ -34,26 +34,21 @@ index 24a49f3d..0eaaf7ba 100644
3434
if (hmodule != NULL) {
3535
char buf[256];
3636
unsigned long len = GetModuleFileNameA(hmodule, buf, 255);
37-
diff --git a/nanohttp.c b/nanohttp.c
38-
index e014fe48..4e7b7c7f 100644
39-
--- a/nanohttp.c
40-
+++ b/nanohttp.c
41-
@@ -64,6 +64,13 @@
42-
#include <wsockcompat.h>
43-
#endif
37+
diff --git a/parser.c b/parser.c
38+
index dd5dd1fc..e3587dc5 100644
39+
--- a/parser.c
40+
+++ b/parser.c
41+
@@ -9888,7 +9888,7 @@ next_attr:
42+
if (defaults != NULL) {
43+
for (i = 0; i < defaults->nbAttrs; i++) {
44+
xmlDefAttr *attr = &defaults->attrs[i];
45+
- const xmlChar *nsuri;
46+
+ const xmlChar *nsuri = NULL;
47+
unsigned hashValue, uriHashValue;
48+
int res;
4449

45-
+#if defined(_WIN32) && defined(_MSC_VER)
46-
+#include <winapifamily.h>
47-
+#if defined(WINAPI_FAMILY_PARTITION) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
48-
+#define getenv(x) NULL
49-
+#endif
50-
+#endif
51-
+
52-
#include <libxml/globals.h>
53-
#include <libxml/xmlerror.h>
54-
#include <libxml/xmlmemory.h>
5550
diff --git a/xmlIO.c b/xmlIO.c
56-
index 5cab16f4..230e4abb 100644
51+
index 90379e2d..e11bcf3a 100644
5752
--- a/xmlIO.c
5853
+++ b/xmlIO.c
5954
@@ -38,6 +38,13 @@
@@ -70,7 +65,7 @@ index 5cab16f4..230e4abb 100644
7065
#ifndef S_ISDIR
7166
# ifdef _S_ISDIR
7267
# define S_ISDIR(x) _S_ISDIR(x)
73-
@@ -3717,11 +3724,13 @@ xmlParserGetDirectory(const char *filename) {
68+
@@ -3687,11 +3694,13 @@ xmlParserGetDirectory(const char *filename) {
7469
if (cur == dir) dir[1] = 0;
7570
else *cur = 0;
7671
ret = xmlMemStrdup(dir);
@@ -85,10 +80,10 @@ index 5cab16f4..230e4abb 100644
8580
return(ret);
8681
#undef IS_XMLPGD_SEP
8782
diff --git a/xmlmemory.c b/xmlmemory.c
88-
index 9ec4770b..2d8bc376 100644
83+
index 1e999b11..694c8092 100644
8984
--- a/xmlmemory.c
9085
+++ b/xmlmemory.c
91-
@@ -41,6 +41,13 @@ static xmlMutex xmlMemMutex;
86+
@@ -39,6 +39,13 @@ static xmlMutex xmlMemMutex;
9287

9388
void xmlMallocBreakpoint(void);
9489

@@ -103,7 +98,7 @@ index 9ec4770b..2d8bc376 100644
10398
* *
10499
* Macros, variables and associated types *
105100
diff --git a/xmlmodule.c b/xmlmodule.c
106-
index cbb25a6d..5b2ae01b 100644
101+
index d8bce329..2118a7e8 100644
107102
--- a/xmlmodule.c
108103
+++ b/xmlmodule.c
109104
@@ -316,7 +316,15 @@ xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)

SMP/libxml/xmlversion.h

Lines changed: 29 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -29,36 +29,36 @@ XMLPUBFUN void xmlCheckVersion(int version);
2929
*
3030
* the version string like "1.2.3"
3131
*/
32-
#define LIBXML_DOTTED_VERSION "2.11.4"
32+
#define LIBXML_DOTTED_VERSION "2.12.3"
3333

3434
/**
3535
* LIBXML_VERSION:
3636
*
3737
* the version number: 1.2.3 value is 10203
3838
*/
39-
#define LIBXML_VERSION 20114
39+
#define LIBXML_VERSION 20123
4040

4141
/**
4242
* LIBXML_VERSION_STRING:
4343
*
4444
* the version number string, 1.2.3 value is "10203"
4545
*/
46-
#define LIBXML_VERSION_STRING "20114"
46+
#define LIBXML_VERSION_STRING "20123"
4747

4848
/**
4949
* LIBXML_VERSION_EXTRA:
5050
*
5151
* extra version information, used to show a git commit description
5252
*/
53-
#define LIBXML_VERSION_EXTRA "-GITv2.11.4"
53+
#define LIBXML_VERSION_EXTRA "-GITv2.12.3"
5454

5555
/**
5656
* LIBXML_TEST_VERSION:
5757
*
5858
* Macro to check that the libxml version in use is compatible with
5959
* the version the software has been compiled against
6060
*/
61-
#define LIBXML_TEST_VERSION xmlCheckVersion(20114);
61+
#define LIBXML_TEST_VERSION xmlCheckVersion(20123);
6262

6363
#ifndef VMS
6464
#if 0
@@ -449,43 +449,27 @@ XMLPUBFUN void xmlCheckVersion(int version);
449449
#endif
450450

451451
#if defined(__clang__) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 406)
452-
#define XML_IGNORE_FPTR_CAST_WARNINGS \
453-
_Pragma("GCC diagnostic push") \
454-
_Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
455-
_Pragma("GCC diagnostic ignored \"-Wcast-function-type\"")
456-
#define XML_POP_WARNINGS \
452+
#if defined(__clang__) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 800)
453+
#define XML_IGNORE_FPTR_CAST_WARNINGS \
454+
_Pragma("GCC diagnostic push") \
455+
_Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
456+
_Pragma("GCC diagnostic ignored \"-Wcast-function-type\"")
457+
#else
458+
#define XML_IGNORE_FPTR_CAST_WARNINGS \
459+
_Pragma("GCC diagnostic push") \
460+
_Pragma("GCC diagnostic ignored \"-Wpedantic\"")
461+
#endif
462+
#define XML_POP_WARNINGS \
457463
_Pragma("GCC diagnostic pop")
458464
#else
459-
#define XML_IGNORE_FPTR_CAST_WARNINGS
460-
#define XML_POP_WARNINGS
465+
#define XML_IGNORE_FPTR_CAST_WARNINGS
466+
#define XML_POP_WARNINGS
461467
#endif
462468

463-
/** DOC_ENABLE */
464469
#else /* ! __GNUC__ */
465-
/**
466-
* ATTRIBUTE_UNUSED:
467-
*
468-
* Macro used to signal to GCC unused function parameters
469-
*/
470470
#define ATTRIBUTE_UNUSED
471-
/**
472-
* LIBXML_ATTR_ALLOC_SIZE:
473-
*
474-
* Macro used to indicate to GCC this is an allocator function
475-
*/
476471
#define LIBXML_ATTR_ALLOC_SIZE(x)
477-
/**
478-
* LIBXML_ATTR_FORMAT:
479-
*
480-
* Macro used to indicate to GCC the parameter are printf like
481-
*/
482472
#define LIBXML_ATTR_FORMAT(fmt,args)
483-
/**
484-
* XML_DEPRECATED:
485-
*
486-
* Macro used to indicate that a function, variable, type or struct member
487-
* is deprecated.
488-
*/
489473
#ifndef XML_DEPRECATED
490474
# if defined (IN_LIBXML) || !defined (_MSC_VER)
491475
# define XML_DEPRECATED
@@ -494,21 +478,11 @@ XMLPUBFUN void xmlCheckVersion(int version);
494478
# define XML_DEPRECATED __declspec(deprecated)
495479
# endif
496480
#endif
497-
/**
498-
* LIBXML_IGNORE_FPTR_CAST_WARNINGS:
499-
*
500-
* Macro used to ignore pointer cast warnings that can't be worked around.
501-
*/
502481
#if defined (_MSC_VER) && (_MSC_VER >= 1400)
503482
# define XML_IGNORE_FPTR_CAST_WARNINGS __pragma(warning(push))
504483
#else
505484
# define XML_IGNORE_FPTR_CAST_WARNINGS
506485
#endif
507-
/**
508-
* XML_POP_WARNINGS:
509-
*
510-
* Macro used to restore warnings state.
511-
*/
512486
#ifndef XML_POP_WARNINGS
513487
# if defined (_MSC_VER) && (_MSC_VER >= 1400)
514488
# define XML_POP_WARNINGS __pragma(warning(pop))
@@ -518,6 +492,17 @@ XMLPUBFUN void xmlCheckVersion(int version);
518492
#endif
519493
#endif /* __GNUC__ */
520494

495+
#define XML_NO_ATTR
496+
497+
#ifdef LIBXML_THREAD_ENABLED
498+
#define XML_DECLARE_GLOBAL(name, type, attrs) \
499+
attrs XMLPUBFUN type *__##name(void);
500+
#define XML_GLOBAL_MACRO(name) (*__##name())
501+
#else
502+
#define XML_DECLARE_GLOBAL(name, type, attrs) \
503+
attrs XMLPUBVAR type name;
504+
#endif
505+
521506
#ifdef __cplusplus
522507
}
523508
#endif /* __cplusplus */

SMP/rcVersion.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
*/
55

66
#define LIBXML_MAJOR_VERSION 2
7-
#define LIBXML_MINOR_VERSION 11
8-
#define LIBXML_MICRO_VERSION 4
9-
#define LIBXML_DOTTED_VERSION "2.11.4"
7+
#define LIBXML_MINOR_VERSION 12
8+
#define LIBXML_MICRO_VERSION 3
9+
#define LIBXML_DOTTED_VERSION "2.12.3"

0 commit comments

Comments
 (0)