nokogiri 1.16.8-x86_64-darwin → 1.17.0-x86_64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +11 -21
- data/README.md +4 -0
- data/dependencies.yml +6 -6
- data/ext/nokogiri/extconf.rb +191 -137
- data/ext/nokogiri/gumbo.c +69 -53
- data/ext/nokogiri/html4_document.c +10 -4
- data/ext/nokogiri/html4_element_description.c +18 -18
- data/ext/nokogiri/html4_sax_parser.c +40 -0
- data/ext/nokogiri/html4_sax_parser_context.c +48 -58
- data/ext/nokogiri/html4_sax_push_parser.c +25 -24
- data/ext/nokogiri/include/libexslt/exsltconfig.h +3 -3
- data/ext/nokogiri/include/libxml2/libxml/HTMLparser.h +12 -19
- data/ext/nokogiri/include/libxml2/libxml/c14n.h +1 -12
- data/ext/nokogiri/include/libxml2/libxml/debugXML.h +1 -1
- data/ext/nokogiri/include/libxml2/libxml/encoding.h +9 -0
- data/ext/nokogiri/include/libxml2/libxml/entities.h +12 -1
- data/ext/nokogiri/include/libxml2/libxml/hash.h +19 -0
- data/ext/nokogiri/include/libxml2/libxml/list.h +2 -2
- data/ext/nokogiri/include/libxml2/libxml/nanohttp.h +17 -0
- data/ext/nokogiri/include/libxml2/libxml/parser.h +60 -54
- data/ext/nokogiri/include/libxml2/libxml/parserInternals.h +9 -1
- data/ext/nokogiri/include/libxml2/libxml/pattern.h +6 -0
- data/ext/nokogiri/include/libxml2/libxml/tree.h +32 -12
- data/ext/nokogiri/include/libxml2/libxml/uri.h +11 -0
- data/ext/nokogiri/include/libxml2/libxml/valid.h +29 -2
- data/ext/nokogiri/include/libxml2/libxml/xinclude.h +7 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlIO.h +21 -4
- data/ext/nokogiri/include/libxml2/libxml/xmlerror.h +14 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlexports.h +111 -15
- data/ext/nokogiri/include/libxml2/libxml/xmlmemory.h +8 -45
- data/ext/nokogiri/include/libxml2/libxml/xmlreader.h +2 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlsave.h +5 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlunicode.h +165 -1
- data/ext/nokogiri/include/libxml2/libxml/xmlversion.h +7 -171
- data/ext/nokogiri/include/libxml2/libxml/xmlwriter.h +1 -0
- data/ext/nokogiri/include/libxml2/libxml/xpath.h +4 -0
- data/ext/nokogiri/include/libxslt/xsltInternals.h +3 -0
- data/ext/nokogiri/include/libxslt/xsltconfig.h +4 -37
- data/ext/nokogiri/libxml2_polyfill.c +114 -0
- data/ext/nokogiri/nokogiri.c +9 -2
- data/ext/nokogiri/nokogiri.h +18 -33
- data/ext/nokogiri/xml_attr.c +1 -1
- data/ext/nokogiri/xml_cdata.c +2 -10
- data/ext/nokogiri/xml_comment.c +3 -8
- data/ext/nokogiri/xml_document.c +163 -156
- data/ext/nokogiri/xml_document_fragment.c +10 -25
- data/ext/nokogiri/xml_dtd.c +1 -1
- data/ext/nokogiri/xml_element_content.c +9 -9
- data/ext/nokogiri/xml_encoding_handler.c +4 -4
- data/ext/nokogiri/xml_namespace.c +6 -6
- data/ext/nokogiri/xml_node.c +130 -104
- data/ext/nokogiri/xml_node_set.c +46 -44
- data/ext/nokogiri/xml_reader.c +54 -58
- data/ext/nokogiri/xml_relax_ng.c +35 -56
- data/ext/nokogiri/xml_sax_parser.c +156 -88
- data/ext/nokogiri/xml_sax_parser_context.c +213 -131
- data/ext/nokogiri/xml_sax_push_parser.c +68 -49
- data/ext/nokogiri/xml_schema.c +50 -85
- data/ext/nokogiri/xml_syntax_error.c +19 -11
- data/ext/nokogiri/xml_text.c +2 -4
- data/ext/nokogiri/xml_xpath_context.c +2 -2
- data/ext/nokogiri/xslt_stylesheet.c +8 -8
- data/lib/nokogiri/3.0/nokogiri.bundle +0 -0
- data/lib/nokogiri/3.1/nokogiri.bundle +0 -0
- data/lib/nokogiri/3.2/nokogiri.bundle +0 -0
- data/lib/nokogiri/3.3/nokogiri.bundle +0 -0
- data/lib/nokogiri/class_resolver.rb +1 -1
- data/lib/nokogiri/css/node.rb +6 -2
- data/lib/nokogiri/css/parser.rb +6 -4
- data/lib/nokogiri/css/parser.y +2 -2
- data/lib/nokogiri/css/parser_extras.rb +6 -66
- data/lib/nokogiri/css/selector_cache.rb +38 -0
- data/lib/nokogiri/css/tokenizer.rb +4 -4
- data/lib/nokogiri/css/tokenizer.rex +9 -8
- data/lib/nokogiri/css/xpath_visitor.rb +42 -6
- data/lib/nokogiri/css.rb +86 -20
- data/lib/nokogiri/decorators/slop.rb +3 -5
- data/lib/nokogiri/encoding_handler.rb +2 -2
- data/lib/nokogiri/html4/document.rb +44 -23
- data/lib/nokogiri/html4/document_fragment.rb +124 -12
- data/lib/nokogiri/html4/encoding_reader.rb +1 -1
- data/lib/nokogiri/html4/sax/parser.rb +23 -38
- data/lib/nokogiri/html4/sax/parser_context.rb +4 -9
- data/lib/nokogiri/html4.rb +9 -14
- data/lib/nokogiri/html5/builder.rb +40 -0
- data/lib/nokogiri/html5/document.rb +61 -30
- data/lib/nokogiri/html5/document_fragment.rb +130 -20
- data/lib/nokogiri/html5/node.rb +4 -4
- data/lib/nokogiri/html5.rb +114 -72
- data/lib/nokogiri/version/constant.rb +1 -1
- data/lib/nokogiri/xml/builder.rb +8 -1
- data/lib/nokogiri/xml/document.rb +70 -26
- data/lib/nokogiri/xml/document_fragment.rb +84 -13
- data/lib/nokogiri/xml/node.rb +82 -11
- data/lib/nokogiri/xml/node_set.rb +9 -7
- data/lib/nokogiri/xml/parse_options.rb +1 -1
- data/lib/nokogiri/xml/pp/node.rb +6 -1
- data/lib/nokogiri/xml/reader.rb +46 -13
- data/lib/nokogiri/xml/relax_ng.rb +57 -20
- data/lib/nokogiri/xml/sax/document.rb +174 -83
- data/lib/nokogiri/xml/sax/parser.rb +115 -41
- data/lib/nokogiri/xml/sax/parser_context.rb +116 -8
- data/lib/nokogiri/xml/sax/push_parser.rb +3 -0
- data/lib/nokogiri/xml/sax.rb +48 -0
- data/lib/nokogiri/xml/schema.rb +112 -45
- data/lib/nokogiri/xml/searchable.rb +6 -8
- data/lib/nokogiri/xml/syntax_error.rb +22 -0
- data/lib/nokogiri/xml.rb +13 -24
- data/lib/nokogiri/xslt.rb +3 -9
- data/lib/xsd/xmlparser/nokogiri.rb +3 -4
- metadata +8 -4
- 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
|
-
|
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 !=
|
23
|
-
chunk = StringValuePtr(
|
24
|
-
size = (int)RSTRING_LEN(
|
19
|
+
if (Qnil != rb_chunk) {
|
20
|
+
chunk = StringValuePtr(rb_chunk);
|
21
|
+
size = (int)RSTRING_LEN(rb_chunk);
|
25
22
|
}
|
26
23
|
|
27
|
-
|
24
|
+
noko__structured_error_func_save_and_set(&handler_state, NULL, NULL);
|
28
25
|
|
29
|
-
status = htmlParseChunk(ctx, chunk, size, Qtrue ==
|
26
|
+
status = htmlParseChunk(ctx, chunk, size, Qtrue == rb_last_chunk ? 1 : 0);
|
30
27
|
|
31
|
-
|
28
|
+
noko__structured_error_func_restore(&handler_state);
|
32
29
|
|
33
|
-
if ((status != 0) && !(ctx
|
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
|
-
|
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
|
-
|
50
|
-
|
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 =
|
55
|
+
sax = noko_xml_sax_parser_unwrap(rb_xml_sax);
|
58
56
|
|
59
|
-
if (
|
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 =
|
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 =
|
89
|
+
cNokogiriHtml4SaxPushParser =
|
90
|
+
rb_define_class_under(mNokogiriHtml4Sax, "PushParser", cNokogiriXmlSaxPushParser);
|
92
91
|
|
93
|
-
rb_define_private_method(cNokogiriHtml4SaxPushParser, "initialize_native",
|
94
|
-
|
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
|
+
#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
|
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 "
|
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
|
-
|
92
|
-
|
93
|
-
#undef XML_OP
|
85
|
+
XML_DEPRECATED
|
86
|
+
XMLPUBVAR const xmlSAXHandlerV1 htmlDefaultSAXHandler;
|
94
87
|
|
95
|
-
#
|
96
|
-
|
88
|
+
#ifdef LIBXML_THREAD_ENABLED
|
89
|
+
XML_DEPRECATED
|
90
|
+
XMLPUBFUN const xmlSAXHandlerV1 *__htmlDefaultSAXHandler(void);
|
97
91
|
#endif
|
98
|
-
|
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(
|
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
|
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
|
/*
|
@@ -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; /*
|
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 (
|
122
|
+
xmlListDup (xmlListPtr old);
|
123
123
|
XMLPUBFUN int
|
124
124
|
xmlListCopy (xmlListPtr cur,
|
125
|
-
|
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
|