nokolexbor 0.2.4 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/nokolexbor/extconf.rb +12 -6
- data/ext/nokolexbor/libxml/SAX2.h +4 -4
- data/ext/nokolexbor/libxml/chvalid.h +21 -21
- data/ext/nokolexbor/libxml/dict.h +13 -13
- data/ext/nokolexbor/libxml/globals.h +202 -202
- data/ext/nokolexbor/libxml/hash.h +25 -25
- data/ext/nokolexbor/libxml/parser.h +5 -5
- data/ext/nokolexbor/libxml/parserInternals.h +4 -4
- data/ext/nokolexbor/libxml/pattern.h +14 -14
- data/ext/nokolexbor/libxml/threads.h +15 -15
- data/ext/nokolexbor/libxml/tree.h +5 -5
- data/ext/nokolexbor/libxml/xmlerror.h +5 -5
- data/ext/nokolexbor/libxml/xmlmemory.h +16 -16
- data/ext/nokolexbor/libxml/xmlstring.h +30 -30
- data/ext/nokolexbor/libxml/xpath.h +43 -43
- data/ext/nokolexbor/libxml/xpathInternals.h +128 -128
- data/ext/nokolexbor/memory.c +7 -0
- data/ext/nokolexbor/nl_document.c +11 -1
- data/ext/nokolexbor/nl_node.c +37 -16
- data/ext/nokolexbor/nl_node_set.c +23 -9
- data/ext/nokolexbor/nl_xpath_context.c +19 -14
- data/ext/nokolexbor/private/buf.h +1 -1
- data/ext/nokolexbor/private/error.h +3 -3
- data/ext/nokolexbor/xml_SAX2.c +8 -8
- data/ext/nokolexbor/xml_buf.c +19 -19
- data/ext/nokolexbor/xml_chvalid.c +25 -25
- data/ext/nokolexbor/xml_dict.c +69 -69
- data/ext/nokolexbor/xml_encoding.c +2 -2
- data/ext/nokolexbor/xml_error.c +51 -51
- data/ext/nokolexbor/xml_globals.c +329 -329
- data/ext/nokolexbor/xml_hash.c +131 -131
- data/ext/nokolexbor/xml_memory.c +25 -25
- data/ext/nokolexbor/xml_parser.c +3 -3
- data/ext/nokolexbor/xml_parserInternals.c +15 -15
- data/ext/nokolexbor/xml_pattern.c +103 -103
- data/ext/nokolexbor/xml_string.c +93 -93
- data/ext/nokolexbor/xml_threads.c +61 -61
- data/ext/nokolexbor/xml_tree.c +12 -12
- data/ext/nokolexbor/xml_xpath.c +1194 -1203
- data/lib/nokolexbor/version.rb +1 -1
- data/patches/0003-lexbor-attach-template-content-to-self.patch +13 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 653bea6b73eb4e74e61b68905d53d21586694489955f086eb018b1f51d097335
|
4
|
+
data.tar.gz: c451ee40b314bd34c3caf308021ccc7936beedf10ef26c793de78162dbf69113
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eab8000ec155e0a8dfbff42c6602fca82481400e18df59ddd3920652f593154ebff25299d688eb5cd66e4a80cc666c65652b605f7f65e39242936e66b283a462
|
7
|
+
data.tar.gz: ea17c1bdee44e18955d981e5280cd7e34703a7de39710ef4fd13b47709699fab36071b40dba5908e014eded45e880643fa475263590e50a852afd72cec43f8a5
|
data/ext/nokolexbor/extconf.rb
CHANGED
@@ -1,16 +1,22 @@
|
|
1
1
|
require 'mkmf'
|
2
2
|
require 'timeout'
|
3
3
|
|
4
|
-
# For debugging
|
5
|
-
# CONFIG["optflags"] = "-O0"
|
6
|
-
# CONFIG["debugflags"] = "-ggdb3"
|
7
|
-
|
8
4
|
cmake_flags = [ ENV["CMAKE_FLAGS"] ]
|
9
5
|
cmake_flags << "-DLEXBOR_BUILD_TESTS_CPP=OFF"
|
10
6
|
cmake_flags << "-DLEXBOR_BUILD_SHARED=OFF"
|
11
7
|
cmake_flags << "-DLEXBOR_BUILD_STATIC=ON"
|
12
|
-
|
13
|
-
|
8
|
+
|
9
|
+
if ENV['NOKOLEXBOR_DEBUG'] || ENV['NOKOLEXBOR_ASAN']
|
10
|
+
CONFIG["optflags"] = "-O0"
|
11
|
+
CONFIG["debugflags"] = "-ggdb3"
|
12
|
+
cmake_flags << "-DLEXBOR_OPTIMIZATION_LEVEL='-O0 -g'"
|
13
|
+
end
|
14
|
+
|
15
|
+
if ENV['NOKOLEXBOR_ASAN']
|
16
|
+
$LDFLAGS << " -fsanitize=address"
|
17
|
+
$CFLAGS << " -fsanitize=address -DNOKOLEXBOR_ASAN"
|
18
|
+
cmake_flags << "-DLEXBOR_BUILD_WITH_ASAN=ON"
|
19
|
+
end
|
14
20
|
|
15
21
|
append_cflags("-DLEXBOR_STATIC")
|
16
22
|
append_cflags("-DLIBXML_STATIC")
|
@@ -21,17 +21,17 @@
|
|
21
21
|
extern "C" {
|
22
22
|
#endif
|
23
23
|
XMLPUBFUN const xmlChar * XMLCALL
|
24
|
-
|
24
|
+
nl_xmlSAX2GetPublicId (void *ctx);
|
25
25
|
XMLPUBFUN const xmlChar * XMLCALL
|
26
|
-
|
26
|
+
nl_xmlSAX2GetSystemId (void *ctx);
|
27
27
|
XMLPUBFUN void XMLCALL
|
28
28
|
xmlSAX2SetDocumentLocator (void *ctx,
|
29
29
|
xmlSAXLocatorPtr loc);
|
30
30
|
|
31
31
|
XMLPUBFUN int XMLCALL
|
32
|
-
|
32
|
+
nl_xmlSAX2GetLineNumber (void *ctx);
|
33
33
|
XMLPUBFUN int XMLCALL
|
34
|
-
|
34
|
+
nl_xmlSAX2GetColumnNumber (void *ctx);
|
35
35
|
|
36
36
|
XMLPUBFUN int XMLCALL
|
37
37
|
xmlSAX2IsStandalone (void *ctx);
|
@@ -52,7 +52,7 @@ struct _xmlChRangeGroup {
|
|
52
52
|
* Range checking routine
|
53
53
|
*/
|
54
54
|
XMLPUBFUN int XMLCALL
|
55
|
-
|
55
|
+
nl_xmlCharInRange(unsigned int val, const xmlChRangeGroup *group);
|
56
56
|
|
57
57
|
|
58
58
|
/**
|
@@ -75,9 +75,9 @@ XMLPUBFUN int XMLCALL
|
|
75
75
|
*/
|
76
76
|
#define xmlIsBaseCharQ(c) (((c) < 0x100) ? \
|
77
77
|
xmlIsBaseChar_ch((c)) : \
|
78
|
-
|
78
|
+
nl_xmlCharInRange((c), &nl_xmlIsBaseCharGroup))
|
79
79
|
|
80
|
-
XMLPUBVAR const xmlChRangeGroup
|
80
|
+
XMLPUBVAR const xmlChRangeGroup nl_xmlIsBaseCharGroup;
|
81
81
|
|
82
82
|
/**
|
83
83
|
* xmlIsBlank_ch:
|
@@ -121,7 +121,7 @@ XMLPUBVAR const xmlChRangeGroup xmlIsBaseCharGroup;
|
|
121
121
|
((0xe000 <= (c)) && ((c) <= 0xfffd)) || \
|
122
122
|
((0x10000 <= (c)) && ((c) <= 0x10ffff))))
|
123
123
|
|
124
|
-
XMLPUBVAR const xmlChRangeGroup
|
124
|
+
XMLPUBVAR const xmlChRangeGroup nl_xmlIsCharGroup;
|
125
125
|
|
126
126
|
/**
|
127
127
|
* xmlIsCombiningQ:
|
@@ -131,9 +131,9 @@ XMLPUBVAR const xmlChRangeGroup xmlIsCharGroup;
|
|
131
131
|
*/
|
132
132
|
#define xmlIsCombiningQ(c) (((c) < 0x100) ? \
|
133
133
|
0 : \
|
134
|
-
|
134
|
+
nl_xmlCharInRange((c), &nl_xmlIsCombiningGroup))
|
135
135
|
|
136
|
-
XMLPUBVAR const xmlChRangeGroup
|
136
|
+
XMLPUBVAR const xmlChRangeGroup nl_xmlIsCombiningGroup;
|
137
137
|
|
138
138
|
/**
|
139
139
|
* xmlIsDigit_ch:
|
@@ -151,9 +151,9 @@ XMLPUBVAR const xmlChRangeGroup xmlIsCombiningGroup;
|
|
151
151
|
*/
|
152
152
|
#define xmlIsDigitQ(c) (((c) < 0x100) ? \
|
153
153
|
xmlIsDigit_ch((c)) : \
|
154
|
-
|
154
|
+
nl_xmlCharInRange((c), &nl_xmlIsDigitGroup))
|
155
155
|
|
156
|
-
XMLPUBVAR const xmlChRangeGroup
|
156
|
+
XMLPUBVAR const xmlChRangeGroup nl_xmlIsDigitGroup;
|
157
157
|
|
158
158
|
/**
|
159
159
|
* xmlIsExtender_ch:
|
@@ -171,9 +171,9 @@ XMLPUBVAR const xmlChRangeGroup xmlIsDigitGroup;
|
|
171
171
|
*/
|
172
172
|
#define xmlIsExtenderQ(c) (((c) < 0x100) ? \
|
173
173
|
xmlIsExtender_ch((c)) : \
|
174
|
-
|
174
|
+
nl_xmlCharInRange((c), &nl_xmlIsExtenderGroup))
|
175
175
|
|
176
|
-
XMLPUBVAR const xmlChRangeGroup
|
176
|
+
XMLPUBVAR const xmlChRangeGroup nl_xmlIsExtenderGroup;
|
177
177
|
|
178
178
|
/**
|
179
179
|
* xmlIsIdeographicQ:
|
@@ -187,8 +187,8 @@ XMLPUBVAR const xmlChRangeGroup xmlIsExtenderGroup;
|
|
187
187
|
((c) == 0x3007) || \
|
188
188
|
((0x3021 <= (c)) && ((c) <= 0x3029))))
|
189
189
|
|
190
|
-
XMLPUBVAR const xmlChRangeGroup
|
191
|
-
XMLPUBVAR const unsigned char
|
190
|
+
XMLPUBVAR const xmlChRangeGroup nl_xmlIsIdeographicGroup;
|
191
|
+
XMLPUBVAR const unsigned char nl_xmlIsPubidChar_tab[256];
|
192
192
|
|
193
193
|
/**
|
194
194
|
* xmlIsPubidChar_ch:
|
@@ -196,7 +196,7 @@ XMLPUBVAR const unsigned char xmlIsPubidChar_tab[256];
|
|
196
196
|
*
|
197
197
|
* Automatically generated by genChRanges.py
|
198
198
|
*/
|
199
|
-
#define xmlIsPubidChar_ch(c) (
|
199
|
+
#define xmlIsPubidChar_ch(c) (nl_xmlIsPubidChar_tab[(c)])
|
200
200
|
|
201
201
|
/**
|
202
202
|
* xmlIsPubidCharQ:
|
@@ -208,21 +208,21 @@ XMLPUBVAR const unsigned char xmlIsPubidChar_tab[256];
|
|
208
208
|
xmlIsPubidChar_ch((c)) : 0)
|
209
209
|
|
210
210
|
XMLPUBFUN int XMLCALL
|
211
|
-
|
211
|
+
nl_xmlIsBaseChar(unsigned int ch);
|
212
212
|
XMLPUBFUN int XMLCALL
|
213
|
-
|
213
|
+
nl_xmlIsBlank(unsigned int ch);
|
214
214
|
XMLPUBFUN int XMLCALL
|
215
|
-
|
215
|
+
nl_xmlIsChar(unsigned int ch);
|
216
216
|
XMLPUBFUN int XMLCALL
|
217
|
-
|
217
|
+
nl_xmlIsCombining(unsigned int ch);
|
218
218
|
XMLPUBFUN int XMLCALL
|
219
|
-
|
219
|
+
nl_xmlIsDigit(unsigned int ch);
|
220
220
|
XMLPUBFUN int XMLCALL
|
221
|
-
|
221
|
+
nl_xmlIsExtender(unsigned int ch);
|
222
222
|
XMLPUBFUN int XMLCALL
|
223
|
-
|
223
|
+
nl_xmlIsIdeographic(unsigned int ch);
|
224
224
|
XMLPUBFUN int XMLCALL
|
225
|
-
|
225
|
+
nl_xmlIsPubidChar(unsigned int ch);
|
226
226
|
|
227
227
|
#ifdef __cplusplus
|
228
228
|
}
|
@@ -28,52 +28,52 @@ typedef xmlDict *xmlDictPtr;
|
|
28
28
|
* Initializer
|
29
29
|
*/
|
30
30
|
XML_DEPRECATED
|
31
|
-
XMLPUBFUN int XMLCALL
|
31
|
+
XMLPUBFUN int XMLCALL nl_xmlInitializeDict(void);
|
32
32
|
|
33
33
|
/*
|
34
34
|
* Constructor and destructor.
|
35
35
|
*/
|
36
36
|
XMLPUBFUN xmlDictPtr XMLCALL
|
37
|
-
|
37
|
+
nl_xmlDictCreate (void);
|
38
38
|
XMLPUBFUN size_t XMLCALL
|
39
|
-
|
39
|
+
nl_xmlDictSetLimit (xmlDictPtr dict,
|
40
40
|
size_t limit);
|
41
41
|
XMLPUBFUN size_t XMLCALL
|
42
|
-
|
42
|
+
nl_xmlDictGetUsage (xmlDictPtr dict);
|
43
43
|
XMLPUBFUN xmlDictPtr XMLCALL
|
44
|
-
|
44
|
+
nl_xmlDictCreateSub(xmlDictPtr sub);
|
45
45
|
XMLPUBFUN int XMLCALL
|
46
|
-
|
46
|
+
nl_xmlDictReference(xmlDictPtr dict);
|
47
47
|
XMLPUBFUN void XMLCALL
|
48
|
-
|
48
|
+
nl_xmlDictFree (xmlDictPtr dict);
|
49
49
|
|
50
50
|
/*
|
51
51
|
* Lookup of entry in the dictionary.
|
52
52
|
*/
|
53
53
|
XMLPUBFUN const xmlChar * XMLCALL
|
54
|
-
|
54
|
+
nl_xmlDictLookup (xmlDictPtr dict,
|
55
55
|
const xmlChar *name,
|
56
56
|
int len);
|
57
57
|
XMLPUBFUN const xmlChar * XMLCALL
|
58
|
-
|
58
|
+
nl_xmlDictExists (xmlDictPtr dict,
|
59
59
|
const xmlChar *name,
|
60
60
|
int len);
|
61
61
|
XMLPUBFUN const xmlChar * XMLCALL
|
62
|
-
|
62
|
+
nl_xmlDictQLookup (xmlDictPtr dict,
|
63
63
|
const xmlChar *prefix,
|
64
64
|
const xmlChar *name);
|
65
65
|
XMLPUBFUN int XMLCALL
|
66
|
-
|
66
|
+
nl_xmlDictOwns (xmlDictPtr dict,
|
67
67
|
const xmlChar *str);
|
68
68
|
XMLPUBFUN int XMLCALL
|
69
|
-
|
69
|
+
nl_xmlDictSize (xmlDictPtr dict);
|
70
70
|
|
71
71
|
/*
|
72
72
|
* Cleanup function
|
73
73
|
*/
|
74
74
|
XML_DEPRECATED
|
75
75
|
XMLPUBFUN void XMLCALL
|
76
|
-
|
76
|
+
nl_xmlDictCleanup (void);
|
77
77
|
|
78
78
|
#ifdef __cplusplus
|
79
79
|
}
|