lxml 5.4.0__cp313-cp313-macosx_10_13_universal2.whl → 6.0.0__cp313-cp313-macosx_10_13_universal2.whl
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.
- lxml/__init__.py +1 -1
- lxml/_elementpath.cpython-313-darwin.so +0 -0
- lxml/_elementpath.py +3 -1
- lxml/apihelpers.pxi +25 -17
- lxml/builder.cpython-313-darwin.so +0 -0
- lxml/builder.py +11 -0
- lxml/debug.pxi +0 -54
- lxml/etree.cpython-313-darwin.so +0 -0
- lxml/etree.h +24 -28
- lxml/etree.pyx +154 -33
- lxml/etree_api.h +59 -50
- lxml/extensions.pxi +3 -6
- lxml/html/__init__.py +7 -3
- lxml/html/_difflib.cpython-313-darwin.so +0 -0
- lxml/html/_difflib.py +2106 -0
- lxml/html/builder.py +40 -0
- lxml/html/defs.py +3 -3
- lxml/html/diff.cpython-313-darwin.so +0 -0
- lxml/html/diff.py +406 -312
- lxml/includes/etree_defs.h +6 -6
- lxml/includes/libxml/HTMLparser.h +33 -30
- lxml/includes/libxml/HTMLtree.h +1 -0
- lxml/includes/libxml/SAX.h +2 -186
- lxml/includes/libxml/SAX2.h +2 -3
- lxml/includes/libxml/catalog.h +1 -0
- lxml/includes/libxml/debugXML.h +0 -138
- lxml/includes/libxml/encoding.h +124 -61
- lxml/includes/libxml/entities.h +0 -19
- lxml/includes/libxml/globals.h +0 -16
- lxml/includes/libxml/nanoftp.h +3 -173
- lxml/includes/libxml/parser.h +474 -231
- lxml/includes/libxml/parserInternals.h +21 -101
- lxml/includes/libxml/relaxng.h +7 -2
- lxml/includes/libxml/threads.h +0 -6
- lxml/includes/libxml/tree.h +29 -85
- lxml/includes/libxml/valid.h +20 -12
- lxml/includes/libxml/xinclude.h +5 -0
- lxml/includes/libxml/xlink.h +4 -0
- lxml/includes/libxml/xmlIO.h +15 -34
- lxml/includes/libxml/xmlautomata.h +19 -2
- lxml/includes/libxml/xmlerror.h +18 -18
- lxml/includes/libxml/xmlexports.h +6 -56
- lxml/includes/libxml/xmlmemory.h +19 -19
- lxml/includes/libxml/xmlmodule.h +4 -0
- lxml/includes/libxml/xmlreader.h +11 -3
- lxml/includes/libxml/xmlregexp.h +7 -106
- lxml/includes/libxml/xmlsave.h +11 -2
- lxml/includes/libxml/xmlschemas.h +10 -5
- lxml/includes/libxml/xmlunicode.h +3 -354
- lxml/includes/libxml/xmlversion.h +19 -34
- lxml/includes/libxml/xpath.h +5 -15
- lxml/includes/libxml/xpathInternals.h +9 -3
- lxml/includes/libxml/xpointer.h +1 -91
- lxml/includes/lxml-version.h +1 -1
- lxml/includes/tree.pxd +10 -12
- lxml/includes/xmlparser.pxd +46 -8
- lxml/lxml.etree.h +24 -28
- lxml/lxml.etree_api.h +59 -50
- lxml/objectify.cpython-313-darwin.so +0 -0
- lxml/objectify.pyx +11 -7
- lxml/parser.pxi +106 -47
- lxml/sax.cpython-313-darwin.so +0 -0
- lxml/sax.py +11 -0
- lxml/saxparser.pxi +14 -14
- lxml/schematron.pxi +8 -3
- lxml/serializer.pxi +71 -3
- lxml/xslt.pxi +10 -3
- lxml-6.0.0.dist-info/METADATA +163 -0
- {lxml-5.4.0.dist-info → lxml-6.0.0.dist-info}/RECORD +73 -71
- {lxml-5.4.0.dist-info → lxml-6.0.0.dist-info}/WHEEL +2 -1
- {lxml-5.4.0.dist-info → lxml-6.0.0.dist-info}/licenses/LICENSE.txt +3 -1
- lxml-5.4.0.dist-info/METADATA +0 -96
- {lxml-5.4.0.dist-info → lxml-6.0.0.dist-info}/licenses/LICENSES.txt +0 -0
- {lxml-5.4.0.dist-info → lxml-6.0.0.dist-info}/top_level.txt +0 -0
lxml/includes/libxml/valid.h
CHANGED
@@ -139,16 +139,17 @@ typedef struct _xmlHashTable xmlRefTable;
|
|
139
139
|
typedef xmlRefTable *xmlRefTablePtr;
|
140
140
|
|
141
141
|
/* Notation */
|
142
|
+
XML_DEPRECATED
|
142
143
|
XMLPUBFUN xmlNotationPtr
|
143
144
|
xmlAddNotationDecl (xmlValidCtxtPtr ctxt,
|
144
145
|
xmlDtdPtr dtd,
|
145
146
|
const xmlChar *name,
|
146
147
|
const xmlChar *PublicID,
|
147
148
|
const xmlChar *SystemID);
|
148
|
-
|
149
|
+
XML_DEPRECATED
|
149
150
|
XMLPUBFUN xmlNotationTablePtr
|
150
151
|
xmlCopyNotationTable (xmlNotationTablePtr table);
|
151
|
-
|
152
|
+
XML_DEPRECATED
|
152
153
|
XMLPUBFUN void
|
153
154
|
xmlFreeNotationTable (xmlNotationTablePtr table);
|
154
155
|
#ifdef LIBXML_OUTPUT_ENABLED
|
@@ -164,24 +165,31 @@ XMLPUBFUN void
|
|
164
165
|
|
165
166
|
/* Element Content */
|
166
167
|
/* the non Doc version are being deprecated */
|
168
|
+
XML_DEPRECATED
|
167
169
|
XMLPUBFUN xmlElementContentPtr
|
168
170
|
xmlNewElementContent (const xmlChar *name,
|
169
171
|
xmlElementContentType type);
|
172
|
+
XML_DEPRECATED
|
170
173
|
XMLPUBFUN xmlElementContentPtr
|
171
174
|
xmlCopyElementContent (xmlElementContentPtr content);
|
175
|
+
XML_DEPRECATED
|
172
176
|
XMLPUBFUN void
|
173
177
|
xmlFreeElementContent (xmlElementContentPtr cur);
|
174
178
|
/* the new versions with doc argument */
|
179
|
+
XML_DEPRECATED
|
175
180
|
XMLPUBFUN xmlElementContentPtr
|
176
181
|
xmlNewDocElementContent (xmlDocPtr doc,
|
177
182
|
const xmlChar *name,
|
178
183
|
xmlElementContentType type);
|
184
|
+
XML_DEPRECATED
|
179
185
|
XMLPUBFUN xmlElementContentPtr
|
180
186
|
xmlCopyDocElementContent(xmlDocPtr doc,
|
181
187
|
xmlElementContentPtr content);
|
188
|
+
XML_DEPRECATED
|
182
189
|
XMLPUBFUN void
|
183
190
|
xmlFreeDocElementContent(xmlDocPtr doc,
|
184
191
|
xmlElementContentPtr cur);
|
192
|
+
XML_DEPRECATED
|
185
193
|
XMLPUBFUN void
|
186
194
|
xmlSnprintfElementContent(char *buf,
|
187
195
|
int size,
|
@@ -196,16 +204,17 @@ XMLPUBFUN void
|
|
196
204
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
197
205
|
|
198
206
|
/* Element */
|
207
|
+
XML_DEPRECATED
|
199
208
|
XMLPUBFUN xmlElementPtr
|
200
209
|
xmlAddElementDecl (xmlValidCtxtPtr ctxt,
|
201
210
|
xmlDtdPtr dtd,
|
202
211
|
const xmlChar *name,
|
203
212
|
xmlElementTypeVal type,
|
204
213
|
xmlElementContentPtr content);
|
205
|
-
|
214
|
+
XML_DEPRECATED
|
206
215
|
XMLPUBFUN xmlElementTablePtr
|
207
216
|
xmlCopyElementTable (xmlElementTablePtr table);
|
208
|
-
|
217
|
+
XML_DEPRECATED
|
209
218
|
XMLPUBFUN void
|
210
219
|
xmlFreeElementTable (xmlElementTablePtr table);
|
211
220
|
#ifdef LIBXML_OUTPUT_ENABLED
|
@@ -220,16 +229,18 @@ XMLPUBFUN void
|
|
220
229
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
221
230
|
|
222
231
|
/* Enumeration */
|
232
|
+
XML_DEPRECATED
|
223
233
|
XMLPUBFUN xmlEnumerationPtr
|
224
234
|
xmlCreateEnumeration (const xmlChar *name);
|
235
|
+
/* XML_DEPRECATED, needed for custom attributeDecl SAX handler */
|
225
236
|
XMLPUBFUN void
|
226
237
|
xmlFreeEnumeration (xmlEnumerationPtr cur);
|
227
|
-
|
238
|
+
XML_DEPRECATED
|
228
239
|
XMLPUBFUN xmlEnumerationPtr
|
229
240
|
xmlCopyEnumeration (xmlEnumerationPtr cur);
|
230
|
-
#endif /* LIBXML_TREE_ENABLED */
|
231
241
|
|
232
242
|
/* Attribute */
|
243
|
+
XML_DEPRECATED
|
233
244
|
XMLPUBFUN xmlAttributePtr
|
234
245
|
xmlAddAttributeDecl (xmlValidCtxtPtr ctxt,
|
235
246
|
xmlDtdPtr dtd,
|
@@ -240,10 +251,10 @@ XMLPUBFUN xmlAttributePtr
|
|
240
251
|
xmlAttributeDefault def,
|
241
252
|
const xmlChar *defaultValue,
|
242
253
|
xmlEnumerationPtr tree);
|
243
|
-
|
254
|
+
XML_DEPRECATED
|
244
255
|
XMLPUBFUN xmlAttributeTablePtr
|
245
256
|
xmlCopyAttributeTable (xmlAttributeTablePtr table);
|
246
|
-
|
257
|
+
XML_DEPRECATED
|
247
258
|
XMLPUBFUN void
|
248
259
|
xmlFreeAttributeTable (xmlAttributeTablePtr table);
|
249
260
|
#ifdef LIBXML_OUTPUT_ENABLED
|
@@ -388,15 +399,12 @@ XML_DEPRECATED
|
|
388
399
|
XMLPUBFUN int
|
389
400
|
xmlValidateDocumentFinal(xmlValidCtxtPtr ctxt,
|
390
401
|
xmlDocPtr doc);
|
391
|
-
#endif /* LIBXML_VALID_ENABLED */
|
392
|
-
|
393
|
-
#if defined(LIBXML_VALID_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
|
394
402
|
XML_DEPRECATED
|
395
403
|
XMLPUBFUN int
|
396
404
|
xmlValidateNotationUse (xmlValidCtxtPtr ctxt,
|
397
405
|
xmlDocPtr doc,
|
398
406
|
const xmlChar *notationName);
|
399
|
-
#endif /* LIBXML_VALID_ENABLED
|
407
|
+
#endif /* LIBXML_VALID_ENABLED */
|
400
408
|
|
401
409
|
XMLPUBFUN int
|
402
410
|
xmlIsMixedElement (xmlDocPtr doc,
|
lxml/includes/libxml/xinclude.h
CHANGED
@@ -16,6 +16,7 @@
|
|
16
16
|
#include <libxml/xmlversion.h>
|
17
17
|
#include <libxml/xmlerror.h>
|
18
18
|
#include <libxml/tree.h>
|
19
|
+
#include <libxml/parser.h>
|
19
20
|
|
20
21
|
#ifdef LIBXML_XINCLUDE_ENABLED
|
21
22
|
|
@@ -120,6 +121,10 @@ XMLPUBFUN void
|
|
120
121
|
xmlXIncludeSetErrorHandler(xmlXIncludeCtxtPtr ctxt,
|
121
122
|
xmlStructuredErrorFunc handler,
|
122
123
|
void *data);
|
124
|
+
XMLPUBFUN void
|
125
|
+
xmlXIncludeSetResourceLoader(xmlXIncludeCtxtPtr ctxt,
|
126
|
+
xmlResourceLoader loader,
|
127
|
+
void *data);
|
123
128
|
XMLPUBFUN int
|
124
129
|
xmlXIncludeGetLastError (xmlXIncludeCtxtPtr ctxt);
|
125
130
|
XMLPUBFUN void
|
lxml/includes/libxml/xlink.h
CHANGED
@@ -160,16 +160,20 @@ struct _xlinkHandler {
|
|
160
160
|
* detection callbacks.
|
161
161
|
*/
|
162
162
|
|
163
|
+
XML_DEPRECATED
|
163
164
|
XMLPUBFUN xlinkNodeDetectFunc
|
164
165
|
xlinkGetDefaultDetect (void);
|
166
|
+
XML_DEPRECATED
|
165
167
|
XMLPUBFUN void
|
166
168
|
xlinkSetDefaultDetect (xlinkNodeDetectFunc func);
|
167
169
|
|
168
170
|
/*
|
169
171
|
* Routines to set/get the default handlers.
|
170
172
|
*/
|
173
|
+
XML_DEPRECATED
|
171
174
|
XMLPUBFUN xlinkHandlerPtr
|
172
175
|
xlinkGetDefaultHandler (void);
|
176
|
+
XML_DEPRECATED
|
173
177
|
XMLPUBFUN void
|
174
178
|
xlinkSetDefaultHandler (xlinkHandlerPtr handler);
|
175
179
|
|
lxml/includes/libxml/xmlIO.h
CHANGED
@@ -176,21 +176,18 @@ struct _xmlOutputBuffer {
|
|
176
176
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
177
177
|
|
178
178
|
/** DOC_DISABLE */
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
#define XML_OP XML_DECLARE_GLOBAL
|
186
|
-
XML_GLOBALS_IO
|
187
|
-
#undef XML_OP
|
179
|
+
XML_DEPRECATED
|
180
|
+
XMLPUBFUN xmlParserInputBufferCreateFilenameFunc *
|
181
|
+
__xmlParserInputBufferCreateFilenameValue(void);
|
182
|
+
XML_DEPRECATED
|
183
|
+
XMLPUBFUN xmlOutputBufferCreateFilenameFunc *
|
184
|
+
__xmlOutputBufferCreateFilenameValue(void);
|
188
185
|
|
189
|
-
#
|
186
|
+
#ifndef XML_GLOBALS_NO_REDEFINITION
|
190
187
|
#define xmlParserInputBufferCreateFilenameValue \
|
191
|
-
|
188
|
+
(*__xmlParserInputBufferCreateFilenameValue())
|
192
189
|
#define xmlOutputBufferCreateFilenameValue \
|
193
|
-
|
190
|
+
(*__xmlOutputBufferCreateFilenameValue())
|
194
191
|
#endif
|
195
192
|
/** DOC_ENABLE */
|
196
193
|
|
@@ -211,6 +208,7 @@ XMLPUBFUN xmlParserInputBufferPtr
|
|
211
208
|
XMLPUBFUN xmlParserInputBufferPtr
|
212
209
|
xmlParserInputBufferCreateFilename (const char *URI,
|
213
210
|
xmlCharEncoding enc);
|
211
|
+
XML_DEPRECATED
|
214
212
|
XMLPUBFUN xmlParserInputBufferPtr
|
215
213
|
xmlParserInputBufferCreateFile (FILE *file,
|
216
214
|
xmlCharEncoding enc);
|
@@ -228,12 +226,15 @@ XMLPUBFUN xmlParserInputBufferPtr
|
|
228
226
|
xmlInputCloseCallback ioclose,
|
229
227
|
void *ioctx,
|
230
228
|
xmlCharEncoding enc);
|
229
|
+
XML_DEPRECATED
|
231
230
|
XMLPUBFUN int
|
232
231
|
xmlParserInputBufferRead (xmlParserInputBufferPtr in,
|
233
232
|
int len);
|
233
|
+
XML_DEPRECATED
|
234
234
|
XMLPUBFUN int
|
235
235
|
xmlParserInputBufferGrow (xmlParserInputBufferPtr in,
|
236
236
|
int len);
|
237
|
+
XML_DEPRECATED
|
237
238
|
XMLPUBFUN int
|
238
239
|
xmlParserInputBufferPush (xmlParserInputBufferPtr in,
|
239
240
|
int len,
|
@@ -249,7 +250,7 @@ XMLPUBFUN int
|
|
249
250
|
xmlInputReadCallback readFunc,
|
250
251
|
xmlInputCloseCallback closeFunc);
|
251
252
|
|
252
|
-
xmlParserInputBufferPtr
|
253
|
+
XMLPUBFUN xmlParserInputBufferPtr
|
253
254
|
__xmlParserInputBufferCreateFilename(const char *URI,
|
254
255
|
xmlCharEncoding enc);
|
255
256
|
|
@@ -318,7 +319,7 @@ XMLPUBFUN int
|
|
318
319
|
xmlOutputWriteCallback writeFunc,
|
319
320
|
xmlOutputCloseCallback closeFunc);
|
320
321
|
|
321
|
-
xmlOutputBufferPtr
|
322
|
+
XMLPUBFUN xmlOutputBufferPtr
|
322
323
|
__xmlOutputBufferCreateFilename(const char *URI,
|
323
324
|
xmlCharEncodingHandlerPtr encoder,
|
324
325
|
int compression);
|
@@ -396,26 +397,6 @@ XMLPUBFUN int
|
|
396
397
|
xmlIOHTTPClose (void * context);
|
397
398
|
#endif /* LIBXML_HTTP_ENABLED */
|
398
399
|
|
399
|
-
/**
|
400
|
-
* Default 'ftp://' protocol callbacks
|
401
|
-
*/
|
402
|
-
#if defined(LIBXML_FTP_ENABLED)
|
403
|
-
XML_DEPRECATED
|
404
|
-
XMLPUBFUN int
|
405
|
-
xmlIOFTPMatch (const char *filename);
|
406
|
-
XML_DEPRECATED
|
407
|
-
XMLPUBFUN void *
|
408
|
-
xmlIOFTPOpen (const char *filename);
|
409
|
-
XML_DEPRECATED
|
410
|
-
XMLPUBFUN int
|
411
|
-
xmlIOFTPRead (void * context,
|
412
|
-
char * buffer,
|
413
|
-
int len);
|
414
|
-
XML_DEPRECATED
|
415
|
-
XMLPUBFUN int
|
416
|
-
xmlIOFTPClose (void * context);
|
417
|
-
#endif /* defined(LIBXML_FTP_ENABLED) */
|
418
|
-
|
419
400
|
XMLPUBFUN xmlParserInputBufferCreateFilenameFunc
|
420
401
|
xmlParserInputBufferCreateFilenameDefault(
|
421
402
|
xmlParserInputBufferCreateFilenameFunc func);
|
@@ -13,7 +13,6 @@
|
|
13
13
|
#include <libxml/xmlversion.h>
|
14
14
|
|
15
15
|
#ifdef LIBXML_REGEXP_ENABLED
|
16
|
-
#ifdef LIBXML_AUTOMATA_ENABLED
|
17
16
|
|
18
17
|
#include <libxml/xmlstring.h>
|
19
18
|
|
@@ -40,24 +39,31 @@ typedef xmlAutomataState *xmlAutomataStatePtr;
|
|
40
39
|
/*
|
41
40
|
* Building API
|
42
41
|
*/
|
42
|
+
XML_DEPRECATED
|
43
43
|
XMLPUBFUN xmlAutomataPtr
|
44
44
|
xmlNewAutomata (void);
|
45
|
+
XML_DEPRECATED
|
45
46
|
XMLPUBFUN void
|
46
47
|
xmlFreeAutomata (xmlAutomataPtr am);
|
47
48
|
|
49
|
+
XML_DEPRECATED
|
48
50
|
XMLPUBFUN xmlAutomataStatePtr
|
49
51
|
xmlAutomataGetInitState (xmlAutomataPtr am);
|
52
|
+
XML_DEPRECATED
|
50
53
|
XMLPUBFUN int
|
51
54
|
xmlAutomataSetFinalState (xmlAutomataPtr am,
|
52
55
|
xmlAutomataStatePtr state);
|
56
|
+
XML_DEPRECATED
|
53
57
|
XMLPUBFUN xmlAutomataStatePtr
|
54
58
|
xmlAutomataNewState (xmlAutomataPtr am);
|
59
|
+
XML_DEPRECATED
|
55
60
|
XMLPUBFUN xmlAutomataStatePtr
|
56
61
|
xmlAutomataNewTransition (xmlAutomataPtr am,
|
57
62
|
xmlAutomataStatePtr from,
|
58
63
|
xmlAutomataStatePtr to,
|
59
64
|
const xmlChar *token,
|
60
65
|
void *data);
|
66
|
+
XML_DEPRECATED
|
61
67
|
XMLPUBFUN xmlAutomataStatePtr
|
62
68
|
xmlAutomataNewTransition2 (xmlAutomataPtr am,
|
63
69
|
xmlAutomataStatePtr from,
|
@@ -65,6 +71,7 @@ XMLPUBFUN xmlAutomataStatePtr
|
|
65
71
|
const xmlChar *token,
|
66
72
|
const xmlChar *token2,
|
67
73
|
void *data);
|
74
|
+
XML_DEPRECATED
|
68
75
|
XMLPUBFUN xmlAutomataStatePtr
|
69
76
|
xmlAutomataNewNegTrans (xmlAutomataPtr am,
|
70
77
|
xmlAutomataStatePtr from,
|
@@ -73,6 +80,7 @@ XMLPUBFUN xmlAutomataStatePtr
|
|
73
80
|
const xmlChar *token2,
|
74
81
|
void *data);
|
75
82
|
|
83
|
+
XML_DEPRECATED
|
76
84
|
XMLPUBFUN xmlAutomataStatePtr
|
77
85
|
xmlAutomataNewCountTrans (xmlAutomataPtr am,
|
78
86
|
xmlAutomataStatePtr from,
|
@@ -81,6 +89,7 @@ XMLPUBFUN xmlAutomataStatePtr
|
|
81
89
|
int min,
|
82
90
|
int max,
|
83
91
|
void *data);
|
92
|
+
XML_DEPRECATED
|
84
93
|
XMLPUBFUN xmlAutomataStatePtr
|
85
94
|
xmlAutomataNewCountTrans2 (xmlAutomataPtr am,
|
86
95
|
xmlAutomataStatePtr from,
|
@@ -90,6 +99,7 @@ XMLPUBFUN xmlAutomataStatePtr
|
|
90
99
|
int min,
|
91
100
|
int max,
|
92
101
|
void *data);
|
102
|
+
XML_DEPRECATED
|
93
103
|
XMLPUBFUN xmlAutomataStatePtr
|
94
104
|
xmlAutomataNewOnceTrans (xmlAutomataPtr am,
|
95
105
|
xmlAutomataStatePtr from,
|
@@ -98,6 +108,7 @@ XMLPUBFUN xmlAutomataStatePtr
|
|
98
108
|
int min,
|
99
109
|
int max,
|
100
110
|
void *data);
|
111
|
+
XML_DEPRECATED
|
101
112
|
XMLPUBFUN xmlAutomataStatePtr
|
102
113
|
xmlAutomataNewOnceTrans2 (xmlAutomataPtr am,
|
103
114
|
xmlAutomataStatePtr from,
|
@@ -107,32 +118,39 @@ XMLPUBFUN xmlAutomataStatePtr
|
|
107
118
|
int min,
|
108
119
|
int max,
|
109
120
|
void *data);
|
121
|
+
XML_DEPRECATED
|
110
122
|
XMLPUBFUN xmlAutomataStatePtr
|
111
123
|
xmlAutomataNewAllTrans (xmlAutomataPtr am,
|
112
124
|
xmlAutomataStatePtr from,
|
113
125
|
xmlAutomataStatePtr to,
|
114
126
|
int lax);
|
127
|
+
XML_DEPRECATED
|
115
128
|
XMLPUBFUN xmlAutomataStatePtr
|
116
129
|
xmlAutomataNewEpsilon (xmlAutomataPtr am,
|
117
130
|
xmlAutomataStatePtr from,
|
118
131
|
xmlAutomataStatePtr to);
|
132
|
+
XML_DEPRECATED
|
119
133
|
XMLPUBFUN xmlAutomataStatePtr
|
120
134
|
xmlAutomataNewCountedTrans (xmlAutomataPtr am,
|
121
135
|
xmlAutomataStatePtr from,
|
122
136
|
xmlAutomataStatePtr to,
|
123
137
|
int counter);
|
138
|
+
XML_DEPRECATED
|
124
139
|
XMLPUBFUN xmlAutomataStatePtr
|
125
140
|
xmlAutomataNewCounterTrans (xmlAutomataPtr am,
|
126
141
|
xmlAutomataStatePtr from,
|
127
142
|
xmlAutomataStatePtr to,
|
128
143
|
int counter);
|
144
|
+
XML_DEPRECATED
|
129
145
|
XMLPUBFUN int
|
130
146
|
xmlAutomataNewCounter (xmlAutomataPtr am,
|
131
147
|
int min,
|
132
148
|
int max);
|
133
149
|
|
150
|
+
XML_DEPRECATED
|
134
151
|
XMLPUBFUN struct _xmlRegexp *
|
135
152
|
xmlAutomataCompile (xmlAutomataPtr am);
|
153
|
+
XML_DEPRECATED
|
136
154
|
XMLPUBFUN int
|
137
155
|
xmlAutomataIsDeterminist (xmlAutomataPtr am);
|
138
156
|
|
@@ -140,7 +158,6 @@ XMLPUBFUN int
|
|
140
158
|
}
|
141
159
|
#endif
|
142
160
|
|
143
|
-
#endif /* LIBXML_AUTOMATA_ENABLED */
|
144
161
|
#endif /* LIBXML_REGEXP_ENABLED */
|
145
162
|
|
146
163
|
#endif /* __XML_AUTOMATA_H__ */
|
lxml/includes/libxml/xmlerror.h
CHANGED
@@ -16,6 +16,12 @@
|
|
16
16
|
extern "C" {
|
17
17
|
#endif
|
18
18
|
|
19
|
+
/*
|
20
|
+
* Backward compatibility
|
21
|
+
*/
|
22
|
+
#define initGenericErrorDefaultFunc(h) \
|
23
|
+
xmlSetGenericErrorFunc(NULL, (h) ? *(h) : NULL)
|
24
|
+
|
19
25
|
/**
|
20
26
|
* xmlErrorLevel:
|
21
27
|
*
|
@@ -865,23 +871,20 @@ typedef void (*xmlGenericErrorFunc) (void *ctx,
|
|
865
871
|
typedef void (*xmlStructuredErrorFunc) (void *userData, const xmlError *error);
|
866
872
|
|
867
873
|
/** DOC_DISABLE */
|
868
|
-
|
869
|
-
|
870
|
-
XML_OP(xmlGenericError, xmlGenericErrorFunc, XML_NO_ATTR) \
|
871
|
-
XML_OP(xmlGenericErrorContext, void *, XML_NO_ATTR) \
|
872
|
-
XML_OP(xmlStructuredError, xmlStructuredErrorFunc, XML_NO_ATTR) \
|
873
|
-
XML_OP(xmlStructuredErrorContext, void *, XML_NO_ATTR)
|
874
|
+
XML_DEPRECATED
|
875
|
+
XMLPUBFUN const xmlError *__xmlLastError(void);
|
874
876
|
|
875
|
-
|
876
|
-
|
877
|
-
|
877
|
+
XMLPUBFUN xmlGenericErrorFunc *__xmlGenericError(void);
|
878
|
+
XMLPUBFUN void **__xmlGenericErrorContext(void);
|
879
|
+
XMLPUBFUN xmlStructuredErrorFunc *__xmlStructuredError(void);
|
880
|
+
XMLPUBFUN void **__xmlStructuredErrorContext(void);
|
878
881
|
|
879
|
-
#
|
880
|
-
#define xmlLastError
|
881
|
-
#define xmlGenericError
|
882
|
-
#define xmlGenericErrorContext
|
883
|
-
#define xmlStructuredError
|
884
|
-
#define xmlStructuredErrorContext
|
882
|
+
#ifndef XML_GLOBALS_NO_REDEFINITION
|
883
|
+
#define xmlLastError (*__xmlLastError())
|
884
|
+
#define xmlGenericError (*__xmlGenericError())
|
885
|
+
#define xmlGenericErrorContext (*__xmlGenericErrorContext())
|
886
|
+
#define xmlStructuredError (*__xmlStructuredError())
|
887
|
+
#define xmlStructuredErrorContext (*__xmlStructuredErrorContext())
|
885
888
|
#endif
|
886
889
|
/** DOC_ENABLE */
|
887
890
|
|
@@ -896,9 +899,6 @@ XML_DEPRECATED
|
|
896
899
|
XMLPUBFUN void
|
897
900
|
xmlThrDefSetGenericErrorFunc(void *ctx,
|
898
901
|
xmlGenericErrorFunc handler);
|
899
|
-
XML_DEPRECATED
|
900
|
-
XMLPUBFUN void
|
901
|
-
initGenericErrorDefaultFunc (xmlGenericErrorFunc *handler);
|
902
902
|
|
903
903
|
XMLPUBFUN void
|
904
904
|
xmlSetStructuredErrorFunc (void *ctx,
|
@@ -41,14 +41,6 @@
|
|
41
41
|
* Attributes
|
42
42
|
*/
|
43
43
|
|
44
|
-
#ifndef ATTRIBUTE_UNUSED
|
45
|
-
#if __GNUC__ * 100 + __GNUC_MINOR__ >= 207 || defined(__clang__)
|
46
|
-
#define ATTRIBUTE_UNUSED __attribute__((unused))
|
47
|
-
#else
|
48
|
-
#define ATTRIBUTE_UNUSED
|
49
|
-
#endif
|
50
|
-
#endif
|
51
|
-
|
52
44
|
#if !defined(__clang__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 403)
|
53
45
|
#define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
|
54
46
|
#else
|
@@ -75,56 +67,14 @@
|
|
75
67
|
#endif
|
76
68
|
#endif
|
77
69
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
#
|
83
|
-
|
84
|
-
#define XML_IGNORE_FPTR_CAST_WARNINGS
|
85
|
-
#define XML_POP_WARNINGS \
|
86
|
-
_Pragma("diag_default 1215")
|
87
|
-
|
88
|
-
#elif defined(__clang__) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 406)
|
89
|
-
|
90
|
-
#if defined(__clang__) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 800)
|
91
|
-
#define XML_IGNORE_FPTR_CAST_WARNINGS \
|
92
|
-
_Pragma("GCC diagnostic push") \
|
93
|
-
_Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
|
94
|
-
_Pragma("GCC diagnostic ignored \"-Wcast-function-type\"")
|
70
|
+
#ifndef XML_DEPRECATED_MEMBER
|
71
|
+
#if defined(IN_LIBXML)
|
72
|
+
#define XML_DEPRECATED_MEMBER
|
73
|
+
#elif __GNUC__ * 100 + __GNUC_MINOR__ >= 301
|
74
|
+
#define XML_DEPRECATED_MEMBER __attribute__((deprecated))
|
95
75
|
#else
|
96
|
-
#define
|
97
|
-
_Pragma("GCC diagnostic push") \
|
98
|
-
_Pragma("GCC diagnostic ignored \"-Wpedantic\"")
|
76
|
+
#define XML_DEPRECATED_MEMBER
|
99
77
|
#endif
|
100
|
-
#define XML_POP_WARNINGS \
|
101
|
-
_Pragma("GCC diagnostic pop")
|
102
|
-
|
103
|
-
#elif defined(_MSC_VER) && _MSC_VER >= 1400
|
104
|
-
|
105
|
-
#define XML_IGNORE_FPTR_CAST_WARNINGS __pragma(warning(push))
|
106
|
-
#define XML_POP_WARNINGS __pragma(warning(pop))
|
107
|
-
|
108
|
-
#else
|
109
|
-
|
110
|
-
#define XML_IGNORE_FPTR_CAST_WARNINGS
|
111
|
-
#define XML_POP_WARNINGS
|
112
|
-
|
113
|
-
#endif
|
114
|
-
|
115
|
-
/*
|
116
|
-
* Accessors for globals
|
117
|
-
*/
|
118
|
-
|
119
|
-
#define XML_NO_ATTR
|
120
|
-
|
121
|
-
#ifdef LIBXML_THREAD_ENABLED
|
122
|
-
#define XML_DECLARE_GLOBAL(name, type, attrs) \
|
123
|
-
attrs XMLPUBFUN type *__##name(void);
|
124
|
-
#define XML_GLOBAL_MACRO(name) (*__##name())
|
125
|
-
#else
|
126
|
-
#define XML_DECLARE_GLOBAL(name, type, attrs) \
|
127
|
-
attrs XMLPUBVAR type name;
|
128
78
|
#endif
|
129
79
|
|
130
80
|
/*
|
lxml/includes/libxml/xmlmemory.h
CHANGED
@@ -69,27 +69,25 @@ typedef char *(*xmlStrdupFunc)(const char *str);
|
|
69
69
|
* - xmlMemStrdup
|
70
70
|
* - xmlFree
|
71
71
|
*/
|
72
|
-
/** DOC_DISABLE */
|
73
72
|
#ifdef LIBXML_THREAD_ALLOC_ENABLED
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
#
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
#endif
|
90
|
-
#else
|
91
|
-
#define XML_GLOBALS_ALLOC
|
73
|
+
|
74
|
+
/** DOC_DISABLE */
|
75
|
+
XMLPUBFUN xmlMallocFunc *__xmlMalloc(void);
|
76
|
+
XMLPUBFUN xmlMallocFunc *__xmlMallocAtomic(void);
|
77
|
+
XMLPUBFUN xmlReallocFunc *__xmlRealloc(void);
|
78
|
+
XMLPUBFUN xmlFreeFunc *__xmlFree(void);
|
79
|
+
XMLPUBFUN xmlStrdupFunc *__xmlMemStrdup(void);
|
80
|
+
|
81
|
+
#ifndef XML_GLOBALS_NO_REDEFINITION
|
82
|
+
#define xmlMalloc (*__xmlMalloc())
|
83
|
+
#define xmlMallocAtomic (*__xmlMallocAtomic())
|
84
|
+
#define xmlRealloc (*__xmlRealloc())
|
85
|
+
#define xmlFree (*__xmlFree())
|
86
|
+
#define xmlMemStrdup (*__xmlMemStrdup())
|
87
|
+
#endif
|
92
88
|
/** DOC_ENABLE */
|
89
|
+
|
90
|
+
#else
|
93
91
|
XMLPUBVAR xmlMallocFunc xmlMalloc;
|
94
92
|
XMLPUBVAR xmlMallocFunc xmlMallocAtomic;
|
95
93
|
XMLPUBVAR xmlReallocFunc xmlRealloc;
|
@@ -112,12 +110,14 @@ XMLPUBFUN int
|
|
112
110
|
xmlMallocFunc *mallocFunc,
|
113
111
|
xmlReallocFunc *reallocFunc,
|
114
112
|
xmlStrdupFunc *strdupFunc);
|
113
|
+
XML_DEPRECATED
|
115
114
|
XMLPUBFUN int
|
116
115
|
xmlGcMemSetup (xmlFreeFunc freeFunc,
|
117
116
|
xmlMallocFunc mallocFunc,
|
118
117
|
xmlMallocFunc mallocAtomicFunc,
|
119
118
|
xmlReallocFunc reallocFunc,
|
120
119
|
xmlStrdupFunc strdupFunc);
|
120
|
+
XML_DEPRECATED
|
121
121
|
XMLPUBFUN int
|
122
122
|
xmlGcMemGet (xmlFreeFunc *freeFunc,
|
123
123
|
xmlMallocFunc *mallocFunc,
|
lxml/includes/libxml/xmlmodule.h
CHANGED
@@ -37,15 +37,19 @@ typedef enum {
|
|
37
37
|
XML_MODULE_LOCAL= 2 /* local binding */
|
38
38
|
} xmlModuleOption;
|
39
39
|
|
40
|
+
XML_DEPRECATED
|
40
41
|
XMLPUBFUN xmlModulePtr xmlModuleOpen (const char *filename,
|
41
42
|
int options);
|
42
43
|
|
44
|
+
XML_DEPRECATED
|
43
45
|
XMLPUBFUN int xmlModuleSymbol (xmlModulePtr module,
|
44
46
|
const char* name,
|
45
47
|
void **result);
|
46
48
|
|
49
|
+
XML_DEPRECATED
|
47
50
|
XMLPUBFUN int xmlModuleClose (xmlModulePtr module);
|
48
51
|
|
52
|
+
XML_DEPRECATED
|
49
53
|
XMLPUBFUN int xmlModuleFree (xmlModulePtr module);
|
50
54
|
|
51
55
|
#ifdef __cplusplus
|
lxml/includes/libxml/xmlreader.h
CHANGED
@@ -14,11 +14,12 @@
|
|
14
14
|
#include <libxml/tree.h>
|
15
15
|
#include <libxml/xmlerror.h>
|
16
16
|
#include <libxml/xmlIO.h>
|
17
|
-
#ifdef
|
17
|
+
#ifdef LIBXML_RELAXNG_ENABLED
|
18
18
|
#include <libxml/relaxng.h>
|
19
|
+
#endif
|
20
|
+
#ifdef LIBXML_SCHEMAS_ENABLED
|
19
21
|
#include <libxml/xmlschemas.h>
|
20
22
|
#endif
|
21
|
-
/* for compatibility */
|
22
23
|
#include <libxml/parser.h>
|
23
24
|
|
24
25
|
#ifdef __cplusplus
|
@@ -288,7 +289,7 @@ XMLPUBFUN int
|
|
288
289
|
xmlTextReaderNextSibling (xmlTextReaderPtr reader);
|
289
290
|
XMLPUBFUN int
|
290
291
|
xmlTextReaderIsValid (xmlTextReaderPtr reader);
|
291
|
-
#ifdef
|
292
|
+
#ifdef LIBXML_RELAXNG_ENABLED
|
292
293
|
XMLPUBFUN int
|
293
294
|
xmlTextReaderRelaxNGValidate(xmlTextReaderPtr reader,
|
294
295
|
const char *rng);
|
@@ -300,6 +301,8 @@ XMLPUBFUN int
|
|
300
301
|
XMLPUBFUN int
|
301
302
|
xmlTextReaderRelaxNGSetSchema(xmlTextReaderPtr reader,
|
302
303
|
xmlRelaxNGPtr schema);
|
304
|
+
#endif
|
305
|
+
#ifdef LIBXML_SCHEMAS_ENABLED
|
303
306
|
XMLPUBFUN int
|
304
307
|
xmlTextReaderSchemaValidate (xmlTextReaderPtr reader,
|
305
308
|
const char *xsd);
|
@@ -426,6 +429,11 @@ XMLPUBFUN void
|
|
426
429
|
xmlTextReaderErrorFunc *f,
|
427
430
|
void **arg);
|
428
431
|
|
432
|
+
XMLPUBFUN void
|
433
|
+
xmlTextReaderSetResourceLoader(xmlTextReaderPtr reader,
|
434
|
+
xmlResourceLoader loader,
|
435
|
+
void *data);
|
436
|
+
|
429
437
|
#endif /* LIBXML_READER_ENABLED */
|
430
438
|
|
431
439
|
#ifdef __cplusplus
|