Skip to content

Commit

Permalink
Update libxml2 to version 2.12.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
enzo1982 committed Feb 19, 2024
1 parent 48f7fb5 commit 0f45e67
Show file tree
Hide file tree
Showing 53 changed files with 6,293 additions and 7,695 deletions.
2 changes: 1 addition & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dd.mm.yy hh:mm - smooth alpha 0.9.11

- upgraded fribidi to version 1.0.13
- upgraded libcpuid to version 0.6.4
- upgraded libxml2 to version 2.11.5
- upgraded libxml2 to version 2.12.5
- upgraded libcurl to version 8.6.0
- upgraded libpng to version 1.6.42
- upgraded libwebp to version 1.3.2
Expand Down
23 changes: 23 additions & 0 deletions include/support/libxml2/libxml/HTMLparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,23 @@ struct _htmlEntityDesc {
const char *desc; /* the description */
};

/** DOC_DISABLE */
#ifdef LIBXML_SAX1_ENABLED
#define XML_GLOBALS_HTML \
XML_OP(htmlDefaultSAXHandler, xmlSAXHandlerV1, XML_DEPRECATED)
#else
#define XML_GLOBALS_HTML
#endif

#define XML_OP XML_DECLARE_GLOBAL
XML_GLOBALS_HTML
#undef XML_OP

#if defined(LIBXML_THREAD_ENABLED) && !defined(XML_GLOBALS_NO_REDEFINITION)
#define htmlDefaultSAXHandler XML_GLOBAL_MACRO(htmlDefaultSAXHandler)
#endif
/** DOC_ENABLE */

/*
* There is only few public functions.
*/
Expand Down Expand Up @@ -316,5 +333,11 @@ XMLPUBFUN htmlStatus htmlNodeStatus(const htmlNodePtr, int) ;
}
#endif

#else /* LIBXML_HTML_ENABLED */

/** DOC_DISABLE */
#define XML_GLOBALS_HTML
/** DOC_ENABLE */

#endif /* LIBXML_HTML_ENABLED */
#endif /* __HTML_PARSER_H__ */
2 changes: 0 additions & 2 deletions include/support/libxml2/libxml/SAX.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#ifndef __XML_SAX_H__
#define __XML_SAX_H__

#include <stdio.h>
#include <stdlib.h>
#include <libxml/xmlversion.h>
#include <libxml/parser.h>

Expand Down
2 changes: 0 additions & 2 deletions include/support/libxml2/libxml/SAX2.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#ifndef __XML_SAX2_H__
#define __XML_SAX2_H__

#include <stdio.h>
#include <stdlib.h>
#include <libxml/xmlversion.h>
#include <libxml/parser.h>

Expand Down
1 change: 1 addition & 0 deletions include/support/libxml2/libxml/dict.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#include <stddef.h>
#include <libxml/xmlversion.h>
#include <libxml/xmlstring.h>

#ifdef __cplusplus
extern "C" {
Expand Down
30 changes: 16 additions & 14 deletions include/support/libxml2/libxml/encoding.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@
extern "C" {
#endif

typedef enum {
XML_ENC_ERR_SUCCESS = 0,
XML_ENC_ERR_SPACE = -1,
XML_ENC_ERR_INPUT = -2,
XML_ENC_ERR_PARTIAL = -3,
XML_ENC_ERR_INTERNAL = -4,
XML_ENC_ERR_MEMORY = -5
} xmlCharEncError;

/*
* xmlCharEncoding:
*
Expand Down Expand Up @@ -142,14 +151,6 @@ struct _xmlCharEncodingHandler {
#endif /* LIBXML_ICU_ENABLED */
};

#ifdef __cplusplus
}
#endif
#include <libxml/tree.h>
#ifdef __cplusplus
extern "C" {
#endif

/*
* Interfaces for encoding handlers.
*/
Expand Down Expand Up @@ -194,20 +195,21 @@ XMLPUBFUN xmlCharEncoding
xmlDetectCharEncoding (const unsigned char *in,
int len);

struct _xmlBuffer;
XMLPUBFUN int
xmlCharEncOutFunc (xmlCharEncodingHandler *handler,
xmlBufferPtr out,
xmlBufferPtr in);
struct _xmlBuffer *out,
struct _xmlBuffer *in);

XMLPUBFUN int
xmlCharEncInFunc (xmlCharEncodingHandler *handler,
xmlBufferPtr out,
xmlBufferPtr in);
struct _xmlBuffer *out,
struct _xmlBuffer *in);
XML_DEPRECATED
XMLPUBFUN int
xmlCharEncFirstLine (xmlCharEncodingHandler *handler,
xmlBufferPtr out,
xmlBufferPtr in);
struct _xmlBuffer *out,
struct _xmlBuffer *in);
XMLPUBFUN int
xmlCharEncCloseFunc (xmlCharEncodingHandler *handler);

Expand Down
4 changes: 4 additions & 0 deletions include/support/libxml2/libxml/entities.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
#define __XML_ENTITIES_H__

#include <libxml/xmlversion.h>
#define XML_TREE_INTERNALS
#include <libxml/tree.h>
#undef XML_TREE_INTERNALS

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -85,6 +87,8 @@ XMLPUBFUN xmlEntityPtr
const xmlChar *ExternalID,
const xmlChar *SystemID,
const xmlChar *content);
XMLPUBFUN void
xmlFreeEntity (xmlEntityPtr entity);
XMLPUBFUN xmlEntityPtr
xmlAddDocEntity (xmlDocPtr doc,
const xmlChar *name,
Expand Down
Loading

0 comments on commit 0f45e67

Please sign in to comment.