@img/sharp-libvips-dev 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/include/expat.h +37 -24
- package/include/expat_config.h +9 -9
- package/include/expat_external.h +62 -61
- package/include/libxml2/libxml/HTMLparser.h +159 -101
- package/include/libxml2/libxml/HTMLtree.h +49 -74
- package/include/libxml2/libxml/SAX.h +8 -5
- package/include/libxml2/libxml/SAX2.h +18 -15
- package/include/libxml2/libxml/c14n.h +30 -29
- package/include/libxml2/libxml/catalog.h +47 -22
- package/include/libxml2/libxml/chvalid.h +52 -64
- package/include/libxml2/libxml/debugXML.h +18 -15
- package/include/libxml2/libxml/dict.h +22 -19
- package/include/libxml2/libxml/encoding.h +144 -111
- package/include/libxml2/libxml/entities.h +95 -75
- package/include/libxml2/libxml/globals.h +7 -4
- package/include/libxml2/libxml/hash.h +61 -64
- package/include/libxml2/libxml/list.h +59 -51
- package/include/libxml2/libxml/nanoftp.h +7 -4
- package/include/libxml2/libxml/nanohttp.h +10 -7
- package/include/libxml2/libxml/parser.h +1091 -563
- package/include/libxml2/libxml/parserInternals.h +167 -214
- package/include/libxml2/libxml/pattern.h +29 -31
- package/include/libxml2/libxml/relaxng.h +59 -58
- package/include/libxml2/libxml/schemasInternals.h +114 -268
- package/include/libxml2/libxml/schematron.h +59 -51
- package/include/libxml2/libxml/threads.h +19 -20
- package/include/libxml2/libxml/tree.h +873 -623
- package/include/libxml2/libxml/uri.h +21 -22
- package/include/libxml2/libxml/valid.h +170 -199
- package/include/libxml2/libxml/xinclude.h +24 -43
- package/include/libxml2/libxml/xlink.h +55 -51
- package/include/libxml2/libxml/xmlIO.h +133 -151
- package/include/libxml2/libxml/xmlautomata.h +66 -65
- package/include/libxml2/libxml/xmlerror.h +197 -94
- package/include/libxml2/libxml/xmlexports.h +17 -19
- package/include/libxml2/libxml/xmlmemory.h +44 -29
- package/include/libxml2/libxml/xmlmodule.h +14 -15
- package/include/libxml2/libxml/xmlreader.h +137 -131
- package/include/libxml2/libxml/xmlregexp.h +28 -31
- package/include/libxml2/libxml/xmlsave.h +81 -36
- package/include/libxml2/libxml/xmlschemas.h +61 -67
- package/include/libxml2/libxml/xmlschemastypes.h +60 -54
- package/include/libxml2/libxml/xmlstring.h +8 -9
- package/include/libxml2/libxml/xmlunicode.h +6 -3
- package/include/libxml2/libxml/xmlversion.h +44 -121
- package/include/libxml2/libxml/xmlwriter.h +97 -97
- package/include/libxml2/libxml/xpath.h +235 -232
- package/include/libxml2/libxml/xpathInternals.h +247 -277
- package/include/libxml2/libxml/xpointer.h +21 -17
- package/package.json +1 -1
- package/versions.json +2 -2
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
1
|
+
/**
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
4
|
+
* @brief API to build regexp automata
|
|
5
|
+
*
|
|
6
|
+
* These are internal functions and shouldn't be used.
|
|
4
7
|
*
|
|
5
|
-
*
|
|
8
|
+
* @copyright See Copyright for the status of this software.
|
|
6
9
|
*
|
|
7
|
-
*
|
|
10
|
+
* @author Daniel Veillard
|
|
8
11
|
*/
|
|
9
12
|
|
|
10
13
|
#ifndef __XML_AUTOMATA_H__
|
|
@@ -21,17 +24,15 @@ extern "C" {
|
|
|
21
24
|
#endif
|
|
22
25
|
|
|
23
26
|
/**
|
|
24
|
-
*
|
|
27
|
+
* A libxml automata description
|
|
25
28
|
*
|
|
26
|
-
*
|
|
29
|
+
* It can be compiled into a regexp
|
|
27
30
|
*/
|
|
28
31
|
typedef struct _xmlAutomata xmlAutomata;
|
|
29
32
|
typedef xmlAutomata *xmlAutomataPtr;
|
|
30
33
|
|
|
31
34
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* A state int the automata description,
|
|
35
|
+
* A state in the automata description
|
|
35
36
|
*/
|
|
36
37
|
typedef struct _xmlAutomataState xmlAutomataState;
|
|
37
38
|
typedef xmlAutomataState *xmlAutomataStatePtr;
|
|
@@ -40,119 +41,119 @@ typedef xmlAutomataState *xmlAutomataStatePtr;
|
|
|
40
41
|
* Building API
|
|
41
42
|
*/
|
|
42
43
|
XML_DEPRECATED
|
|
43
|
-
XMLPUBFUN
|
|
44
|
+
XMLPUBFUN xmlAutomata *
|
|
44
45
|
xmlNewAutomata (void);
|
|
45
46
|
XML_DEPRECATED
|
|
46
47
|
XMLPUBFUN void
|
|
47
|
-
xmlFreeAutomata (
|
|
48
|
+
xmlFreeAutomata (xmlAutomata *am);
|
|
48
49
|
|
|
49
50
|
XML_DEPRECATED
|
|
50
|
-
XMLPUBFUN
|
|
51
|
-
xmlAutomataGetInitState (
|
|
51
|
+
XMLPUBFUN xmlAutomataState *
|
|
52
|
+
xmlAutomataGetInitState (xmlAutomata *am);
|
|
52
53
|
XML_DEPRECATED
|
|
53
54
|
XMLPUBFUN int
|
|
54
|
-
xmlAutomataSetFinalState (
|
|
55
|
-
|
|
55
|
+
xmlAutomataSetFinalState (xmlAutomata *am,
|
|
56
|
+
xmlAutomataState *state);
|
|
56
57
|
XML_DEPRECATED
|
|
57
|
-
XMLPUBFUN
|
|
58
|
-
xmlAutomataNewState (
|
|
58
|
+
XMLPUBFUN xmlAutomataState *
|
|
59
|
+
xmlAutomataNewState (xmlAutomata *am);
|
|
59
60
|
XML_DEPRECATED
|
|
60
|
-
XMLPUBFUN
|
|
61
|
-
xmlAutomataNewTransition (
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
XMLPUBFUN xmlAutomataState *
|
|
62
|
+
xmlAutomataNewTransition (xmlAutomata *am,
|
|
63
|
+
xmlAutomataState *from,
|
|
64
|
+
xmlAutomataState *to,
|
|
64
65
|
const xmlChar *token,
|
|
65
66
|
void *data);
|
|
66
67
|
XML_DEPRECATED
|
|
67
|
-
XMLPUBFUN
|
|
68
|
-
xmlAutomataNewTransition2 (
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
XMLPUBFUN xmlAutomataState *
|
|
69
|
+
xmlAutomataNewTransition2 (xmlAutomata *am,
|
|
70
|
+
xmlAutomataState *from,
|
|
71
|
+
xmlAutomataState *to,
|
|
71
72
|
const xmlChar *token,
|
|
72
73
|
const xmlChar *token2,
|
|
73
74
|
void *data);
|
|
74
75
|
XML_DEPRECATED
|
|
75
|
-
XMLPUBFUN
|
|
76
|
-
xmlAutomataNewNegTrans (
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
XMLPUBFUN xmlAutomataState *
|
|
77
|
+
xmlAutomataNewNegTrans (xmlAutomata *am,
|
|
78
|
+
xmlAutomataState *from,
|
|
79
|
+
xmlAutomataState *to,
|
|
79
80
|
const xmlChar *token,
|
|
80
81
|
const xmlChar *token2,
|
|
81
82
|
void *data);
|
|
82
83
|
|
|
83
84
|
XML_DEPRECATED
|
|
84
|
-
XMLPUBFUN
|
|
85
|
-
xmlAutomataNewCountTrans (
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
XMLPUBFUN xmlAutomataState *
|
|
86
|
+
xmlAutomataNewCountTrans (xmlAutomata *am,
|
|
87
|
+
xmlAutomataState *from,
|
|
88
|
+
xmlAutomataState *to,
|
|
88
89
|
const xmlChar *token,
|
|
89
90
|
int min,
|
|
90
91
|
int max,
|
|
91
92
|
void *data);
|
|
92
93
|
XML_DEPRECATED
|
|
93
|
-
XMLPUBFUN
|
|
94
|
-
xmlAutomataNewCountTrans2 (
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
XMLPUBFUN xmlAutomataState *
|
|
95
|
+
xmlAutomataNewCountTrans2 (xmlAutomata *am,
|
|
96
|
+
xmlAutomataState *from,
|
|
97
|
+
xmlAutomataState *to,
|
|
97
98
|
const xmlChar *token,
|
|
98
99
|
const xmlChar *token2,
|
|
99
100
|
int min,
|
|
100
101
|
int max,
|
|
101
102
|
void *data);
|
|
102
103
|
XML_DEPRECATED
|
|
103
|
-
XMLPUBFUN
|
|
104
|
-
xmlAutomataNewOnceTrans (
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
XMLPUBFUN xmlAutomataState *
|
|
105
|
+
xmlAutomataNewOnceTrans (xmlAutomata *am,
|
|
106
|
+
xmlAutomataState *from,
|
|
107
|
+
xmlAutomataState *to,
|
|
107
108
|
const xmlChar *token,
|
|
108
109
|
int min,
|
|
109
110
|
int max,
|
|
110
111
|
void *data);
|
|
111
112
|
XML_DEPRECATED
|
|
112
|
-
XMLPUBFUN
|
|
113
|
-
xmlAutomataNewOnceTrans2 (
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
XMLPUBFUN xmlAutomataState *
|
|
114
|
+
xmlAutomataNewOnceTrans2 (xmlAutomata *am,
|
|
115
|
+
xmlAutomataState *from,
|
|
116
|
+
xmlAutomataState *to,
|
|
116
117
|
const xmlChar *token,
|
|
117
118
|
const xmlChar *token2,
|
|
118
119
|
int min,
|
|
119
120
|
int max,
|
|
120
121
|
void *data);
|
|
121
122
|
XML_DEPRECATED
|
|
122
|
-
XMLPUBFUN
|
|
123
|
-
xmlAutomataNewAllTrans (
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
XMLPUBFUN xmlAutomataState *
|
|
124
|
+
xmlAutomataNewAllTrans (xmlAutomata *am,
|
|
125
|
+
xmlAutomataState *from,
|
|
126
|
+
xmlAutomataState *to,
|
|
126
127
|
int lax);
|
|
127
128
|
XML_DEPRECATED
|
|
128
|
-
XMLPUBFUN
|
|
129
|
-
xmlAutomataNewEpsilon (
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
XMLPUBFUN xmlAutomataState *
|
|
130
|
+
xmlAutomataNewEpsilon (xmlAutomata *am,
|
|
131
|
+
xmlAutomataState *from,
|
|
132
|
+
xmlAutomataState *to);
|
|
132
133
|
XML_DEPRECATED
|
|
133
|
-
XMLPUBFUN
|
|
134
|
-
xmlAutomataNewCountedTrans (
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
XMLPUBFUN xmlAutomataState *
|
|
135
|
+
xmlAutomataNewCountedTrans (xmlAutomata *am,
|
|
136
|
+
xmlAutomataState *from,
|
|
137
|
+
xmlAutomataState *to,
|
|
137
138
|
int counter);
|
|
138
139
|
XML_DEPRECATED
|
|
139
|
-
XMLPUBFUN
|
|
140
|
-
xmlAutomataNewCounterTrans (
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
XMLPUBFUN xmlAutomataState *
|
|
141
|
+
xmlAutomataNewCounterTrans (xmlAutomata *am,
|
|
142
|
+
xmlAutomataState *from,
|
|
143
|
+
xmlAutomataState *to,
|
|
143
144
|
int counter);
|
|
144
145
|
XML_DEPRECATED
|
|
145
146
|
XMLPUBFUN int
|
|
146
|
-
xmlAutomataNewCounter (
|
|
147
|
+
xmlAutomataNewCounter (xmlAutomata *am,
|
|
147
148
|
int min,
|
|
148
149
|
int max);
|
|
149
150
|
|
|
150
151
|
XML_DEPRECATED
|
|
151
152
|
XMLPUBFUN struct _xmlRegexp *
|
|
152
|
-
xmlAutomataCompile (
|
|
153
|
+
xmlAutomataCompile (xmlAutomata *am);
|
|
153
154
|
XML_DEPRECATED
|
|
154
155
|
XMLPUBFUN int
|
|
155
|
-
xmlAutomataIsDeterminist (
|
|
156
|
+
xmlAutomataIsDeterminist (xmlAutomata *am);
|
|
156
157
|
|
|
157
158
|
#ifdef __cplusplus
|
|
158
159
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
1
|
+
/**
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
4
|
+
* @brief Error handling
|
|
5
|
+
*
|
|
6
|
+
* API for error reporting and callbacks.
|
|
4
7
|
*
|
|
5
|
-
*
|
|
8
|
+
* @copyright See Copyright for the status of this software.
|
|
6
9
|
*
|
|
7
|
-
*
|
|
10
|
+
* @author Daniel Veillard
|
|
8
11
|
*/
|
|
9
12
|
|
|
10
13
|
#ifndef __XML_ERROR_H__
|
|
@@ -16,95 +19,169 @@
|
|
|
16
19
|
extern "C" {
|
|
17
20
|
#endif
|
|
18
21
|
|
|
19
|
-
|
|
20
|
-
*
|
|
22
|
+
/**
|
|
23
|
+
* Set generic error callback.
|
|
24
|
+
*
|
|
25
|
+
* @deprecated Use #xmlSetGenericErrorFunc
|
|
21
26
|
*/
|
|
22
27
|
#define initGenericErrorDefaultFunc(h) \
|
|
23
28
|
xmlSetGenericErrorFunc(NULL, (h) ? *((xmlGenericErrorFunc *) (h)) : NULL)
|
|
24
29
|
|
|
25
30
|
/**
|
|
26
|
-
* xmlErrorLevel:
|
|
27
|
-
*
|
|
28
31
|
* Indicates the level of an error
|
|
29
32
|
*/
|
|
30
33
|
typedef enum {
|
|
34
|
+
/** Success */
|
|
31
35
|
XML_ERR_NONE = 0,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
/**
|
|
37
|
+
* A warning
|
|
38
|
+
*
|
|
39
|
+
* When parsing XML, warnings are only reported to error
|
|
40
|
+
* handlers.
|
|
41
|
+
*/
|
|
42
|
+
XML_ERR_WARNING = 1,
|
|
43
|
+
/**
|
|
44
|
+
* An error
|
|
45
|
+
*
|
|
46
|
+
* When parsing XML, this is used for recoverable errors like
|
|
47
|
+
*
|
|
48
|
+
* - namespace errors
|
|
49
|
+
* - validity errors when validating
|
|
50
|
+
* - certain undeclared entities
|
|
51
|
+
* - ID uniqueness and xml:id errors
|
|
52
|
+
*
|
|
53
|
+
* Note that some recoverable errors in the sense of the XML
|
|
54
|
+
* spec are reported as warnings.
|
|
55
|
+
*
|
|
56
|
+
* In other contexts, this may be used for unrecoverable
|
|
57
|
+
* errors.
|
|
58
|
+
*/
|
|
59
|
+
XML_ERR_ERROR = 2,
|
|
60
|
+
/**
|
|
61
|
+
* A fatal error
|
|
62
|
+
*
|
|
63
|
+
* When parsing XML, a "fatal error" according to the XML spec.
|
|
64
|
+
* This typically means that the document isn't well-formed.
|
|
65
|
+
*
|
|
66
|
+
* This also includes OOM and I/O errors, resource limit
|
|
67
|
+
* exhaustion, unexpected errors from other libraries and
|
|
68
|
+
* invalid argument errors.
|
|
69
|
+
*/
|
|
70
|
+
XML_ERR_FATAL = 3
|
|
35
71
|
} xmlErrorLevel;
|
|
36
72
|
|
|
37
73
|
/**
|
|
38
|
-
* xmlErrorDomain:
|
|
39
|
-
*
|
|
40
74
|
* Indicates where an error may have come from
|
|
41
75
|
*/
|
|
42
76
|
typedef enum {
|
|
77
|
+
/** Unknown */
|
|
43
78
|
XML_FROM_NONE = 0,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
79
|
+
/** The XML parser */
|
|
80
|
+
XML_FROM_PARSER,
|
|
81
|
+
/** The tree module (unused) */
|
|
82
|
+
XML_FROM_TREE,
|
|
83
|
+
/** The XML Namespace module */
|
|
84
|
+
XML_FROM_NAMESPACE,
|
|
85
|
+
/** The XML DTD validation with parser context */
|
|
86
|
+
XML_FROM_DTD,
|
|
87
|
+
/** The HTML parser */
|
|
88
|
+
XML_FROM_HTML,
|
|
89
|
+
/** The memory allocator (unused) */
|
|
90
|
+
XML_FROM_MEMORY,
|
|
91
|
+
/** The serialization code */
|
|
92
|
+
XML_FROM_OUTPUT,
|
|
93
|
+
/** The Input/Output stack */
|
|
94
|
+
XML_FROM_IO,
|
|
95
|
+
/** The FTP module (unused) */
|
|
96
|
+
XML_FROM_FTP,
|
|
97
|
+
/** The HTTP module (unused) */
|
|
98
|
+
XML_FROM_HTTP,
|
|
99
|
+
/** The XInclude processing */
|
|
100
|
+
XML_FROM_XINCLUDE,
|
|
101
|
+
/** The XPath module */
|
|
102
|
+
XML_FROM_XPATH,
|
|
103
|
+
/** The XPointer module */
|
|
104
|
+
XML_FROM_XPOINTER,
|
|
105
|
+
/** The regular expressions module */
|
|
106
|
+
XML_FROM_REGEXP,
|
|
107
|
+
/** The W3C XML Schemas Datatype module */
|
|
108
|
+
XML_FROM_DATATYPE,
|
|
109
|
+
/** The W3C XML Schemas parser module */
|
|
110
|
+
XML_FROM_SCHEMASP,
|
|
111
|
+
/** The W3C XML Schemas validation module */
|
|
112
|
+
XML_FROM_SCHEMASV,
|
|
113
|
+
/** The Relax-NG parser module */
|
|
114
|
+
XML_FROM_RELAXNGP,
|
|
115
|
+
/** The Relax-NG validator module */
|
|
116
|
+
XML_FROM_RELAXNGV,
|
|
117
|
+
/** The Catalog module */
|
|
118
|
+
XML_FROM_CATALOG,
|
|
119
|
+
/** The Canonicalization module */
|
|
120
|
+
XML_FROM_C14N,
|
|
121
|
+
/** The XSLT engine from libxslt (unused) */
|
|
122
|
+
XML_FROM_XSLT,
|
|
123
|
+
/** The XML DTD validation with valid context */
|
|
124
|
+
XML_FROM_VALID,
|
|
125
|
+
/** The error checking module (unused) */
|
|
126
|
+
XML_FROM_CHECK,
|
|
127
|
+
/** The xmlwriter module */
|
|
128
|
+
XML_FROM_WRITER,
|
|
129
|
+
/** The dynamically loaded module module (unused) */
|
|
130
|
+
XML_FROM_MODULE,
|
|
131
|
+
/** The module handling character conversion (unused) */
|
|
132
|
+
XML_FROM_I18N,
|
|
133
|
+
/** The Schematron validator module */
|
|
134
|
+
XML_FROM_SCHEMATRONV,
|
|
135
|
+
/** The buffers module (unused) */
|
|
136
|
+
XML_FROM_BUFFER,
|
|
137
|
+
/** The URI module (unused) */
|
|
138
|
+
XML_FROM_URI
|
|
74
139
|
} xmlErrorDomain;
|
|
75
140
|
|
|
76
|
-
/**
|
|
77
|
-
* xmlError:
|
|
78
|
-
*
|
|
79
|
-
* An XML Error instance.
|
|
80
|
-
*/
|
|
81
|
-
|
|
141
|
+
/** Structured error */
|
|
82
142
|
typedef struct _xmlError xmlError;
|
|
83
143
|
typedef xmlError *xmlErrorPtr;
|
|
144
|
+
/**
|
|
145
|
+
* An object containing information about an error.
|
|
146
|
+
*/
|
|
84
147
|
struct _xmlError {
|
|
85
|
-
|
|
86
|
-
int
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
148
|
+
/** An xmlErrorDomain value. */
|
|
149
|
+
int domain;
|
|
150
|
+
/** The error code, e.g. an xmlParserErrors. */
|
|
151
|
+
int code;
|
|
152
|
+
/** Human-readable error message. */
|
|
153
|
+
char *message;
|
|
154
|
+
/** Error level. */
|
|
155
|
+
xmlErrorLevel level;
|
|
156
|
+
/** Filename if available */
|
|
157
|
+
char *file;
|
|
158
|
+
/** Line number if available */
|
|
159
|
+
int line;
|
|
160
|
+
/** Extra string information. */
|
|
161
|
+
char *str1;
|
|
162
|
+
/** Extra string information. */
|
|
163
|
+
char *str2;
|
|
164
|
+
/** Extra string information. */
|
|
165
|
+
char *str3;
|
|
166
|
+
/** Extra number information. */
|
|
167
|
+
int int1;
|
|
168
|
+
/** Column number if available. */
|
|
169
|
+
int int2;
|
|
170
|
+
/** Parser context if available */
|
|
171
|
+
void *ctxt;
|
|
172
|
+
/** Node if available */
|
|
173
|
+
void *node;
|
|
98
174
|
};
|
|
99
175
|
|
|
100
176
|
/**
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
* This is an error that the XML (or HTML) parser can generate
|
|
177
|
+
* Error codes. Note that only some codes are documented.
|
|
104
178
|
*/
|
|
105
179
|
typedef enum {
|
|
180
|
+
/** Success. */
|
|
106
181
|
XML_ERR_OK = 0,
|
|
182
|
+
/** Internal assertion failure. */
|
|
107
183
|
XML_ERR_INTERNAL_ERROR, /* 1 */
|
|
184
|
+
/** Out of memory */
|
|
108
185
|
XML_ERR_NO_MEMORY, /* 2 */
|
|
109
186
|
XML_ERR_DOCUMENT_START, /* 3 */
|
|
110
187
|
XML_ERR_DOCUMENT_EMPTY, /* 4 */
|
|
@@ -135,6 +212,7 @@ typedef enum {
|
|
|
135
212
|
XML_ERR_ENTITY_IS_EXTERNAL, /* 29 */
|
|
136
213
|
XML_ERR_ENTITY_IS_PARAMETER, /* 30 */
|
|
137
214
|
XML_ERR_UNKNOWN_ENCODING, /* 31 */
|
|
215
|
+
/** Unsupported character encoding. */
|
|
138
216
|
XML_ERR_UNSUPPORTED_ENCODING, /* 32 */
|
|
139
217
|
XML_ERR_STRING_NOT_STARTED, /* 33 */
|
|
140
218
|
XML_ERR_STRING_NOT_CLOSED, /* 34 */
|
|
@@ -217,8 +295,14 @@ typedef enum {
|
|
|
217
295
|
XML_ERR_USER_STOP, /* 111 */
|
|
218
296
|
XML_ERR_COMMENT_ABRUPTLY_ENDED, /* 112 */
|
|
219
297
|
XML_WAR_ENCODING_MISMATCH, /* 113 */
|
|
298
|
+
/**
|
|
299
|
+
* Internal resource limit like maximum amplification
|
|
300
|
+
* factor exceeded.
|
|
301
|
+
*/
|
|
220
302
|
XML_ERR_RESOURCE_LIMIT, /* 114 */
|
|
303
|
+
/** Invalid argument. */
|
|
221
304
|
XML_ERR_ARGUMENT, /* 115 */
|
|
305
|
+
/** Unexpected error from the OS or an external library. */
|
|
222
306
|
XML_ERR_SYSTEM, /* 116 */
|
|
223
307
|
XML_ERR_REDECL_PREDEF_ENTITY, /* 117 */
|
|
224
308
|
XML_ERR_INT_SUBSET_NOT_FINISHED, /* 118 */
|
|
@@ -451,6 +535,7 @@ typedef enum {
|
|
|
451
535
|
XML_IO_ENAMETOOLONG, /* 1521 */
|
|
452
536
|
XML_IO_ENFILE, /* 1522 */
|
|
453
537
|
XML_IO_ENODEV, /* 1523 */
|
|
538
|
+
/** File not found. */
|
|
454
539
|
XML_IO_ENOENT, /* 1524 */
|
|
455
540
|
XML_IO_ENOEXEC, /* 1525 */
|
|
456
541
|
XML_IO_ENOLCK, /* 1526 */
|
|
@@ -849,67 +934,87 @@ typedef enum {
|
|
|
849
934
|
} xmlParserErrors;
|
|
850
935
|
|
|
851
936
|
/**
|
|
852
|
-
*
|
|
853
|
-
* @ctx: a parsing context
|
|
854
|
-
* @msg: the message
|
|
855
|
-
* @...: the extra arguments of the varargs to format the message
|
|
937
|
+
* Generic error callback.
|
|
856
938
|
*
|
|
857
|
-
*
|
|
858
|
-
*
|
|
939
|
+
* @deprecated in favor of structured errors.
|
|
940
|
+
* @param ctx user data
|
|
941
|
+
* @param msg printf-like format string
|
|
942
|
+
* @param ... arguments to format
|
|
859
943
|
*/
|
|
860
944
|
typedef void (*xmlGenericErrorFunc) (void *ctx,
|
|
861
945
|
const char *msg,
|
|
862
946
|
...) LIBXML_ATTR_FORMAT(2,3);
|
|
863
947
|
/**
|
|
864
|
-
*
|
|
865
|
-
* @userData: user provided data for the error callback
|
|
866
|
-
* @error: the error being raised.
|
|
948
|
+
* Structured error callback receiving an xmlError.
|
|
867
949
|
*
|
|
868
|
-
*
|
|
869
|
-
*
|
|
950
|
+
* @param userData user provided data for the error callback
|
|
951
|
+
* @param error the error being raised
|
|
870
952
|
*/
|
|
871
953
|
typedef void (*xmlStructuredErrorFunc) (void *userData, const xmlError *error);
|
|
872
954
|
|
|
873
|
-
/**
|
|
955
|
+
/** @cond ignore */
|
|
874
956
|
XML_DEPRECATED
|
|
875
957
|
XMLPUBFUN const xmlError *__xmlLastError(void);
|
|
876
|
-
|
|
877
958
|
XMLPUBFUN xmlGenericErrorFunc *__xmlGenericError(void);
|
|
878
959
|
XMLPUBFUN void **__xmlGenericErrorContext(void);
|
|
879
960
|
XMLPUBFUN xmlStructuredErrorFunc *__xmlStructuredError(void);
|
|
880
961
|
XMLPUBFUN void **__xmlStructuredErrorContext(void);
|
|
962
|
+
/** @endcond */
|
|
881
963
|
|
|
882
964
|
#ifndef XML_GLOBALS_NO_REDEFINITION
|
|
965
|
+
/**
|
|
966
|
+
* Thread-local variable containing the last reported error.
|
|
967
|
+
*
|
|
968
|
+
* @deprecated Use xmlGetLastError().
|
|
969
|
+
*/
|
|
883
970
|
#define xmlLastError (*__xmlLastError())
|
|
971
|
+
/**
|
|
972
|
+
* Thread-local variable containing the generic error callback.
|
|
973
|
+
*
|
|
974
|
+
* @deprecated See xmlSetStructuredErrorFunc().
|
|
975
|
+
*/
|
|
884
976
|
#define xmlGenericError (*__xmlGenericError())
|
|
977
|
+
/**
|
|
978
|
+
* Thread-local variable containing user data for the generic
|
|
979
|
+
* error handler.
|
|
980
|
+
*
|
|
981
|
+
* @deprecated See xmlSetStructuredErrorFunc().
|
|
982
|
+
*/
|
|
885
983
|
#define xmlGenericErrorContext (*__xmlGenericErrorContext())
|
|
984
|
+
/**
|
|
985
|
+
* Thread-local variable containing the structured error
|
|
986
|
+
* callback.
|
|
987
|
+
*
|
|
988
|
+
* @deprecated See xmlSetStructuredErrorFunc().
|
|
989
|
+
*/
|
|
886
990
|
#define xmlStructuredError (*__xmlStructuredError())
|
|
991
|
+
/**
|
|
992
|
+
* Thread-local variable containing user data for the
|
|
993
|
+
* structured error handler.
|
|
994
|
+
*
|
|
995
|
+
* @deprecated See xmlSetStructuredErrorFunc().
|
|
996
|
+
*/
|
|
887
997
|
#define xmlStructuredErrorContext (*__xmlStructuredErrorContext())
|
|
888
998
|
#endif
|
|
889
|
-
/** DOC_ENABLE */
|
|
890
999
|
|
|
891
|
-
/*
|
|
892
|
-
* Use the following function to reset the two global variables
|
|
893
|
-
* xmlGenericError and xmlGenericErrorContext.
|
|
894
|
-
*/
|
|
895
1000
|
XMLPUBFUN void
|
|
896
1001
|
xmlSetGenericErrorFunc (void *ctx,
|
|
897
1002
|
xmlGenericErrorFunc handler);
|
|
1003
|
+
XMLPUBFUN void
|
|
1004
|
+
xmlSetStructuredErrorFunc (void *ctx,
|
|
1005
|
+
xmlStructuredErrorFunc handler);
|
|
1006
|
+
|
|
898
1007
|
XML_DEPRECATED
|
|
899
1008
|
XMLPUBFUN void
|
|
900
1009
|
xmlThrDefSetGenericErrorFunc(void *ctx,
|
|
901
1010
|
xmlGenericErrorFunc handler);
|
|
902
|
-
|
|
903
|
-
XMLPUBFUN void
|
|
904
|
-
xmlSetStructuredErrorFunc (void *ctx,
|
|
905
|
-
xmlStructuredErrorFunc handler);
|
|
906
1011
|
XML_DEPRECATED
|
|
907
1012
|
XMLPUBFUN void
|
|
908
1013
|
xmlThrDefSetStructuredErrorFunc(void *ctx,
|
|
909
1014
|
xmlStructuredErrorFunc handler);
|
|
1015
|
+
|
|
910
1016
|
/*
|
|
911
|
-
*
|
|
912
|
-
* and warning reporting.
|
|
1017
|
+
* Legacy error handlers.
|
|
913
1018
|
*/
|
|
914
1019
|
XMLPUBFUN void
|
|
915
1020
|
xmlParserError (void *ctx,
|
|
@@ -927,9 +1032,7 @@ XMLPUBFUN void
|
|
|
927
1032
|
xmlParserValidityWarning (void *ctx,
|
|
928
1033
|
const char *msg,
|
|
929
1034
|
...) LIBXML_ATTR_FORMAT(2,3);
|
|
930
|
-
/** DOC_DISABLE */
|
|
931
1035
|
struct _xmlParserInput;
|
|
932
|
-
/** DOC_ENABLE */
|
|
933
1036
|
XMLPUBFUN void
|
|
934
1037
|
xmlParserPrintFileInfo (struct _xmlParserInput *input);
|
|
935
1038
|
XMLPUBFUN void
|
|
@@ -951,10 +1054,10 @@ XMLPUBFUN const xmlError *
|
|
|
951
1054
|
XMLPUBFUN void
|
|
952
1055
|
xmlCtxtResetLastError (void *ctx);
|
|
953
1056
|
XMLPUBFUN void
|
|
954
|
-
xmlResetError (
|
|
1057
|
+
xmlResetError (xmlError *err);
|
|
955
1058
|
XMLPUBFUN int
|
|
956
1059
|
xmlCopyError (const xmlError *from,
|
|
957
|
-
|
|
1060
|
+
xmlError *to);
|
|
958
1061
|
|
|
959
1062
|
#ifdef __cplusplus
|
|
960
1063
|
}
|