nokogiri 1.11.0.rc4-x86-mingw32 → 1.11.4-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of nokogiri might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile +3 -0
- data/LICENSE-DEPENDENCIES.md +12 -12
- data/LICENSE.md +1 -1
- data/README.md +168 -91
- data/dependencies.yml +12 -12
- data/ext/nokogiri/depend +34 -474
- data/ext/nokogiri/extconf.rb +270 -183
- data/ext/nokogiri/html_document.c +10 -15
- data/ext/nokogiri/html_element_description.c +84 -71
- data/ext/nokogiri/html_entity_lookup.c +21 -16
- data/ext/nokogiri/html_sax_parser_context.c +67 -64
- data/ext/nokogiri/html_sax_push_parser.c +42 -34
- data/ext/nokogiri/include/libxml2/libxml/c14n.h +6 -4
- data/ext/nokogiri/include/libxml2/libxml/parser.h +9 -7
- data/ext/nokogiri/include/libxml2/libxml/tree.h +3 -3
- data/ext/nokogiri/include/libxml2/libxml/xmlIO.h +2 -0
- data/ext/nokogiri/include/libxml2/libxml/xmlexports.h +39 -115
- data/ext/nokogiri/include/libxml2/libxml/xmlschemas.h +1 -1
- data/ext/nokogiri/include/libxml2/libxml/xmlversion.h +6 -6
- data/ext/nokogiri/include/libxml2/libxml/xpath.h +1 -3
- data/ext/nokogiri/include/libxslt/xsltconfig.h +1 -1
- data/ext/nokogiri/libxml2_backwards_compat.c +121 -0
- data/ext/nokogiri/nokogiri.c +171 -60
- data/ext/nokogiri/nokogiri.h +158 -75
- data/ext/nokogiri/test_global_handlers.c +40 -0
- data/ext/nokogiri/xml_attr.c +15 -15
- data/ext/nokogiri/xml_attribute_decl.c +18 -18
- data/ext/nokogiri/xml_cdata.c +13 -18
- data/ext/nokogiri/xml_comment.c +19 -26
- data/ext/nokogiri/xml_document.c +246 -188
- data/ext/nokogiri/xml_document_fragment.c +13 -15
- data/ext/nokogiri/xml_dtd.c +54 -48
- data/ext/nokogiri/xml_element_content.c +30 -27
- data/ext/nokogiri/xml_element_decl.c +22 -22
- data/ext/nokogiri/xml_encoding_handler.c +17 -11
- data/ext/nokogiri/xml_entity_decl.c +32 -30
- data/ext/nokogiri/xml_entity_reference.c +16 -18
- data/ext/nokogiri/xml_namespace.c +56 -49
- data/ext/nokogiri/xml_node.c +371 -320
- data/ext/nokogiri/xml_node_set.c +168 -156
- data/ext/nokogiri/xml_processing_instruction.c +17 -19
- data/ext/nokogiri/xml_reader.c +191 -157
- data/ext/nokogiri/xml_relax_ng.c +29 -23
- data/ext/nokogiri/xml_sax_parser.c +117 -112
- data/ext/nokogiri/xml_sax_parser_context.c +101 -84
- data/ext/nokogiri/xml_sax_push_parser.c +36 -27
- data/ext/nokogiri/xml_schema.c +48 -42
- data/ext/nokogiri/xml_syntax_error.c +42 -21
- data/ext/nokogiri/xml_text.c +13 -17
- data/ext/nokogiri/xml_xpath_context.c +134 -127
- data/ext/nokogiri/xslt_stylesheet.c +157 -157
- data/lib/nokogiri.rb +2 -6
- data/lib/nokogiri/2.5/nokogiri.so +0 -0
- data/lib/nokogiri/2.6/nokogiri.so +0 -0
- data/lib/nokogiri/2.7/nokogiri.so +0 -0
- data/lib/nokogiri/3.0/nokogiri.so +0 -0
- data/lib/nokogiri/css/parser.rb +1 -1
- data/lib/nokogiri/extension.rb +26 -0
- data/lib/nokogiri/html/document_fragment.rb +15 -15
- data/lib/nokogiri/version/constant.rb +1 -1
- data/lib/nokogiri/version/info.rb +31 -8
- data/lib/nokogiri/xml/document.rb +74 -28
- data/lib/nokogiri/xml/node.rb +39 -42
- data/lib/nokogiri/xml/reader.rb +2 -9
- data/lib/nokogiri/xml/xpath.rb +1 -3
- data/lib/nokogiri/xml/xpath/syntax_error.rb +1 -1
- metadata +62 -160
- data/ext/nokogiri/html_document.h +0 -10
- data/ext/nokogiri/html_element_description.h +0 -10
- data/ext/nokogiri/html_entity_lookup.h +0 -8
- data/ext/nokogiri/html_sax_parser_context.h +0 -11
- data/ext/nokogiri/html_sax_push_parser.h +0 -9
- data/ext/nokogiri/xml_attr.h +0 -9
- data/ext/nokogiri/xml_attribute_decl.h +0 -9
- data/ext/nokogiri/xml_cdata.h +0 -9
- data/ext/nokogiri/xml_comment.h +0 -9
- data/ext/nokogiri/xml_document.h +0 -23
- data/ext/nokogiri/xml_document_fragment.h +0 -10
- data/ext/nokogiri/xml_dtd.h +0 -10
- data/ext/nokogiri/xml_element_content.h +0 -10
- data/ext/nokogiri/xml_element_decl.h +0 -9
- data/ext/nokogiri/xml_encoding_handler.h +0 -8
- data/ext/nokogiri/xml_entity_decl.h +0 -10
- data/ext/nokogiri/xml_entity_reference.h +0 -9
- data/ext/nokogiri/xml_io.c +0 -63
- data/ext/nokogiri/xml_io.h +0 -11
- data/ext/nokogiri/xml_libxml2_hacks.c +0 -112
- data/ext/nokogiri/xml_libxml2_hacks.h +0 -12
- data/ext/nokogiri/xml_namespace.h +0 -14
- data/ext/nokogiri/xml_node.h +0 -13
- data/ext/nokogiri/xml_node_set.h +0 -12
- data/ext/nokogiri/xml_processing_instruction.h +0 -9
- data/ext/nokogiri/xml_reader.h +0 -10
- data/ext/nokogiri/xml_relax_ng.h +0 -9
- data/ext/nokogiri/xml_sax_parser.h +0 -39
- data/ext/nokogiri/xml_sax_parser_context.h +0 -10
- data/ext/nokogiri/xml_sax_push_parser.h +0 -9
- data/ext/nokogiri/xml_schema.h +0 -9
- data/ext/nokogiri/xml_syntax_error.h +0 -13
- data/ext/nokogiri/xml_text.h +0 -9
- data/ext/nokogiri/xml_xpath_context.h +0 -10
- data/ext/nokogiri/xslt_stylesheet.h +0 -14
@@ -1,4 +1,6 @@
|
|
1
|
-
#include <
|
1
|
+
#include <nokogiri.h>
|
2
|
+
|
3
|
+
VALUE cNokogiriHtmlSaxPushParser;
|
2
4
|
|
3
5
|
/*
|
4
6
|
* call-seq:
|
@@ -6,25 +8,32 @@
|
|
6
8
|
*
|
7
9
|
* Write +chunk+ to PushParser. +last_chunk+ triggers the end_document handle
|
8
10
|
*/
|
9
|
-
static VALUE
|
11
|
+
static VALUE
|
12
|
+
native_write(VALUE self, VALUE _chunk, VALUE _last_chunk)
|
10
13
|
{
|
11
14
|
xmlParserCtxtPtr ctx;
|
12
|
-
const char *
|
13
|
-
int size
|
14
|
-
|
15
|
+
const char *chunk = NULL;
|
16
|
+
int size = 0;
|
17
|
+
int status = 0;
|
18
|
+
libxmlStructuredErrorHandlerState handler_state;
|
15
19
|
|
16
20
|
Data_Get_Struct(self, xmlParserCtxt, ctx);
|
17
21
|
|
18
|
-
if(Qnil != _chunk) {
|
22
|
+
if (Qnil != _chunk) {
|
19
23
|
chunk = StringValuePtr(_chunk);
|
20
24
|
size = (int)RSTRING_LEN(_chunk);
|
21
25
|
}
|
22
26
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
27
|
+
Nokogiri_structured_error_func_save_and_set(&handler_state, NULL, NULL);
|
28
|
+
|
29
|
+
status = htmlParseChunk(ctx, chunk, size, Qtrue == _last_chunk ? 1 : 0);
|
30
|
+
|
31
|
+
Nokogiri_structured_error_func_restore(&handler_state);
|
32
|
+
|
33
|
+
if ((status != 0) && !(ctx->options & XML_PARSE_RECOVER)) {
|
34
|
+
// TODO: there appear to be no tests for this block
|
35
|
+
xmlErrorPtr e = xmlCtxtGetLastError(ctx);
|
36
|
+
Nokogiri_error_raise(NULL, e);
|
28
37
|
}
|
29
38
|
|
30
39
|
return self;
|
@@ -36,34 +45,37 @@ static VALUE native_write(VALUE self, VALUE _chunk, VALUE _last_chunk)
|
|
36
45
|
*
|
37
46
|
* Initialize the push parser with +xml_sax+ using +filename+
|
38
47
|
*/
|
39
|
-
static VALUE
|
40
|
-
|
48
|
+
static VALUE
|
49
|
+
initialize_native(VALUE self, VALUE _xml_sax, VALUE _filename,
|
50
|
+
VALUE encoding)
|
41
51
|
{
|
42
52
|
htmlSAXHandlerPtr sax;
|
43
|
-
const char *
|
53
|
+
const char *filename = NULL;
|
44
54
|
htmlParserCtxtPtr ctx;
|
45
55
|
xmlCharEncoding enc = XML_CHAR_ENCODING_NONE;
|
46
56
|
|
47
57
|
Data_Get_Struct(_xml_sax, xmlSAXHandler, sax);
|
48
58
|
|
49
|
-
if(_filename != Qnil) filename = StringValueCStr(_filename);
|
59
|
+
if (_filename != Qnil) { filename = StringValueCStr(_filename); }
|
50
60
|
|
51
61
|
if (!NIL_P(encoding)) {
|
52
62
|
enc = xmlParseCharEncoding(StringValueCStr(encoding));
|
53
|
-
if (enc == XML_CHAR_ENCODING_ERROR)
|
63
|
+
if (enc == XML_CHAR_ENCODING_ERROR) {
|
54
64
|
rb_raise(rb_eArgError, "Unsupported Encoding");
|
65
|
+
}
|
55
66
|
}
|
56
67
|
|
57
68
|
ctx = htmlCreatePushParserCtxt(
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
if(ctx == NULL)
|
69
|
+
sax,
|
70
|
+
NULL,
|
71
|
+
NULL,
|
72
|
+
0,
|
73
|
+
filename,
|
74
|
+
enc
|
75
|
+
);
|
76
|
+
if (ctx == NULL) {
|
66
77
|
rb_raise(rb_eRuntimeError, "Could not create a parser context");
|
78
|
+
}
|
67
79
|
|
68
80
|
ctx->userData = NOKOGIRI_SAX_TUPLE_NEW(ctx, self);
|
69
81
|
|
@@ -72,16 +84,12 @@ static VALUE initialize_native(VALUE self, VALUE _xml_sax, VALUE _filename,
|
|
72
84
|
return self;
|
73
85
|
}
|
74
86
|
|
75
|
-
|
76
|
-
|
87
|
+
void
|
88
|
+
noko_init_html_sax_push_parser()
|
77
89
|
{
|
78
|
-
|
79
|
-
|
80
|
-
VALUE sax = rb_define_module_under(html, "SAX");
|
81
|
-
VALUE klass = rb_define_class_under(sax, "PushParser", cNokogiriXmlSaxPushParser);
|
82
|
-
|
83
|
-
cNokogiriHtmlSaxPushParser = klass;
|
90
|
+
assert(cNokogiriXmlSaxPushParser);
|
91
|
+
cNokogiriHtmlSaxPushParser = rb_define_class_under(mNokogiriHtmlSax, "PushParser", cNokogiriXmlSaxPushParser);
|
84
92
|
|
85
|
-
rb_define_private_method(
|
86
|
-
rb_define_private_method(
|
93
|
+
rb_define_private_method(cNokogiriHtmlSaxPushParser, "initialize_native", initialize_native, 3);
|
94
|
+
rb_define_private_method(cNokogiriHtmlSaxPushParser, "native_write", native_write, 2);
|
87
95
|
}
|
@@ -16,17 +16,19 @@
|
|
16
16
|
*/
|
17
17
|
#ifndef __XML_C14N_H__
|
18
18
|
#define __XML_C14N_H__
|
19
|
+
|
20
|
+
#include <libxml/xmlversion.h>
|
21
|
+
|
19
22
|
#ifdef LIBXML_C14N_ENABLED
|
20
23
|
#ifdef LIBXML_OUTPUT_ENABLED
|
21
24
|
|
25
|
+
#include <libxml/tree.h>
|
26
|
+
#include <libxml/xpath.h>
|
27
|
+
|
22
28
|
#ifdef __cplusplus
|
23
29
|
extern "C" {
|
24
30
|
#endif /* __cplusplus */
|
25
31
|
|
26
|
-
#include <libxml/xmlversion.h>
|
27
|
-
#include <libxml/tree.h>
|
28
|
-
#include <libxml/xpath.h>
|
29
|
-
|
30
32
|
/*
|
31
33
|
* XML Canonicalization
|
32
34
|
* http://www.w3.org/TR/xml-c14n
|
@@ -79,7 +79,7 @@ struct _xmlParserInput {
|
|
79
79
|
/**
|
80
80
|
* xmlParserNodeInfo:
|
81
81
|
*
|
82
|
-
* The parser can be asked to collect Node
|
82
|
+
* The parser can be asked to collect Node information, i.e. at what
|
83
83
|
* place in the file they were detected.
|
84
84
|
* NOTE: This is off by default and not very well tested.
|
85
85
|
*/
|
@@ -169,6 +169,8 @@ typedef enum {
|
|
169
169
|
XML_PARSE_READER = 5
|
170
170
|
} xmlParserMode;
|
171
171
|
|
172
|
+
typedef struct _xmlStartTag xmlStartTag;
|
173
|
+
|
172
174
|
/**
|
173
175
|
* xmlParserCtxt:
|
174
176
|
*
|
@@ -231,7 +233,7 @@ struct _xmlParserCtxt {
|
|
231
233
|
int nameMax; /* Max depth of the parsing stack */
|
232
234
|
const xmlChar * *nameTab; /* array of nodes */
|
233
235
|
|
234
|
-
long nbChars; /*
|
236
|
+
long nbChars; /* unused */
|
235
237
|
long checkIndex; /* used by progressive parsing lookup */
|
236
238
|
int keepBlanks; /* ugly but ... */
|
237
239
|
int disableSAX; /* SAX callbacks are disabled */
|
@@ -280,7 +282,7 @@ struct _xmlParserCtxt {
|
|
280
282
|
int nsMax; /* the size of the arrays */
|
281
283
|
const xmlChar * *nsTab; /* the array of prefix/namespace name */
|
282
284
|
int *attallocs; /* which attribute were allocated */
|
283
|
-
|
285
|
+
xmlStartTag *pushTab; /* array of data for push */
|
284
286
|
xmlHashTablePtr attsDefault; /* defaulted attributes if any */
|
285
287
|
xmlHashTablePtr attsSpecial; /* non-CDATA attributes if any */
|
286
288
|
int nsWellFormed; /* is the document XML Namespace okay */
|
@@ -296,7 +298,7 @@ struct _xmlParserCtxt {
|
|
296
298
|
xmlAttrPtr freeAttrs; /* List of freed attributes nodes */
|
297
299
|
|
298
300
|
/*
|
299
|
-
* the complete error
|
301
|
+
* the complete error information for the last error.
|
300
302
|
*/
|
301
303
|
xmlError lastError;
|
302
304
|
xmlParserMode parseMode; /* the parser mode */
|
@@ -329,7 +331,7 @@ struct _xmlSAXLocator {
|
|
329
331
|
* xmlSAXHandler:
|
330
332
|
*
|
331
333
|
* A SAX handler is bunch of callbacks called by the parser when processing
|
332
|
-
* of the input generate data or structure
|
334
|
+
* of the input generate data or structure information.
|
333
335
|
*/
|
334
336
|
|
335
337
|
/**
|
@@ -685,7 +687,7 @@ typedef int (*hasExternalSubsetSAXFunc) (void *ctx);
|
|
685
687
|
* attribute values.
|
686
688
|
*
|
687
689
|
* SAX2 callback when an element start has been detected by the parser.
|
688
|
-
* It provides the namespace
|
690
|
+
* It provides the namespace information for the element, as well as
|
689
691
|
* the new namespace declarations on the element.
|
690
692
|
*/
|
691
693
|
|
@@ -707,7 +709,7 @@ typedef void (*startElementNsSAX2Func) (void *ctx,
|
|
707
709
|
* @URI: the element namespace name if available
|
708
710
|
*
|
709
711
|
* SAX2 callback when an element end has been detected by the parser.
|
710
|
-
* It provides the namespace
|
712
|
+
* It provides the namespace information for the element.
|
711
713
|
*/
|
712
714
|
|
713
715
|
typedef void (*endElementNsSAX2Func) (void *ctx,
|
@@ -443,7 +443,7 @@ struct _xmlAttr {
|
|
443
443
|
struct _xmlDoc *doc; /* the containing document */
|
444
444
|
xmlNs *ns; /* pointer to the associated namespace */
|
445
445
|
xmlAttributeType atype; /* the attribute type if validating */
|
446
|
-
void *psvi; /* for type/PSVI
|
446
|
+
void *psvi; /* for type/PSVI information */
|
447
447
|
};
|
448
448
|
|
449
449
|
/**
|
@@ -502,7 +502,7 @@ struct _xmlNode {
|
|
502
502
|
xmlChar *content; /* the content */
|
503
503
|
struct _xmlAttr *properties;/* properties list */
|
504
504
|
xmlNs *nsDef; /* namespace definitions on this node */
|
505
|
-
void *psvi; /* for type/PSVI
|
505
|
+
void *psvi; /* for type/PSVI information */
|
506
506
|
unsigned short line; /* line number */
|
507
507
|
unsigned short extra; /* extra data for XPath/XSLT */
|
508
508
|
};
|
@@ -578,7 +578,7 @@ struct _xmlDoc {
|
|
578
578
|
int charset; /* Internal flag for charset handling,
|
579
579
|
actually an xmlCharEncoding */
|
580
580
|
struct _xmlDict *dict; /* dict used to allocate names or NULL */
|
581
|
-
void *psvi; /* for type/PSVI
|
581
|
+
void *psvi; /* for type/PSVI information */
|
582
582
|
int parseFlags; /* set of xmlParserOption used to parse the
|
583
583
|
document */
|
584
584
|
int properties; /* set of xmlDocProperties for this document
|
@@ -217,6 +217,8 @@ xmlParserInputBufferPtr
|
|
217
217
|
*/
|
218
218
|
XMLPUBFUN void XMLCALL
|
219
219
|
xmlCleanupOutputCallbacks (void);
|
220
|
+
XMLPUBFUN int XMLCALL
|
221
|
+
xmlPopOutputCallbacks (void);
|
220
222
|
XMLPUBFUN void XMLCALL
|
221
223
|
xmlRegisterDefaultOutputCallbacks(void);
|
222
224
|
XMLPUBFUN xmlOutputBufferPtr XMLCALL
|
@@ -3,43 +3,46 @@
|
|
3
3
|
* Description: macros for marking symbols as exportable/importable.
|
4
4
|
*
|
5
5
|
* Copy: See Copyright for the status of this software.
|
6
|
-
*
|
7
|
-
* Author: Igor Zlatovic <igor@zlatkovic.com>
|
8
6
|
*/
|
9
7
|
|
10
8
|
#ifndef __XML_EXPORTS_H__
|
11
9
|
#define __XML_EXPORTS_H__
|
12
10
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
11
|
+
#if defined(_WIN32) || defined(__CYGWIN__)
|
12
|
+
/** DOC_DISABLE */
|
13
|
+
|
14
|
+
#ifdef LIBXML_STATIC
|
15
|
+
#define XMLPUBLIC
|
16
|
+
#elif defined(IN_LIBXML)
|
17
|
+
#define XMLPUBLIC __declspec(dllexport)
|
18
|
+
#else
|
19
|
+
#define XMLPUBLIC __declspec(dllimport)
|
20
|
+
#endif
|
21
|
+
|
22
|
+
#if defined(LIBXML_FASTCALL)
|
23
|
+
#define XMLCALL __fastcall
|
24
|
+
#else
|
25
|
+
#define XMLCALL __cdecl
|
26
|
+
#endif
|
27
|
+
#define XMLCDECL __cdecl
|
28
|
+
|
29
|
+
/** DOC_ENABLE */
|
30
|
+
#else /* not Windows */
|
24
31
|
|
25
32
|
/**
|
26
|
-
*
|
27
|
-
*
|
28
|
-
* Macros which declare an exportable function
|
29
|
-
*/
|
30
|
-
#define XMLPUBFUN
|
31
|
-
/**
|
32
|
-
* XMLPUBVAR:
|
33
|
+
* XMLPUBLIC:
|
33
34
|
*
|
34
|
-
*
|
35
|
+
* Macro which declares a public symbol
|
35
36
|
*/
|
36
|
-
#define
|
37
|
+
#define XMLPUBLIC
|
38
|
+
|
37
39
|
/**
|
38
40
|
* XMLCALL:
|
39
41
|
*
|
40
|
-
*
|
42
|
+
* Macro which declares the calling convention for exported functions
|
41
43
|
*/
|
42
44
|
#define XMLCALL
|
45
|
+
|
43
46
|
/**
|
44
47
|
* XMLCDECL:
|
45
48
|
*
|
@@ -48,100 +51,21 @@
|
|
48
51
|
*/
|
49
52
|
#define XMLCDECL
|
50
53
|
|
51
|
-
|
52
|
-
|
53
|
-
/* Windows platform with MS compiler */
|
54
|
-
#if defined(_WIN32) && defined(_MSC_VER)
|
55
|
-
#undef XMLPUBFUN
|
56
|
-
#undef XMLPUBVAR
|
57
|
-
#undef XMLCALL
|
58
|
-
#undef XMLCDECL
|
59
|
-
#if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
|
60
|
-
#define XMLPUBFUN __declspec(dllexport)
|
61
|
-
#define XMLPUBVAR __declspec(dllexport)
|
62
|
-
#else
|
63
|
-
#define XMLPUBFUN
|
64
|
-
#if !defined(LIBXML_STATIC)
|
65
|
-
#define XMLPUBVAR __declspec(dllimport) extern
|
66
|
-
#else
|
67
|
-
#define XMLPUBVAR extern
|
68
|
-
#endif
|
69
|
-
#endif
|
70
|
-
#if defined(LIBXML_FASTCALL)
|
71
|
-
#define XMLCALL __fastcall
|
72
|
-
#else
|
73
|
-
#define XMLCALL __cdecl
|
74
|
-
#endif
|
75
|
-
#define XMLCDECL __cdecl
|
76
|
-
#endif
|
54
|
+
#endif /* platform switch */
|
77
55
|
|
78
|
-
/*
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
#if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
|
85
|
-
#define XMLPUBFUN __declspec(dllexport)
|
86
|
-
#define XMLPUBVAR __declspec(dllexport) extern
|
87
|
-
#else
|
88
|
-
#define XMLPUBFUN
|
89
|
-
#if !defined(LIBXML_STATIC)
|
90
|
-
#define XMLPUBVAR __declspec(dllimport) extern
|
91
|
-
#else
|
92
|
-
#define XMLPUBVAR extern
|
93
|
-
#endif
|
94
|
-
#endif
|
95
|
-
#define XMLCALL __cdecl
|
96
|
-
#define XMLCDECL __cdecl
|
97
|
-
#endif
|
98
|
-
|
99
|
-
/* Windows platform with GNU compiler (Mingw) */
|
100
|
-
#if defined(_WIN32) && defined(__MINGW32__)
|
101
|
-
#undef XMLPUBFUN
|
102
|
-
#undef XMLPUBVAR
|
103
|
-
#undef XMLCALL
|
104
|
-
#undef XMLCDECL
|
105
|
-
/*
|
106
|
-
* if defined(IN_LIBXML) this raises problems on mingw with msys
|
107
|
-
* _imp__xmlFree listed as missing. Try to workaround the problem
|
108
|
-
* by also making that declaration when compiling client code.
|
109
|
-
*/
|
110
|
-
#if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
|
111
|
-
#define XMLPUBFUN __declspec(dllexport)
|
112
|
-
#define XMLPUBVAR __declspec(dllexport) extern
|
113
|
-
#else
|
114
|
-
#define XMLPUBFUN
|
115
|
-
#if !defined(LIBXML_STATIC)
|
116
|
-
#define XMLPUBVAR __declspec(dllimport) extern
|
117
|
-
#else
|
118
|
-
#define XMLPUBVAR extern
|
119
|
-
#endif
|
120
|
-
#endif
|
121
|
-
#define XMLCALL __cdecl
|
122
|
-
#define XMLCDECL __cdecl
|
123
|
-
#endif
|
56
|
+
/*
|
57
|
+
* XMLPUBFUN:
|
58
|
+
*
|
59
|
+
* Macro which declares an exportable function
|
60
|
+
*/
|
61
|
+
#define XMLPUBFUN XMLPUBLIC
|
124
62
|
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
#if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
|
132
|
-
#define XMLPUBFUN __declspec(dllexport)
|
133
|
-
#define XMLPUBVAR __declspec(dllexport)
|
134
|
-
#else
|
135
|
-
#define XMLPUBFUN
|
136
|
-
#if !defined(LIBXML_STATIC)
|
137
|
-
#define XMLPUBVAR __declspec(dllimport) extern
|
138
|
-
#else
|
139
|
-
#define XMLPUBVAR extern
|
140
|
-
#endif
|
141
|
-
#endif
|
142
|
-
#define XMLCALL __cdecl
|
143
|
-
#define XMLCDECL __cdecl
|
144
|
-
#endif
|
63
|
+
/**
|
64
|
+
* XMLPUBVAR:
|
65
|
+
*
|
66
|
+
* Macro which declares an exportable variable
|
67
|
+
*/
|
68
|
+
#define XMLPUBVAR XMLPUBLIC extern
|
145
69
|
|
146
70
|
/* Compatibility */
|
147
71
|
#if !defined(LIBXML_DLL_IMPORT)
|
@@ -122,7 +122,7 @@ typedef xmlSchemaValidCtxt *xmlSchemaValidCtxtPtr;
|
|
122
122
|
* @line: returned line information
|
123
123
|
*
|
124
124
|
* A schemas validation locator, a callback called by the validator.
|
125
|
-
* This is used when file or node
|
125
|
+
* This is used when file or node information are not available
|
126
126
|
* to find out what file and line number are affected
|
127
127
|
*
|
128
128
|
* Returns: 0 in case of success and -1 in case of error
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
|
-
* Summary: compile-time version
|
3
|
-
* Description: compile-time version
|
2
|
+
* Summary: compile-time version information
|
3
|
+
* Description: compile-time version information for the XML library
|
4
4
|
*
|
5
5
|
* Copy: See Copyright for the status of this software.
|
6
6
|
*
|
@@ -29,21 +29,21 @@ XMLPUBFUN void XMLCALL xmlCheckVersion(int version);
|
|
29
29
|
*
|
30
30
|
* the version string like "1.2.3"
|
31
31
|
*/
|
32
|
-
#define LIBXML_DOTTED_VERSION "2.9.
|
32
|
+
#define LIBXML_DOTTED_VERSION "2.9.12"
|
33
33
|
|
34
34
|
/**
|
35
35
|
* LIBXML_VERSION:
|
36
36
|
*
|
37
37
|
* the version number: 1.2.3 value is 10203
|
38
38
|
*/
|
39
|
-
#define LIBXML_VERSION
|
39
|
+
#define LIBXML_VERSION 20912
|
40
40
|
|
41
41
|
/**
|
42
42
|
* LIBXML_VERSION_STRING:
|
43
43
|
*
|
44
44
|
* the version number string, 1.2.3 value is "10203"
|
45
45
|
*/
|
46
|
-
#define LIBXML_VERSION_STRING "
|
46
|
+
#define LIBXML_VERSION_STRING "20912"
|
47
47
|
|
48
48
|
/**
|
49
49
|
* LIBXML_VERSION_EXTRA:
|
@@ -58,7 +58,7 @@ XMLPUBFUN void XMLCALL xmlCheckVersion(int version);
|
|
58
58
|
* Macro to check that the libxml version in use is compatible with
|
59
59
|
* the version the software has been compiled against
|
60
60
|
*/
|
61
|
-
#define LIBXML_TEST_VERSION xmlCheckVersion(
|
61
|
+
#define LIBXML_TEST_VERSION xmlCheckVersion(20912);
|
62
62
|
|
63
63
|
#ifndef VMS
|
64
64
|
#if 0
|