lxml 5.3.2__cp39-cp39-macosx_10_9_universal2.whl → 6.0.0__cp39-cp39-macosx_10_9_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.
Files changed (82) hide show
  1. lxml/__init__.py +1 -1
  2. lxml/_elementpath.cpython-39-darwin.so +0 -0
  3. lxml/_elementpath.py +3 -1
  4. lxml/apihelpers.pxi +25 -17
  5. lxml/builder.cpython-39-darwin.so +0 -0
  6. lxml/builder.py +11 -0
  7. lxml/debug.pxi +0 -54
  8. lxml/etree.cpython-39-darwin.so +0 -0
  9. lxml/etree.h +24 -28
  10. lxml/etree.pyx +154 -33
  11. lxml/etree_api.h +59 -50
  12. lxml/extensions.pxi +3 -6
  13. lxml/html/__init__.py +7 -3
  14. lxml/html/_difflib.cpython-39-darwin.so +0 -0
  15. lxml/html/_difflib.py +2106 -0
  16. lxml/html/builder.py +40 -0
  17. lxml/html/defs.py +3 -3
  18. lxml/html/diff.cpython-39-darwin.so +0 -0
  19. lxml/html/diff.py +406 -312
  20. lxml/includes/etree_defs.h +6 -6
  21. lxml/includes/libexslt/exsltconfig.h +3 -3
  22. lxml/includes/libxml/HTMLparser.h +41 -45
  23. lxml/includes/libxml/HTMLtree.h +1 -0
  24. lxml/includes/libxml/SAX.h +2 -186
  25. lxml/includes/libxml/SAX2.h +2 -3
  26. lxml/includes/libxml/c14n.h +1 -12
  27. lxml/includes/libxml/catalog.h +1 -0
  28. lxml/includes/libxml/debugXML.h +0 -138
  29. lxml/includes/libxml/encoding.h +131 -59
  30. lxml/includes/libxml/entities.h +12 -20
  31. lxml/includes/libxml/globals.h +0 -16
  32. lxml/includes/libxml/hash.h +19 -0
  33. lxml/includes/libxml/list.h +2 -2
  34. lxml/includes/libxml/nanoftp.h +3 -173
  35. lxml/includes/libxml/nanohttp.h +17 -0
  36. lxml/includes/libxml/parser.h +505 -256
  37. lxml/includes/libxml/parserInternals.h +26 -98
  38. lxml/includes/libxml/relaxng.h +7 -2
  39. lxml/includes/libxml/threads.h +0 -6
  40. lxml/includes/libxml/tree.h +61 -97
  41. lxml/includes/libxml/uri.h +11 -0
  42. lxml/includes/libxml/valid.h +49 -14
  43. lxml/includes/libxml/xinclude.h +12 -0
  44. lxml/includes/libxml/xlink.h +4 -0
  45. lxml/includes/libxml/xmlIO.h +33 -35
  46. lxml/includes/libxml/xmlautomata.h +19 -2
  47. lxml/includes/libxml/xmlerror.h +32 -18
  48. lxml/includes/libxml/xmlexports.h +61 -15
  49. lxml/includes/libxml/xmlmemory.h +27 -64
  50. lxml/includes/libxml/xmlmodule.h +4 -0
  51. lxml/includes/libxml/xmlreader.h +13 -3
  52. lxml/includes/libxml/xmlregexp.h +7 -106
  53. lxml/includes/libxml/xmlsave.h +15 -1
  54. lxml/includes/libxml/xmlschemas.h +10 -5
  55. lxml/includes/libxml/xmlunicode.h +3 -190
  56. lxml/includes/libxml/xmlversion.h +15 -194
  57. lxml/includes/libxml/xmlwriter.h +1 -0
  58. lxml/includes/libxml/xpath.h +9 -15
  59. lxml/includes/libxml/xpathInternals.h +9 -3
  60. lxml/includes/libxml/xpointer.h +1 -91
  61. lxml/includes/libxslt/xsltconfig.h +6 -6
  62. lxml/includes/lxml-version.h +1 -1
  63. lxml/includes/tree.pxd +10 -12
  64. lxml/includes/xmlparser.pxd +46 -8
  65. lxml/lxml.etree.h +24 -28
  66. lxml/lxml.etree_api.h +59 -50
  67. lxml/objectify.cpython-39-darwin.so +0 -0
  68. lxml/objectify.pyx +11 -7
  69. lxml/parser.pxi +106 -47
  70. lxml/sax.cpython-39-darwin.so +0 -0
  71. lxml/sax.py +11 -0
  72. lxml/saxparser.pxi +14 -14
  73. lxml/schematron.pxi +8 -3
  74. lxml/serializer.pxi +71 -3
  75. lxml/xslt.pxi +10 -3
  76. lxml-6.0.0.dist-info/METADATA +163 -0
  77. {lxml-5.3.2.dist-info → lxml-6.0.0.dist-info}/RECORD +81 -79
  78. {lxml-5.3.2.dist-info → lxml-6.0.0.dist-info}/WHEEL +2 -1
  79. {lxml-5.3.2.dist-info → lxml-6.0.0.dist-info}/licenses/LICENSE.txt +3 -1
  80. lxml-5.3.2.dist-info/METADATA +0 -100
  81. {lxml-5.3.2.dist-info → lxml-6.0.0.dist-info}/licenses/LICENSES.txt +0 -0
  82. {lxml-5.3.2.dist-info → lxml-6.0.0.dist-info}/top_level.txt +0 -0
@@ -2,201 +2,14 @@
2
2
  * Summary: Unicode character APIs
3
3
  * Description: API for the Unicode character APIs
4
4
  *
5
- * This file is automatically generated from the
6
- * UCS description files of the Unicode Character Database
7
- * http://www.unicode.org/Public/4.0-Update1/UCD-4.0.1.html
8
- * using the genUnicode.py Python script.
9
- *
10
- * Generation date: Mon Mar 27 11:09:52 2006
11
- * Sources: Blocks-4.0.1.txt UnicodeData-4.0.1.txt
12
- * Author: Daniel Veillard
5
+ * Deprecated, don't use.
13
6
  */
14
7
 
15
8
  #ifndef __XML_UNICODE_H__
16
9
  #define __XML_UNICODE_H__
17
10
 
18
- #include <libxml/xmlversion.h>
19
-
20
- #ifdef LIBXML_UNICODE_ENABLED
21
-
22
- #ifdef __cplusplus
23
- extern "C" {
24
- #endif
25
-
26
- XMLPUBFUN int xmlUCSIsAegeanNumbers (int code);
27
- XMLPUBFUN int xmlUCSIsAlphabeticPresentationForms (int code);
28
- XMLPUBFUN int xmlUCSIsArabic (int code);
29
- XMLPUBFUN int xmlUCSIsArabicPresentationFormsA (int code);
30
- XMLPUBFUN int xmlUCSIsArabicPresentationFormsB (int code);
31
- XMLPUBFUN int xmlUCSIsArmenian (int code);
32
- XMLPUBFUN int xmlUCSIsArrows (int code);
33
- XMLPUBFUN int xmlUCSIsBasicLatin (int code);
34
- XMLPUBFUN int xmlUCSIsBengali (int code);
35
- XMLPUBFUN int xmlUCSIsBlockElements (int code);
36
- XMLPUBFUN int xmlUCSIsBopomofo (int code);
37
- XMLPUBFUN int xmlUCSIsBopomofoExtended (int code);
38
- XMLPUBFUN int xmlUCSIsBoxDrawing (int code);
39
- XMLPUBFUN int xmlUCSIsBraillePatterns (int code);
40
- XMLPUBFUN int xmlUCSIsBuhid (int code);
41
- XMLPUBFUN int xmlUCSIsByzantineMusicalSymbols (int code);
42
- XMLPUBFUN int xmlUCSIsCJKCompatibility (int code);
43
- XMLPUBFUN int xmlUCSIsCJKCompatibilityForms (int code);
44
- XMLPUBFUN int xmlUCSIsCJKCompatibilityIdeographs (int code);
45
- XMLPUBFUN int xmlUCSIsCJKCompatibilityIdeographsSupplement (int code);
46
- XMLPUBFUN int xmlUCSIsCJKRadicalsSupplement (int code);
47
- XMLPUBFUN int xmlUCSIsCJKSymbolsandPunctuation (int code);
48
- XMLPUBFUN int xmlUCSIsCJKUnifiedIdeographs (int code);
49
- XMLPUBFUN int xmlUCSIsCJKUnifiedIdeographsExtensionA (int code);
50
- XMLPUBFUN int xmlUCSIsCJKUnifiedIdeographsExtensionB (int code);
51
- XMLPUBFUN int xmlUCSIsCherokee (int code);
52
- XMLPUBFUN int xmlUCSIsCombiningDiacriticalMarks (int code);
53
- XMLPUBFUN int xmlUCSIsCombiningDiacriticalMarksforSymbols (int code);
54
- XMLPUBFUN int xmlUCSIsCombiningHalfMarks (int code);
55
- XMLPUBFUN int xmlUCSIsCombiningMarksforSymbols (int code);
56
- XMLPUBFUN int xmlUCSIsControlPictures (int code);
57
- XMLPUBFUN int xmlUCSIsCurrencySymbols (int code);
58
- XMLPUBFUN int xmlUCSIsCypriotSyllabary (int code);
59
- XMLPUBFUN int xmlUCSIsCyrillic (int code);
60
- XMLPUBFUN int xmlUCSIsCyrillicSupplement (int code);
61
- XMLPUBFUN int xmlUCSIsDeseret (int code);
62
- XMLPUBFUN int xmlUCSIsDevanagari (int code);
63
- XMLPUBFUN int xmlUCSIsDingbats (int code);
64
- XMLPUBFUN int xmlUCSIsEnclosedAlphanumerics (int code);
65
- XMLPUBFUN int xmlUCSIsEnclosedCJKLettersandMonths (int code);
66
- XMLPUBFUN int xmlUCSIsEthiopic (int code);
67
- XMLPUBFUN int xmlUCSIsGeneralPunctuation (int code);
68
- XMLPUBFUN int xmlUCSIsGeometricShapes (int code);
69
- XMLPUBFUN int xmlUCSIsGeorgian (int code);
70
- XMLPUBFUN int xmlUCSIsGothic (int code);
71
- XMLPUBFUN int xmlUCSIsGreek (int code);
72
- XMLPUBFUN int xmlUCSIsGreekExtended (int code);
73
- XMLPUBFUN int xmlUCSIsGreekandCoptic (int code);
74
- XMLPUBFUN int xmlUCSIsGujarati (int code);
75
- XMLPUBFUN int xmlUCSIsGurmukhi (int code);
76
- XMLPUBFUN int xmlUCSIsHalfwidthandFullwidthForms (int code);
77
- XMLPUBFUN int xmlUCSIsHangulCompatibilityJamo (int code);
78
- XMLPUBFUN int xmlUCSIsHangulJamo (int code);
79
- XMLPUBFUN int xmlUCSIsHangulSyllables (int code);
80
- XMLPUBFUN int xmlUCSIsHanunoo (int code);
81
- XMLPUBFUN int xmlUCSIsHebrew (int code);
82
- XMLPUBFUN int xmlUCSIsHighPrivateUseSurrogates (int code);
83
- XMLPUBFUN int xmlUCSIsHighSurrogates (int code);
84
- XMLPUBFUN int xmlUCSIsHiragana (int code);
85
- XMLPUBFUN int xmlUCSIsIPAExtensions (int code);
86
- XMLPUBFUN int xmlUCSIsIdeographicDescriptionCharacters (int code);
87
- XMLPUBFUN int xmlUCSIsKanbun (int code);
88
- XMLPUBFUN int xmlUCSIsKangxiRadicals (int code);
89
- XMLPUBFUN int xmlUCSIsKannada (int code);
90
- XMLPUBFUN int xmlUCSIsKatakana (int code);
91
- XMLPUBFUN int xmlUCSIsKatakanaPhoneticExtensions (int code);
92
- XMLPUBFUN int xmlUCSIsKhmer (int code);
93
- XMLPUBFUN int xmlUCSIsKhmerSymbols (int code);
94
- XMLPUBFUN int xmlUCSIsLao (int code);
95
- XMLPUBFUN int xmlUCSIsLatin1Supplement (int code);
96
- XMLPUBFUN int xmlUCSIsLatinExtendedA (int code);
97
- XMLPUBFUN int xmlUCSIsLatinExtendedB (int code);
98
- XMLPUBFUN int xmlUCSIsLatinExtendedAdditional (int code);
99
- XMLPUBFUN int xmlUCSIsLetterlikeSymbols (int code);
100
- XMLPUBFUN int xmlUCSIsLimbu (int code);
101
- XMLPUBFUN int xmlUCSIsLinearBIdeograms (int code);
102
- XMLPUBFUN int xmlUCSIsLinearBSyllabary (int code);
103
- XMLPUBFUN int xmlUCSIsLowSurrogates (int code);
104
- XMLPUBFUN int xmlUCSIsMalayalam (int code);
105
- XMLPUBFUN int xmlUCSIsMathematicalAlphanumericSymbols (int code);
106
- XMLPUBFUN int xmlUCSIsMathematicalOperators (int code);
107
- XMLPUBFUN int xmlUCSIsMiscellaneousMathematicalSymbolsA (int code);
108
- XMLPUBFUN int xmlUCSIsMiscellaneousMathematicalSymbolsB (int code);
109
- XMLPUBFUN int xmlUCSIsMiscellaneousSymbols (int code);
110
- XMLPUBFUN int xmlUCSIsMiscellaneousSymbolsandArrows (int code);
111
- XMLPUBFUN int xmlUCSIsMiscellaneousTechnical (int code);
112
- XMLPUBFUN int xmlUCSIsMongolian (int code);
113
- XMLPUBFUN int xmlUCSIsMusicalSymbols (int code);
114
- XMLPUBFUN int xmlUCSIsMyanmar (int code);
115
- XMLPUBFUN int xmlUCSIsNumberForms (int code);
116
- XMLPUBFUN int xmlUCSIsOgham (int code);
117
- XMLPUBFUN int xmlUCSIsOldItalic (int code);
118
- XMLPUBFUN int xmlUCSIsOpticalCharacterRecognition (int code);
119
- XMLPUBFUN int xmlUCSIsOriya (int code);
120
- XMLPUBFUN int xmlUCSIsOsmanya (int code);
121
- XMLPUBFUN int xmlUCSIsPhoneticExtensions (int code);
122
- XMLPUBFUN int xmlUCSIsPrivateUse (int code);
123
- XMLPUBFUN int xmlUCSIsPrivateUseArea (int code);
124
- XMLPUBFUN int xmlUCSIsRunic (int code);
125
- XMLPUBFUN int xmlUCSIsShavian (int code);
126
- XMLPUBFUN int xmlUCSIsSinhala (int code);
127
- XMLPUBFUN int xmlUCSIsSmallFormVariants (int code);
128
- XMLPUBFUN int xmlUCSIsSpacingModifierLetters (int code);
129
- XMLPUBFUN int xmlUCSIsSpecials (int code);
130
- XMLPUBFUN int xmlUCSIsSuperscriptsandSubscripts (int code);
131
- XMLPUBFUN int xmlUCSIsSupplementalArrowsA (int code);
132
- XMLPUBFUN int xmlUCSIsSupplementalArrowsB (int code);
133
- XMLPUBFUN int xmlUCSIsSupplementalMathematicalOperators (int code);
134
- XMLPUBFUN int xmlUCSIsSupplementaryPrivateUseAreaA (int code);
135
- XMLPUBFUN int xmlUCSIsSupplementaryPrivateUseAreaB (int code);
136
- XMLPUBFUN int xmlUCSIsSyriac (int code);
137
- XMLPUBFUN int xmlUCSIsTagalog (int code);
138
- XMLPUBFUN int xmlUCSIsTagbanwa (int code);
139
- XMLPUBFUN int xmlUCSIsTags (int code);
140
- XMLPUBFUN int xmlUCSIsTaiLe (int code);
141
- XMLPUBFUN int xmlUCSIsTaiXuanJingSymbols (int code);
142
- XMLPUBFUN int xmlUCSIsTamil (int code);
143
- XMLPUBFUN int xmlUCSIsTelugu (int code);
144
- XMLPUBFUN int xmlUCSIsThaana (int code);
145
- XMLPUBFUN int xmlUCSIsThai (int code);
146
- XMLPUBFUN int xmlUCSIsTibetan (int code);
147
- XMLPUBFUN int xmlUCSIsUgaritic (int code);
148
- XMLPUBFUN int xmlUCSIsUnifiedCanadianAboriginalSyllabics (int code);
149
- XMLPUBFUN int xmlUCSIsVariationSelectors (int code);
150
- XMLPUBFUN int xmlUCSIsVariationSelectorsSupplement (int code);
151
- XMLPUBFUN int xmlUCSIsYiRadicals (int code);
152
- XMLPUBFUN int xmlUCSIsYiSyllables (int code);
153
- XMLPUBFUN int xmlUCSIsYijingHexagramSymbols (int code);
154
-
155
- XMLPUBFUN int xmlUCSIsBlock (int code, const char *block);
156
-
157
- XMLPUBFUN int xmlUCSIsCatC (int code);
158
- XMLPUBFUN int xmlUCSIsCatCc (int code);
159
- XMLPUBFUN int xmlUCSIsCatCf (int code);
160
- XMLPUBFUN int xmlUCSIsCatCo (int code);
161
- XMLPUBFUN int xmlUCSIsCatCs (int code);
162
- XMLPUBFUN int xmlUCSIsCatL (int code);
163
- XMLPUBFUN int xmlUCSIsCatLl (int code);
164
- XMLPUBFUN int xmlUCSIsCatLm (int code);
165
- XMLPUBFUN int xmlUCSIsCatLo (int code);
166
- XMLPUBFUN int xmlUCSIsCatLt (int code);
167
- XMLPUBFUN int xmlUCSIsCatLu (int code);
168
- XMLPUBFUN int xmlUCSIsCatM (int code);
169
- XMLPUBFUN int xmlUCSIsCatMc (int code);
170
- XMLPUBFUN int xmlUCSIsCatMe (int code);
171
- XMLPUBFUN int xmlUCSIsCatMn (int code);
172
- XMLPUBFUN int xmlUCSIsCatN (int code);
173
- XMLPUBFUN int xmlUCSIsCatNd (int code);
174
- XMLPUBFUN int xmlUCSIsCatNl (int code);
175
- XMLPUBFUN int xmlUCSIsCatNo (int code);
176
- XMLPUBFUN int xmlUCSIsCatP (int code);
177
- XMLPUBFUN int xmlUCSIsCatPc (int code);
178
- XMLPUBFUN int xmlUCSIsCatPd (int code);
179
- XMLPUBFUN int xmlUCSIsCatPe (int code);
180
- XMLPUBFUN int xmlUCSIsCatPf (int code);
181
- XMLPUBFUN int xmlUCSIsCatPi (int code);
182
- XMLPUBFUN int xmlUCSIsCatPo (int code);
183
- XMLPUBFUN int xmlUCSIsCatPs (int code);
184
- XMLPUBFUN int xmlUCSIsCatS (int code);
185
- XMLPUBFUN int xmlUCSIsCatSc (int code);
186
- XMLPUBFUN int xmlUCSIsCatSk (int code);
187
- XMLPUBFUN int xmlUCSIsCatSm (int code);
188
- XMLPUBFUN int xmlUCSIsCatSo (int code);
189
- XMLPUBFUN int xmlUCSIsCatZ (int code);
190
- XMLPUBFUN int xmlUCSIsCatZl (int code);
191
- XMLPUBFUN int xmlUCSIsCatZp (int code);
192
- XMLPUBFUN int xmlUCSIsCatZs (int code);
193
-
194
- XMLPUBFUN int xmlUCSIsCat (int code, const char *cat);
195
-
196
- #ifdef __cplusplus
197
- }
11
+ #ifdef __GNUC__
12
+ #warning "libxml/xmlunicode.h is deprecated"
198
13
  #endif
199
14
 
200
- #endif /* LIBXML_UNICODE_ENABLED */
201
-
202
15
  #endif /* __XML_UNICODE_H__ */
@@ -10,40 +10,26 @@
10
10
  #ifndef __XML_VERSION_H__
11
11
  #define __XML_VERSION_H__
12
12
 
13
- #include <libxml/xmlexports.h>
14
-
15
- #ifdef __cplusplus
16
- extern "C" {
17
- #endif
18
-
19
- /*
20
- * use those to be sure nothing nasty will happen if
21
- * your library and includes mismatch
22
- */
23
- #ifndef LIBXML2_COMPILING_MSCCDEF
24
- XMLPUBFUN void xmlCheckVersion(int version);
25
- #endif /* LIBXML2_COMPILING_MSCCDEF */
26
-
27
13
  /**
28
14
  * LIBXML_DOTTED_VERSION:
29
15
  *
30
16
  * the version string like "1.2.3"
31
17
  */
32
- #define LIBXML_DOTTED_VERSION "2.12.10"
18
+ #define LIBXML_DOTTED_VERSION "2.14.4"
33
19
 
34
20
  /**
35
21
  * LIBXML_VERSION:
36
22
  *
37
23
  * the version number: 1.2.3 value is 10203
38
24
  */
39
- #define LIBXML_VERSION 21210
25
+ #define LIBXML_VERSION 21404
40
26
 
41
27
  /**
42
28
  * LIBXML_VERSION_STRING:
43
29
  *
44
30
  * the version number string, 1.2.3 value is "10203"
45
31
  */
46
- #define LIBXML_VERSION_STRING "21210"
32
+ #define LIBXML_VERSION_STRING "21404"
47
33
 
48
34
  /**
49
35
  * LIBXML_VERSION_EXTRA:
@@ -58,32 +44,7 @@ XMLPUBFUN void xmlCheckVersion(int version);
58
44
  * Macro to check that the libxml version in use is compatible with
59
45
  * the version the software has been compiled against
60
46
  */
61
- #define LIBXML_TEST_VERSION xmlCheckVersion(21210);
62
-
63
- #ifndef VMS
64
- #if 0
65
- /**
66
- * WITH_TRIO:
67
- *
68
- * defined if the trio support need to be configured in
69
- */
70
- #define WITH_TRIO
71
- #else
72
- /**
73
- * WITHOUT_TRIO:
74
- *
75
- * defined if the trio support should not be configured in
76
- */
77
- #define WITHOUT_TRIO
78
- #endif
79
- #else /* VMS */
80
- /**
81
- * WITH_TRIO:
82
- *
83
- * defined if the trio support need to be configured in
84
- */
85
- #define WITH_TRIO 1
86
- #endif /* VMS */
47
+ #define LIBXML_TEST_VERSION xmlCheckVersion(21404);
87
48
 
88
49
  /**
89
50
  * LIBXML_THREAD_ENABLED:
@@ -106,11 +67,9 @@ XMLPUBFUN void xmlCheckVersion(int version);
106
67
  /**
107
68
  * LIBXML_TREE_ENABLED:
108
69
  *
109
- * Whether the DOM like tree manipulation API support is configured in
70
+ * Always enabled since 2.14.0
110
71
  */
111
- #if 1
112
72
  #define LIBXML_TREE_ENABLED
113
- #endif
114
73
 
115
74
  /**
116
75
  * LIBXML_OUTPUT_ENABLED:
@@ -166,21 +125,12 @@ XMLPUBFUN void xmlCheckVersion(int version);
166
125
  #define LIBXML_SAX1_ENABLED
167
126
  #endif
168
127
 
169
- /**
170
- * LIBXML_FTP_ENABLED:
171
- *
172
- * Whether the FTP support is configured in
173
- */
174
- #if 0
175
- #define LIBXML_FTP_ENABLED
176
- #endif
177
-
178
128
  /**
179
129
  * LIBXML_HTTP_ENABLED:
180
130
  *
181
131
  * Whether the HTTP support is configured in
182
132
  */
183
- #if 1
133
+ #if 0
184
134
  #define LIBXML_HTTP_ENABLED
185
135
  #endif
186
136
 
@@ -205,11 +155,9 @@ XMLPUBFUN void xmlCheckVersion(int version);
205
155
  /**
206
156
  * LIBXML_LEGACY_ENABLED:
207
157
  *
208
- * Whether the deprecated APIs are compiled in for compatibility
158
+ * Removed in 2.14
209
159
  */
210
- #if 0
211
- #define LIBXML_LEGACY_ENABLED
212
- #endif
160
+ #undef LIBXML_LEGACY_ENABLED
213
161
 
214
162
  /**
215
163
  * LIBXML_C14N_ENABLED:
@@ -247,15 +195,6 @@ XMLPUBFUN void xmlCheckVersion(int version);
247
195
  #define LIBXML_XPTR_ENABLED
248
196
  #endif
249
197
 
250
- /**
251
- * LIBXML_XPTR_LOCS_ENABLED:
252
- *
253
- * Whether support for XPointer locations is configured in
254
- */
255
- #if 0
256
- #define LIBXML_XPTR_LOCS_ENABLED
257
- #endif
258
-
259
198
  /**
260
199
  * LIBXML_XINCLUDE_ENABLED:
261
200
  *
@@ -301,32 +240,12 @@ XMLPUBFUN void xmlCheckVersion(int version);
301
240
  #define LIBXML_DEBUG_ENABLED
302
241
  #endif
303
242
 
304
- /**
305
- * DEBUG_MEMORY_LOCATION:
306
- *
307
- * Whether the memory debugging is configured in
308
- */
309
- #if 0
310
- #define DEBUG_MEMORY_LOCATION
311
- #endif
312
-
313
- /**
314
- * LIBXML_DEBUG_RUNTIME:
315
- *
316
- * Removed
317
- */
318
- #if 0
319
- #define LIBXML_DEBUG_RUNTIME
320
- #endif
321
-
322
243
  /**
323
244
  * LIBXML_UNICODE_ENABLED:
324
245
  *
325
- * Whether the Unicode related interfaces are compiled in
246
+ * Removed in 2.14
326
247
  */
327
- #if 1
328
- #define LIBXML_UNICODE_ENABLED
329
- #endif
248
+ #undef LIBXML_UNICODE_ENABLED
330
249
 
331
250
  /**
332
251
  * LIBXML_REGEXP_ENABLED:
@@ -347,14 +266,12 @@ XMLPUBFUN void xmlCheckVersion(int version);
347
266
  #endif
348
267
 
349
268
  /**
350
- * LIBXML_EXPR_ENABLED:
351
- *
352
- * Whether the formal expressions interfaces are compiled in
269
+ * LIBXML_RELAXNG_ENABLED:
353
270
  *
354
- * This code is unused and disabled unconditionally for now.
271
+ * Whether the RelaxNG validation interfaces are compiled in
355
272
  */
356
- #if 0
357
- #define LIBXML_EXPR_ENABLED
273
+ #if 1
274
+ #define LIBXML_RELAXNG_ENABLED
358
275
  #endif
359
276
 
360
277
  /**
@@ -408,104 +325,8 @@ XMLPUBFUN void xmlCheckVersion(int version);
408
325
  #define LIBXML_LZMA_ENABLED
409
326
  #endif
410
327
 
411
- #ifdef __GNUC__
412
- /** DOC_DISABLE */
413
-
414
- #ifndef ATTRIBUTE_UNUSED
415
- # if ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)))
416
- # define ATTRIBUTE_UNUSED __attribute__((unused))
417
- # else
418
- # define ATTRIBUTE_UNUSED
419
- # endif
420
- #endif
421
-
422
- #ifndef LIBXML_ATTR_ALLOC_SIZE
423
- # if (!defined(__clang__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3))))
424
- # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
425
- # else
426
- # define LIBXML_ATTR_ALLOC_SIZE(x)
427
- # endif
428
- #else
429
- # define LIBXML_ATTR_ALLOC_SIZE(x)
430
- #endif
431
-
432
- #ifndef LIBXML_ATTR_FORMAT
433
- # if ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
434
- # define LIBXML_ATTR_FORMAT(fmt,args) __attribute__((__format__(__printf__,fmt,args)))
435
- # else
436
- # define LIBXML_ATTR_FORMAT(fmt,args)
437
- # endif
438
- #else
439
- # define LIBXML_ATTR_FORMAT(fmt,args)
440
- #endif
441
-
442
- #ifndef XML_DEPRECATED
443
- # if defined (IN_LIBXML) || (__GNUC__ * 100 + __GNUC_MINOR__ < 301)
444
- # define XML_DEPRECATED
445
- /* Available since at least GCC 3.1 */
446
- # else
447
- # define XML_DEPRECATED __attribute__((deprecated))
448
- # endif
449
- #endif
450
-
451
- #if defined(__clang__) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 406)
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 \
463
- _Pragma("GCC diagnostic pop")
464
- #else
465
- #define XML_IGNORE_FPTR_CAST_WARNINGS
466
- #define XML_POP_WARNINGS
467
- #endif
468
-
469
- #else /* ! __GNUC__ */
470
- #define ATTRIBUTE_UNUSED
471
- #define LIBXML_ATTR_ALLOC_SIZE(x)
472
- #define LIBXML_ATTR_FORMAT(fmt,args)
473
- #ifndef XML_DEPRECATED
474
- # if defined (IN_LIBXML) || !defined (_MSC_VER)
475
- # define XML_DEPRECATED
476
- /* Available since Visual Studio 2005 */
477
- # elif defined (_MSC_VER) && (_MSC_VER >= 1400)
478
- # define XML_DEPRECATED __declspec(deprecated)
479
- # endif
480
- #endif
481
- #if defined (_MSC_VER) && (_MSC_VER >= 1400)
482
- # define XML_IGNORE_FPTR_CAST_WARNINGS __pragma(warning(push))
483
- #else
484
- # define XML_IGNORE_FPTR_CAST_WARNINGS
485
- #endif
486
- #ifndef XML_POP_WARNINGS
487
- # if defined (_MSC_VER) && (_MSC_VER >= 1400)
488
- # define XML_POP_WARNINGS __pragma(warning(pop))
489
- # else
490
- # define XML_POP_WARNINGS
491
- # endif
492
- #endif
493
- #endif /* __GNUC__ */
494
-
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
328
+ #include <libxml/xmlexports.h>
505
329
 
506
- #ifdef __cplusplus
507
- }
508
- #endif /* __cplusplus */
509
330
  #endif
510
331
 
511
332
 
@@ -478,6 +478,7 @@ extern "C" {
478
478
  * misc
479
479
  */
480
480
  XMLPUBFUN int xmlTextWriterFlush(xmlTextWriterPtr writer);
481
+ XMLPUBFUN int xmlTextWriterClose(xmlTextWriterPtr writer);
481
482
 
482
483
  #ifdef __cplusplus
483
484
  }
@@ -26,15 +26,10 @@
26
26
  #include <libxml/xmlerror.h>
27
27
  #include <libxml/tree.h>
28
28
  #include <libxml/hash.h>
29
- #endif /* LIBXML_XPATH_ENABLED */
30
29
 
31
- #if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
32
30
  #ifdef __cplusplus
33
31
  extern "C" {
34
32
  #endif
35
- #endif /* LIBXML_XPATH_ENABLED or LIBXML_SCHEMAS_ENABLED */
36
-
37
- #ifdef LIBXML_XPATH_ENABLED
38
33
 
39
34
  typedef struct _xmlXPathContext xmlXPathContext;
40
35
  typedef xmlXPathContext *xmlXPathContextPtr;
@@ -104,22 +99,15 @@ typedef enum {
104
99
  XPATH_BOOLEAN = 2,
105
100
  XPATH_NUMBER = 3,
106
101
  XPATH_STRING = 4,
107
- #ifdef LIBXML_XPTR_LOCS_ENABLED
108
- XPATH_POINT = 5,
109
- XPATH_RANGE = 6,
110
- XPATH_LOCATIONSET = 7,
111
- #endif
112
102
  XPATH_USERS = 8,
113
103
  XPATH_XSLT_TREE = 9 /* An XSLT value tree, non modifiable */
114
104
  } xmlXPathObjectType;
115
105
 
116
- #ifndef LIBXML_XPTR_LOCS_ENABLED
117
106
  /** DOC_DISABLE */
118
107
  #define XPATH_POINT 5
119
108
  #define XPATH_RANGE 6
120
109
  #define XPATH_LOCATIONSET 7
121
110
  /** DOC_ENABLE */
122
- #endif
123
111
 
124
112
  typedef struct _xmlXPathObject xmlXPathObject;
125
113
  typedef xmlXPathObject *xmlXPathObjectPtr;
@@ -413,8 +401,11 @@ struct _xmlXPathParserContext {
413
401
  * Objects and Nodesets handling
414
402
  */
415
403
 
404
+ XML_DEPRECATED
416
405
  XMLPUBVAR double xmlXPathNAN;
406
+ XML_DEPRECATED
417
407
  XMLPUBVAR double xmlXPathPINF;
408
+ XML_DEPRECATED
418
409
  XMLPUBVAR double xmlXPathNINF;
419
410
 
420
411
  /* These macros may later turn into functions */
@@ -515,6 +506,10 @@ XMLPUBFUN xmlXPathContextPtr
515
506
  xmlXPathNewContext (xmlDocPtr doc);
516
507
  XMLPUBFUN void
517
508
  xmlXPathFreeContext (xmlXPathContextPtr ctxt);
509
+ XMLPUBFUN void
510
+ xmlXPathSetErrorHandler(xmlXPathContextPtr ctxt,
511
+ xmlStructuredErrorFunc handler,
512
+ void *context);
518
513
  XMLPUBFUN int
519
514
  xmlXPathContextSetCache(xmlXPathContextPtr ctxt,
520
515
  int active,
@@ -557,8 +552,7 @@ XMLPUBFUN int
557
552
  xmlXPathContextPtr ctxt);
558
553
  XMLPUBFUN void
559
554
  xmlXPathFreeCompExpr (xmlXPathCompExprPtr comp);
560
- #endif /* LIBXML_XPATH_ENABLED */
561
- #if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
555
+
562
556
  XML_DEPRECATED
563
557
  XMLPUBFUN void
564
558
  xmlXPathInit (void);
@@ -571,5 +565,5 @@ XMLPUBFUN int
571
565
  }
572
566
  #endif
573
567
 
574
- #endif /* LIBXML_XPATH_ENABLED or LIBXML_SCHEMAS_ENABLED*/
568
+ #endif /* LIBXML_XPATH_ENABLED */
575
569
  #endif /* ! __XML_XPATH_H__ */
@@ -22,6 +22,12 @@
22
22
  extern "C" {
23
23
  #endif
24
24
 
25
+ /*
26
+ * Backward compatibility
27
+ */
28
+ #define valuePush xmlXPathValuePush
29
+ #define valuePop xmlXPathValuePop
30
+
25
31
  /************************************************************************
26
32
  * *
27
33
  * Helpers *
@@ -478,11 +484,10 @@ XMLPUBFUN xmlXPathParserContextPtr
478
484
  XMLPUBFUN void
479
485
  xmlXPathFreeParserContext (xmlXPathParserContextPtr ctxt);
480
486
 
481
- /* TODO: remap to xmlXPathValuePop and Push. */
482
487
  XMLPUBFUN xmlXPathObjectPtr
483
- valuePop (xmlXPathParserContextPtr ctxt);
488
+ xmlXPathValuePop (xmlXPathParserContextPtr ctxt);
484
489
  XMLPUBFUN int
485
- valuePush (xmlXPathParserContextPtr ctxt,
490
+ xmlXPathValuePush (xmlXPathParserContextPtr ctxt,
486
491
  xmlXPathObjectPtr value);
487
492
 
488
493
  XMLPUBFUN xmlXPathObjectPtr
@@ -516,6 +521,7 @@ XMLPUBFUN void
516
521
 
517
522
  XMLPUBFUN void
518
523
  xmlXPathRoot (xmlXPathParserContextPtr ctxt);
524
+ XML_DEPRECATED
519
525
  XMLPUBFUN void
520
526
  xmlXPathEvalExpr (xmlXPathParserContextPtr ctxt);
521
527
  XMLPUBFUN xmlChar *