nokogiri 1.16.7-x86-linux → 1.17.0-x86-linux

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +11 -21
  3. data/README.md +4 -0
  4. data/dependencies.yml +6 -6
  5. data/ext/nokogiri/extconf.rb +191 -137
  6. data/ext/nokogiri/gumbo.c +69 -53
  7. data/ext/nokogiri/html4_document.c +10 -4
  8. data/ext/nokogiri/html4_element_description.c +18 -18
  9. data/ext/nokogiri/html4_sax_parser.c +40 -0
  10. data/ext/nokogiri/html4_sax_parser_context.c +48 -58
  11. data/ext/nokogiri/html4_sax_push_parser.c +25 -24
  12. data/ext/nokogiri/include/libexslt/exsltconfig.h +3 -3
  13. data/ext/nokogiri/include/libxml2/libxml/HTMLparser.h +12 -19
  14. data/ext/nokogiri/include/libxml2/libxml/c14n.h +1 -12
  15. data/ext/nokogiri/include/libxml2/libxml/debugXML.h +1 -1
  16. data/ext/nokogiri/include/libxml2/libxml/encoding.h +9 -0
  17. data/ext/nokogiri/include/libxml2/libxml/entities.h +12 -1
  18. data/ext/nokogiri/include/libxml2/libxml/hash.h +19 -0
  19. data/ext/nokogiri/include/libxml2/libxml/list.h +2 -2
  20. data/ext/nokogiri/include/libxml2/libxml/nanohttp.h +17 -0
  21. data/ext/nokogiri/include/libxml2/libxml/parser.h +60 -54
  22. data/ext/nokogiri/include/libxml2/libxml/parserInternals.h +9 -1
  23. data/ext/nokogiri/include/libxml2/libxml/pattern.h +6 -0
  24. data/ext/nokogiri/include/libxml2/libxml/tree.h +32 -12
  25. data/ext/nokogiri/include/libxml2/libxml/uri.h +11 -0
  26. data/ext/nokogiri/include/libxml2/libxml/valid.h +29 -2
  27. data/ext/nokogiri/include/libxml2/libxml/xinclude.h +7 -0
  28. data/ext/nokogiri/include/libxml2/libxml/xmlIO.h +21 -4
  29. data/ext/nokogiri/include/libxml2/libxml/xmlerror.h +14 -0
  30. data/ext/nokogiri/include/libxml2/libxml/xmlexports.h +111 -15
  31. data/ext/nokogiri/include/libxml2/libxml/xmlmemory.h +8 -45
  32. data/ext/nokogiri/include/libxml2/libxml/xmlreader.h +2 -0
  33. data/ext/nokogiri/include/libxml2/libxml/xmlsave.h +5 -0
  34. data/ext/nokogiri/include/libxml2/libxml/xmlunicode.h +165 -1
  35. data/ext/nokogiri/include/libxml2/libxml/xmlversion.h +7 -171
  36. data/ext/nokogiri/include/libxml2/libxml/xmlwriter.h +1 -0
  37. data/ext/nokogiri/include/libxml2/libxml/xpath.h +4 -0
  38. data/ext/nokogiri/include/libxslt/xsltInternals.h +3 -0
  39. data/ext/nokogiri/include/libxslt/xsltconfig.h +4 -37
  40. data/ext/nokogiri/libxml2_polyfill.c +114 -0
  41. data/ext/nokogiri/nokogiri.c +9 -2
  42. data/ext/nokogiri/nokogiri.h +18 -33
  43. data/ext/nokogiri/xml_attr.c +1 -1
  44. data/ext/nokogiri/xml_cdata.c +2 -10
  45. data/ext/nokogiri/xml_comment.c +3 -8
  46. data/ext/nokogiri/xml_document.c +163 -156
  47. data/ext/nokogiri/xml_document_fragment.c +10 -25
  48. data/ext/nokogiri/xml_dtd.c +1 -1
  49. data/ext/nokogiri/xml_element_content.c +9 -9
  50. data/ext/nokogiri/xml_encoding_handler.c +4 -4
  51. data/ext/nokogiri/xml_namespace.c +6 -6
  52. data/ext/nokogiri/xml_node.c +137 -105
  53. data/ext/nokogiri/xml_node_set.c +46 -44
  54. data/ext/nokogiri/xml_reader.c +54 -58
  55. data/ext/nokogiri/xml_relax_ng.c +35 -56
  56. data/ext/nokogiri/xml_sax_parser.c +156 -88
  57. data/ext/nokogiri/xml_sax_parser_context.c +213 -131
  58. data/ext/nokogiri/xml_sax_push_parser.c +68 -49
  59. data/ext/nokogiri/xml_schema.c +50 -85
  60. data/ext/nokogiri/xml_syntax_error.c +19 -11
  61. data/ext/nokogiri/xml_text.c +2 -4
  62. data/ext/nokogiri/xml_xpath_context.c +2 -2
  63. data/ext/nokogiri/xslt_stylesheet.c +8 -8
  64. data/lib/nokogiri/3.0/nokogiri.so +0 -0
  65. data/lib/nokogiri/3.1/nokogiri.so +0 -0
  66. data/lib/nokogiri/3.2/nokogiri.so +0 -0
  67. data/lib/nokogiri/3.3/nokogiri.so +0 -0
  68. data/lib/nokogiri/class_resolver.rb +1 -1
  69. data/lib/nokogiri/css/node.rb +6 -2
  70. data/lib/nokogiri/css/parser.rb +6 -4
  71. data/lib/nokogiri/css/parser.y +2 -2
  72. data/lib/nokogiri/css/parser_extras.rb +6 -66
  73. data/lib/nokogiri/css/selector_cache.rb +38 -0
  74. data/lib/nokogiri/css/tokenizer.rb +4 -4
  75. data/lib/nokogiri/css/tokenizer.rex +9 -8
  76. data/lib/nokogiri/css/xpath_visitor.rb +42 -6
  77. data/lib/nokogiri/css.rb +86 -20
  78. data/lib/nokogiri/decorators/slop.rb +3 -5
  79. data/lib/nokogiri/encoding_handler.rb +2 -2
  80. data/lib/nokogiri/html4/document.rb +44 -23
  81. data/lib/nokogiri/html4/document_fragment.rb +124 -12
  82. data/lib/nokogiri/html4/encoding_reader.rb +1 -1
  83. data/lib/nokogiri/html4/sax/parser.rb +23 -38
  84. data/lib/nokogiri/html4/sax/parser_context.rb +4 -9
  85. data/lib/nokogiri/html4.rb +9 -14
  86. data/lib/nokogiri/html5/builder.rb +40 -0
  87. data/lib/nokogiri/html5/document.rb +61 -30
  88. data/lib/nokogiri/html5/document_fragment.rb +130 -20
  89. data/lib/nokogiri/html5/node.rb +4 -4
  90. data/lib/nokogiri/html5.rb +114 -72
  91. data/lib/nokogiri/version/constant.rb +1 -1
  92. data/lib/nokogiri/xml/builder.rb +8 -1
  93. data/lib/nokogiri/xml/document.rb +70 -26
  94. data/lib/nokogiri/xml/document_fragment.rb +84 -13
  95. data/lib/nokogiri/xml/node.rb +82 -11
  96. data/lib/nokogiri/xml/node_set.rb +9 -7
  97. data/lib/nokogiri/xml/parse_options.rb +1 -1
  98. data/lib/nokogiri/xml/pp/node.rb +6 -1
  99. data/lib/nokogiri/xml/reader.rb +46 -13
  100. data/lib/nokogiri/xml/relax_ng.rb +57 -20
  101. data/lib/nokogiri/xml/sax/document.rb +174 -83
  102. data/lib/nokogiri/xml/sax/parser.rb +115 -41
  103. data/lib/nokogiri/xml/sax/parser_context.rb +116 -8
  104. data/lib/nokogiri/xml/sax/push_parser.rb +3 -0
  105. data/lib/nokogiri/xml/sax.rb +48 -0
  106. data/lib/nokogiri/xml/schema.rb +112 -45
  107. data/lib/nokogiri/xml/searchable.rb +6 -8
  108. data/lib/nokogiri/xml/syntax_error.rb +22 -0
  109. data/lib/nokogiri/xml.rb +13 -24
  110. data/lib/nokogiri/xslt.rb +3 -9
  111. data/lib/xsd/xmlparser/nokogiri.rb +3 -4
  112. metadata +8 -5
  113. data/ext/nokogiri/libxml2_backwards_compat.c +0 -121
@@ -3,13 +3,10 @@
3
3
  VALUE cNokogiriHtml4SaxPushParser;
4
4
 
5
5
  /*
6
- * call-seq:
7
- * native_write(chunk, last_chunk)
8
- *
9
6
  * Write +chunk+ to PushParser. +last_chunk+ triggers the end_document handle
10
7
  */
11
8
  static VALUE
12
- native_write(VALUE self, VALUE _chunk, VALUE _last_chunk)
9
+ noko_html4_sax_push_parser__native_write(VALUE self, VALUE rb_chunk, VALUE rb_last_chunk)
13
10
  {
14
11
  xmlParserCtxtPtr ctx;
15
12
  const char *chunk = NULL;
@@ -19,44 +16,45 @@ native_write(VALUE self, VALUE _chunk, VALUE _last_chunk)
19
16
 
20
17
  ctx = noko_xml_sax_push_parser_unwrap(self);
21
18
 
22
- if (Qnil != _chunk) {
23
- chunk = StringValuePtr(_chunk);
24
- size = (int)RSTRING_LEN(_chunk);
19
+ if (Qnil != rb_chunk) {
20
+ chunk = StringValuePtr(rb_chunk);
21
+ size = (int)RSTRING_LEN(rb_chunk);
25
22
  }
26
23
 
27
- Nokogiri_structured_error_func_save_and_set(&handler_state, NULL, NULL);
24
+ noko__structured_error_func_save_and_set(&handler_state, NULL, NULL);
28
25
 
29
- status = htmlParseChunk(ctx, chunk, size, Qtrue == _last_chunk ? 1 : 0);
26
+ status = htmlParseChunk(ctx, chunk, size, Qtrue == rb_last_chunk ? 1 : 0);
30
27
 
31
- Nokogiri_structured_error_func_restore(&handler_state);
28
+ noko__structured_error_func_restore(&handler_state);
32
29
 
33
- if ((status != 0) && !(ctx->options & XML_PARSE_RECOVER)) {
30
+ if ((status != 0) && !(xmlCtxtGetOptions(ctx) & XML_PARSE_RECOVER)) {
34
31
  // TODO: there appear to be no tests for this block
35
32
  xmlErrorConstPtr e = xmlCtxtGetLastError(ctx);
36
- Nokogiri_error_raise(NULL, e);
33
+ noko__error_raise(NULL, e);
37
34
  }
38
35
 
39
36
  return self;
40
37
  }
41
38
 
42
39
  /*
43
- * call-seq:
44
- * initialize_native(xml_sax, filename)
45
- *
46
40
  * Initialize the push parser with +xml_sax+ using +filename+
47
41
  */
48
42
  static VALUE
49
- initialize_native(VALUE self, VALUE _xml_sax, VALUE _filename,
50
- VALUE encoding)
43
+ noko_html4_sax_push_parser__initialize_native(
44
+ VALUE self,
45
+ VALUE rb_xml_sax,
46
+ VALUE rb_filename,
47
+ VALUE encoding
48
+ )
51
49
  {
52
50
  htmlSAXHandlerPtr sax;
53
51
  const char *filename = NULL;
54
52
  htmlParserCtxtPtr ctx;
55
53
  xmlCharEncoding enc = XML_CHAR_ENCODING_NONE;
56
54
 
57
- sax = noko_sax_handler_unwrap(_xml_sax);
55
+ sax = noko_xml_sax_parser_unwrap(rb_xml_sax);
58
56
 
59
- if (_filename != Qnil) { filename = StringValueCStr(_filename); }
57
+ if (rb_filename != Qnil) { filename = StringValueCStr(rb_filename); }
60
58
 
61
59
  if (!NIL_P(encoding)) {
62
60
  enc = xmlParseCharEncoding(StringValueCStr(encoding));
@@ -77,9 +75,9 @@ initialize_native(VALUE self, VALUE _xml_sax, VALUE _filename,
77
75
  rb_raise(rb_eRuntimeError, "Could not create a parser context");
78
76
  }
79
77
 
80
- ctx->userData = NOKOGIRI_SAX_TUPLE_NEW(ctx, self);
78
+ ctx->userData = ctx;
79
+ ctx->_private = (void *)rb_xml_sax;
81
80
 
82
- ctx->sax2 = 1;
83
81
  DATA_PTR(self) = ctx;
84
82
  return self;
85
83
  }
@@ -88,8 +86,11 @@ void
88
86
  noko_init_html_sax_push_parser(void)
89
87
  {
90
88
  assert(cNokogiriXmlSaxPushParser);
91
- cNokogiriHtml4SaxPushParser = rb_define_class_under(mNokogiriHtml4Sax, "PushParser", cNokogiriXmlSaxPushParser);
89
+ cNokogiriHtml4SaxPushParser =
90
+ rb_define_class_under(mNokogiriHtml4Sax, "PushParser", cNokogiriXmlSaxPushParser);
92
91
 
93
- rb_define_private_method(cNokogiriHtml4SaxPushParser, "initialize_native", initialize_native, 3);
94
- rb_define_private_method(cNokogiriHtml4SaxPushParser, "native_write", native_write, 2);
92
+ rb_define_private_method(cNokogiriHtml4SaxPushParser, "initialize_native",
93
+ noko_html4_sax_push_parser__initialize_native, 3);
94
+ rb_define_private_method(cNokogiriHtml4SaxPushParser, "native_write",
95
+ noko_html4_sax_push_parser__native_write, 2);
95
96
  }
@@ -18,21 +18,21 @@ extern "C" {
18
18
  *
19
19
  * the version string like "1.2.3"
20
20
  */
21
- #define LIBEXSLT_DOTTED_VERSION "0.8.21"
21
+ #define LIBEXSLT_DOTTED_VERSION "0.8.23"
22
22
 
23
23
  /**
24
24
  * LIBEXSLT_VERSION:
25
25
  *
26
26
  * the version number: 1.2.3 value is 10203
27
27
  */
28
- #define LIBEXSLT_VERSION 821
28
+ #define LIBEXSLT_VERSION 823
29
29
 
30
30
  /**
31
31
  * LIBEXSLT_VERSION_STRING:
32
32
  *
33
33
  * the version number string, 1.2.3 value is "10203"
34
34
  */
35
- #define LIBEXSLT_VERSION_STRING "821"
35
+ #define LIBEXSLT_VERSION_STRING "823"
36
36
 
37
37
  /**
38
38
  * LIBEXSLT_VERSION_EXTRA:
@@ -80,22 +80,17 @@ struct _htmlEntityDesc {
80
80
  const char *desc; /* the description */
81
81
  };
82
82
 
83
- /** DOC_DISABLE */
84
83
  #ifdef LIBXML_SAX1_ENABLED
85
- #define XML_GLOBALS_HTML \
86
- XML_OP(htmlDefaultSAXHandler, xmlSAXHandlerV1, XML_DEPRECATED)
87
- #else
88
- #define XML_GLOBALS_HTML
89
- #endif
90
84
 
91
- #define XML_OP XML_DECLARE_GLOBAL
92
- XML_GLOBALS_HTML
93
- #undef XML_OP
85
+ XML_DEPRECATED
86
+ XMLPUBVAR const xmlSAXHandlerV1 htmlDefaultSAXHandler;
94
87
 
95
- #if defined(LIBXML_THREAD_ENABLED) && !defined(XML_GLOBALS_NO_REDEFINITION)
96
- #define htmlDefaultSAXHandler XML_GLOBAL_MACRO(htmlDefaultSAXHandler)
88
+ #ifdef LIBXML_THREAD_ENABLED
89
+ XML_DEPRECATED
90
+ XMLPUBFUN const xmlSAXHandlerV1 *__htmlDefaultSAXHandler(void);
97
91
  #endif
98
- /** DOC_ENABLE */
92
+
93
+ #endif /* LIBXML_SAX1_ENABLED */
99
94
 
100
95
  /*
101
96
  * There is only few public functions.
@@ -173,6 +168,7 @@ XMLPUBFUN int
173
168
  int *inlen, int quoteChar);
174
169
  XMLPUBFUN int
175
170
  htmlIsScriptAttribute(const xmlChar *name);
171
+ XML_DEPRECATED
176
172
  XMLPUBFUN int
177
173
  htmlHandleOmittedElem(int val);
178
174
 
@@ -251,6 +247,9 @@ XMLPUBFUN htmlDocPtr
251
247
  const char *URL,
252
248
  const char *encoding,
253
249
  int options);
250
+ XMLPUBFUN htmlDocPtr
251
+ htmlCtxtParseDocument (htmlParserCtxtPtr ctxt,
252
+ xmlParserInputPtr input);
254
253
  XMLPUBFUN htmlDocPtr
255
254
  htmlCtxtReadDoc (xmlParserCtxtPtr ctxt,
256
255
  const xmlChar *cur,
@@ -300,7 +299,7 @@ typedef enum {
300
299
  XMLPUBFUN htmlStatus htmlAttrAllowed(const htmlElemDesc*, const xmlChar*, int) ;
301
300
  XMLPUBFUN int htmlElementAllowedHere(const htmlElemDesc*, const xmlChar*) ;
302
301
  XMLPUBFUN htmlStatus htmlElementStatusHere(const htmlElemDesc*, const htmlElemDesc*) ;
303
- XMLPUBFUN htmlStatus htmlNodeStatus(const htmlNodePtr, int) ;
302
+ XMLPUBFUN htmlStatus htmlNodeStatus(htmlNodePtr, int) ;
304
303
  /**
305
304
  * htmlDefaultSubelement:
306
305
  * @elt: HTML element
@@ -333,11 +332,5 @@ XMLPUBFUN htmlStatus htmlNodeStatus(const htmlNodePtr, int) ;
333
332
  }
334
333
  #endif
335
334
 
336
- #else /* LIBXML_HTML_ENABLED */
337
-
338
- /** DOC_DISABLE */
339
- #define XML_GLOBALS_HTML
340
- /** DOC_ENABLE */
341
-
342
335
  #endif /* LIBXML_HTML_ENABLED */
343
336
  #endif /* __HTML_PARSER_H__ */
@@ -39,18 +39,7 @@ extern "C" {
39
39
  * a) default attributes (if any) are added to all nodes
40
40
  * b) all character and parsed entity references are resolved
41
41
  * In order to achieve this in libxml2 the document MUST be loaded with
42
- * following global settings:
43
- *
44
- * xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS;
45
- * xmlSubstituteEntitiesDefault(1);
46
- *
47
- * or corresponding parser context setting:
48
- * xmlParserCtxtPtr ctxt;
49
- *
50
- * ...
51
- * ctxt->loadsubset = XML_DETECT_IDS | XML_COMPLETE_ATTRS;
52
- * ctxt->replaceEntities = 1;
53
- * ...
42
+ * following options: XML_PARSE_DTDATTR | XML_PARSE_NOENT
54
43
  */
55
44
 
56
45
  /*
@@ -203,7 +203,7 @@ XMLPUBFUN int
203
203
  */
204
204
  XMLPUBFUN void
205
205
  xmlShell (xmlDocPtr doc,
206
- char *filename,
206
+ const char *filename,
207
207
  xmlShellReadlineFunc input,
208
208
  FILE *output);
209
209
 
@@ -162,6 +162,13 @@ XMLPUBFUN void
162
162
  xmlCleanupCharEncodingHandlers (void);
163
163
  XMLPUBFUN void
164
164
  xmlRegisterCharEncodingHandler (xmlCharEncodingHandlerPtr handler);
165
+ XMLPUBFUN int
166
+ xmlLookupCharEncodingHandler (xmlCharEncoding enc,
167
+ xmlCharEncodingHandlerPtr *out);
168
+ XMLPUBFUN int
169
+ xmlOpenCharEncodingHandler (const char *name,
170
+ int output,
171
+ xmlCharEncodingHandlerPtr *out);
165
172
  XMLPUBFUN xmlCharEncodingHandlerPtr
166
173
  xmlGetCharEncodingHandler (xmlCharEncoding enc);
167
174
  XMLPUBFUN xmlCharEncodingHandlerPtr
@@ -195,7 +202,9 @@ XMLPUBFUN xmlCharEncoding
195
202
  xmlDetectCharEncoding (const unsigned char *in,
196
203
  int len);
197
204
 
205
+ /** DOC_DISABLE */
198
206
  struct _xmlBuffer;
207
+ /** DOC_ENABLE */
199
208
  XMLPUBFUN int
200
209
  xmlCharEncOutFunc (xmlCharEncodingHandler *handler,
201
210
  struct _xmlBuffer *out,
@@ -11,10 +11,12 @@
11
11
  #ifndef __XML_ENTITIES_H__
12
12
  #define __XML_ENTITIES_H__
13
13
 
14
+ /** DOC_DISABLE */
14
15
  #include <libxml/xmlversion.h>
15
16
  #define XML_TREE_INTERNALS
16
17
  #include <libxml/tree.h>
17
18
  #undef XML_TREE_INTERNALS
19
+ /** DOC_ENABLE */
18
20
 
19
21
  #ifdef __cplusplus
20
22
  extern "C" {
@@ -57,7 +59,7 @@ struct _xmlEntity {
57
59
 
58
60
  struct _xmlEntity *nexte; /* unused */
59
61
  const xmlChar *URI; /* the full URI as computed */
60
- int owner; /* does the entity own the childrens */
62
+ int owner; /* unused */
61
63
  int flags; /* various flags */
62
64
  unsigned long expandedSize; /* expanded size */
63
65
  };
@@ -89,6 +91,15 @@ XMLPUBFUN xmlEntityPtr
89
91
  const xmlChar *content);
90
92
  XMLPUBFUN void
91
93
  xmlFreeEntity (xmlEntityPtr entity);
94
+ XMLPUBFUN int
95
+ xmlAddEntity (xmlDocPtr doc,
96
+ int extSubset,
97
+ const xmlChar *name,
98
+ int type,
99
+ const xmlChar *ExternalID,
100
+ const xmlChar *SystemID,
101
+ const xmlChar *content,
102
+ xmlEntityPtr *out);
92
103
  XMLPUBFUN xmlEntityPtr
93
104
  xmlAddDocEntity (xmlDocPtr doc,
94
105
  const xmlChar *name,
@@ -109,6 +109,10 @@ XMLPUBFUN void
109
109
  /*
110
110
  * Add a new entry to the hash table.
111
111
  */
112
+ XMLPUBFUN int
113
+ xmlHashAdd (xmlHashTablePtr hash,
114
+ const xmlChar *name,
115
+ void *userdata);
112
116
  XMLPUBFUN int
113
117
  xmlHashAddEntry (xmlHashTablePtr hash,
114
118
  const xmlChar *name,
@@ -118,6 +122,11 @@ XMLPUBFUN int
118
122
  const xmlChar *name,
119
123
  void *userdata,
120
124
  xmlHashDeallocator dealloc);
125
+ XMLPUBFUN int
126
+ xmlHashAdd2 (xmlHashTablePtr hash,
127
+ const xmlChar *name,
128
+ const xmlChar *name2,
129
+ void *userdata);
121
130
  XMLPUBFUN int
122
131
  xmlHashAddEntry2 (xmlHashTablePtr hash,
123
132
  const xmlChar *name,
@@ -129,6 +138,12 @@ XMLPUBFUN int
129
138
  const xmlChar *name2,
130
139
  void *userdata,
131
140
  xmlHashDeallocator dealloc);
141
+ XMLPUBFUN int
142
+ xmlHashAdd3 (xmlHashTablePtr hash,
143
+ const xmlChar *name,
144
+ const xmlChar *name2,
145
+ const xmlChar *name3,
146
+ void *userdata);
132
147
  XMLPUBFUN int
133
148
  xmlHashAddEntry3 (xmlHashTablePtr hash,
134
149
  const xmlChar *name,
@@ -199,6 +214,10 @@ XMLPUBFUN void *
199
214
  /*
200
215
  * Helpers.
201
216
  */
217
+ XMLPUBFUN xmlHashTablePtr
218
+ xmlHashCopySafe (xmlHashTablePtr hash,
219
+ xmlHashCopier copy,
220
+ xmlHashDeallocator dealloc);
202
221
  XMLPUBFUN xmlHashTablePtr
203
222
  xmlHashCopy (xmlHashTablePtr hash,
204
223
  xmlHashCopier copy);
@@ -119,10 +119,10 @@ XMLPUBFUN void
119
119
  xmlListMerge (xmlListPtr l1,
120
120
  xmlListPtr l2);
121
121
  XMLPUBFUN xmlListPtr
122
- xmlListDup (const xmlListPtr old);
122
+ xmlListDup (xmlListPtr old);
123
123
  XMLPUBFUN int
124
124
  xmlListCopy (xmlListPtr cur,
125
- const xmlListPtr old);
125
+ xmlListPtr old);
126
126
  /* Link operators */
127
127
  XMLPUBFUN void *
128
128
  xmlLinkGetData (xmlLinkPtr lk);
@@ -18,16 +18,21 @@
18
18
  #ifdef __cplusplus
19
19
  extern "C" {
20
20
  #endif
21
+ XML_DEPRECATED
21
22
  XMLPUBFUN void
22
23
  xmlNanoHTTPInit (void);
24
+ XML_DEPRECATED
23
25
  XMLPUBFUN void
24
26
  xmlNanoHTTPCleanup (void);
27
+ XML_DEPRECATED
25
28
  XMLPUBFUN void
26
29
  xmlNanoHTTPScanProxy (const char *URL);
30
+ XML_DEPRECATED
27
31
  XMLPUBFUN int
28
32
  xmlNanoHTTPFetch (const char *URL,
29
33
  const char *filename,
30
34
  char **contentType);
35
+ XML_DEPRECATED
31
36
  XMLPUBFUN void *
32
37
  xmlNanoHTTPMethod (const char *URL,
33
38
  const char *method,
@@ -35,6 +40,7 @@ XMLPUBFUN void *
35
40
  char **contentType,
36
41
  const char *headers,
37
42
  int ilen);
43
+ XML_DEPRECATED
38
44
  XMLPUBFUN void *
39
45
  xmlNanoHTTPMethodRedir (const char *URL,
40
46
  const char *method,
@@ -43,34 +49,45 @@ XMLPUBFUN void *
43
49
  char **redir,
44
50
  const char *headers,
45
51
  int ilen);
52
+ XML_DEPRECATED
46
53
  XMLPUBFUN void *
47
54
  xmlNanoHTTPOpen (const char *URL,
48
55
  char **contentType);
56
+ XML_DEPRECATED
49
57
  XMLPUBFUN void *
50
58
  xmlNanoHTTPOpenRedir (const char *URL,
51
59
  char **contentType,
52
60
  char **redir);
61
+ XML_DEPRECATED
53
62
  XMLPUBFUN int
54
63
  xmlNanoHTTPReturnCode (void *ctx);
64
+ XML_DEPRECATED
55
65
  XMLPUBFUN const char *
56
66
  xmlNanoHTTPAuthHeader (void *ctx);
67
+ XML_DEPRECATED
57
68
  XMLPUBFUN const char *
58
69
  xmlNanoHTTPRedir (void *ctx);
70
+ XML_DEPRECATED
59
71
  XMLPUBFUN int
60
72
  xmlNanoHTTPContentLength( void * ctx );
73
+ XML_DEPRECATED
61
74
  XMLPUBFUN const char *
62
75
  xmlNanoHTTPEncoding (void *ctx);
76
+ XML_DEPRECATED
63
77
  XMLPUBFUN const char *
64
78
  xmlNanoHTTPMimeType (void *ctx);
79
+ XML_DEPRECATED
65
80
  XMLPUBFUN int
66
81
  xmlNanoHTTPRead (void *ctx,
67
82
  void *dest,
68
83
  int len);
69
84
  #ifdef LIBXML_OUTPUT_ENABLED
85
+ XML_DEPRECATED
70
86
  XMLPUBFUN int
71
87
  xmlNanoHTTPSave (void *ctxt,
72
88
  const char *filename);
73
89
  #endif /* LIBXML_OUTPUT_ENABLED */
90
+ XML_DEPRECATED
74
91
  XMLPUBFUN void
75
92
  xmlNanoHTTPClose (void *ctx);
76
93
  #ifdef __cplusplus