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
@@ -104,48 +104,48 @@ typedef void (*xmlHashScannerFull)(void *payload, void *data,
|
|
104
104
|
* Constructor and destructor.
|
105
105
|
*/
|
106
106
|
XMLPUBFUN xmlHashTablePtr XMLCALL
|
107
|
-
|
107
|
+
nl_xmlHashCreate (int size);
|
108
108
|
XMLPUBFUN xmlHashTablePtr XMLCALL
|
109
|
-
|
109
|
+
nl_xmlHashCreateDict(int size,
|
110
110
|
xmlDictPtr dict);
|
111
111
|
XMLPUBFUN void XMLCALL
|
112
|
-
|
112
|
+
nl_xmlHashFree (xmlHashTablePtr table,
|
113
113
|
xmlHashDeallocator f);
|
114
114
|
XMLPUBFUN void XMLCALL
|
115
|
-
|
115
|
+
nl_xmlHashDefaultDeallocator(void *entry,
|
116
116
|
const xmlChar *name);
|
117
117
|
|
118
118
|
/*
|
119
119
|
* Add a new entry to the hash table.
|
120
120
|
*/
|
121
121
|
XMLPUBFUN int XMLCALL
|
122
|
-
|
122
|
+
nl_xmlHashAddEntry (xmlHashTablePtr table,
|
123
123
|
const xmlChar *name,
|
124
124
|
void *userdata);
|
125
125
|
XMLPUBFUN int XMLCALL
|
126
|
-
|
126
|
+
nl_xmlHashUpdateEntry(xmlHashTablePtr table,
|
127
127
|
const xmlChar *name,
|
128
128
|
void *userdata,
|
129
129
|
xmlHashDeallocator f);
|
130
130
|
XMLPUBFUN int XMLCALL
|
131
|
-
|
131
|
+
nl_xmlHashAddEntry2(xmlHashTablePtr table,
|
132
132
|
const xmlChar *name,
|
133
133
|
const xmlChar *name2,
|
134
134
|
void *userdata);
|
135
135
|
XMLPUBFUN int XMLCALL
|
136
|
-
|
136
|
+
nl_xmlHashUpdateEntry2(xmlHashTablePtr table,
|
137
137
|
const xmlChar *name,
|
138
138
|
const xmlChar *name2,
|
139
139
|
void *userdata,
|
140
140
|
xmlHashDeallocator f);
|
141
141
|
XMLPUBFUN int XMLCALL
|
142
|
-
|
142
|
+
nl_xmlHashAddEntry3(xmlHashTablePtr table,
|
143
143
|
const xmlChar *name,
|
144
144
|
const xmlChar *name2,
|
145
145
|
const xmlChar *name3,
|
146
146
|
void *userdata);
|
147
147
|
XMLPUBFUN int XMLCALL
|
148
|
-
|
148
|
+
nl_xmlHashUpdateEntry3(xmlHashTablePtr table,
|
149
149
|
const xmlChar *name,
|
150
150
|
const xmlChar *name2,
|
151
151
|
const xmlChar *name3,
|
@@ -156,13 +156,13 @@ XMLPUBFUN int XMLCALL
|
|
156
156
|
* Remove an entry from the hash table.
|
157
157
|
*/
|
158
158
|
XMLPUBFUN int XMLCALL
|
159
|
-
|
159
|
+
nl_xmlHashRemoveEntry(xmlHashTablePtr table, const xmlChar *name,
|
160
160
|
xmlHashDeallocator f);
|
161
161
|
XMLPUBFUN int XMLCALL
|
162
|
-
|
162
|
+
nl_xmlHashRemoveEntry2(xmlHashTablePtr table, const xmlChar *name,
|
163
163
|
const xmlChar *name2, xmlHashDeallocator f);
|
164
164
|
XMLPUBFUN int XMLCALL
|
165
|
-
|
165
|
+
nl_xmlHashRemoveEntry3(xmlHashTablePtr table, const xmlChar *name,
|
166
166
|
const xmlChar *name2, const xmlChar *name3,
|
167
167
|
xmlHashDeallocator f);
|
168
168
|
|
@@ -170,29 +170,29 @@ XMLPUBFUN int XMLCALL
|
|
170
170
|
* Retrieve the userdata.
|
171
171
|
*/
|
172
172
|
XMLPUBFUN void * XMLCALL
|
173
|
-
|
173
|
+
nl_xmlHashLookup (xmlHashTablePtr table,
|
174
174
|
const xmlChar *name);
|
175
175
|
XMLPUBFUN void * XMLCALL
|
176
|
-
|
176
|
+
nl_xmlHashLookup2 (xmlHashTablePtr table,
|
177
177
|
const xmlChar *name,
|
178
178
|
const xmlChar *name2);
|
179
179
|
XMLPUBFUN void * XMLCALL
|
180
|
-
|
180
|
+
nl_xmlHashLookup3 (xmlHashTablePtr table,
|
181
181
|
const xmlChar *name,
|
182
182
|
const xmlChar *name2,
|
183
183
|
const xmlChar *name3);
|
184
184
|
XMLPUBFUN void * XMLCALL
|
185
|
-
|
185
|
+
nl_xmlHashQLookup (xmlHashTablePtr table,
|
186
186
|
const xmlChar *name,
|
187
187
|
const xmlChar *prefix);
|
188
188
|
XMLPUBFUN void * XMLCALL
|
189
|
-
|
189
|
+
nl_xmlHashQLookup2 (xmlHashTablePtr table,
|
190
190
|
const xmlChar *name,
|
191
191
|
const xmlChar *prefix,
|
192
192
|
const xmlChar *name2,
|
193
193
|
const xmlChar *prefix2);
|
194
194
|
XMLPUBFUN void * XMLCALL
|
195
|
-
|
195
|
+
nl_xmlHashQLookup3 (xmlHashTablePtr table,
|
196
196
|
const xmlChar *name,
|
197
197
|
const xmlChar *prefix,
|
198
198
|
const xmlChar *name2,
|
@@ -204,27 +204,27 @@ XMLPUBFUN void * XMLCALL
|
|
204
204
|
* Helpers.
|
205
205
|
*/
|
206
206
|
XMLPUBFUN xmlHashTablePtr XMLCALL
|
207
|
-
|
207
|
+
nl_xmlHashCopy (xmlHashTablePtr table,
|
208
208
|
xmlHashCopier f);
|
209
209
|
XMLPUBFUN int XMLCALL
|
210
|
-
|
210
|
+
nl_xmlHashSize (xmlHashTablePtr table);
|
211
211
|
XMLPUBFUN void XMLCALL
|
212
|
-
|
212
|
+
nl_xmlHashScan (xmlHashTablePtr table,
|
213
213
|
xmlHashScanner f,
|
214
214
|
void *data);
|
215
215
|
XMLPUBFUN void XMLCALL
|
216
|
-
|
216
|
+
nl_xmlHashScan3 (xmlHashTablePtr table,
|
217
217
|
const xmlChar *name,
|
218
218
|
const xmlChar *name2,
|
219
219
|
const xmlChar *name3,
|
220
220
|
xmlHashScanner f,
|
221
221
|
void *data);
|
222
222
|
XMLPUBFUN void XMLCALL
|
223
|
-
|
223
|
+
nl_xmlHashScanFull (xmlHashTablePtr table,
|
224
224
|
xmlHashScannerFull f,
|
225
225
|
void *data);
|
226
226
|
XMLPUBFUN void XMLCALL
|
227
|
-
|
227
|
+
nl_xmlHashScanFull3(xmlHashTablePtr table,
|
228
228
|
const xmlChar *name,
|
229
229
|
const xmlChar *name2,
|
230
230
|
const xmlChar *name3,
|
@@ -132,7 +132,7 @@ typedef enum {
|
|
132
132
|
* XML_DETECT_IDS:
|
133
133
|
*
|
134
134
|
* Bit in the loadsubset context field to tell to do ID/REFs lookups.
|
135
|
-
* Use it to initialize
|
135
|
+
* Use it to initialize nl_xmlLoadExtDtdDefaultValue.
|
136
136
|
*/
|
137
137
|
#define XML_DETECT_IDS 2
|
138
138
|
|
@@ -141,7 +141,7 @@ typedef enum {
|
|
141
141
|
*
|
142
142
|
* Bit in the loadsubset context field to tell to do complete the
|
143
143
|
* elements attributes lists with the ones defaulted from the DTDs.
|
144
|
-
* Use it to initialize
|
144
|
+
* Use it to initialize nl_xmlLoadExtDtdDefaultValue.
|
145
145
|
*/
|
146
146
|
#define XML_COMPLETE_ATTRS 4
|
147
147
|
|
@@ -149,7 +149,7 @@ typedef enum {
|
|
149
149
|
* XML_SKIP_IDS:
|
150
150
|
*
|
151
151
|
* Bit in the loadsubset context field to tell to not do ID/REFs registration.
|
152
|
-
* Used to initialize
|
152
|
+
* Used to initialize nl_xmlLoadExtDtdDefaultValue in some special cases.
|
153
153
|
*/
|
154
154
|
#define XML_SKIP_IDS 8
|
155
155
|
|
@@ -482,7 +482,7 @@ typedef void (*unparsedEntityDeclSAXFunc)(void *ctx,
|
|
482
482
|
* @ctx: the user data (XML parser context)
|
483
483
|
* @loc: A SAX Locator
|
484
484
|
*
|
485
|
-
* Receive the document locator at startup, actually
|
485
|
+
* Receive the document locator at startup, actually nl_xmlDefaultSAXLocator.
|
486
486
|
* Everything is available on the context, so this is useless in our case.
|
487
487
|
*/
|
488
488
|
typedef void (*setDocumentLocatorSAXFunc) (void *ctx,
|
@@ -822,7 +822,7 @@ extern "C" {
|
|
822
822
|
* Init/Cleanup
|
823
823
|
*/
|
824
824
|
XMLPUBFUN void XMLCALL
|
825
|
-
|
825
|
+
nl_xmlInitParser (void);
|
826
826
|
XMLPUBFUN void XMLCALL
|
827
827
|
xmlCleanupParser (void);
|
828
828
|
|
@@ -288,7 +288,7 @@ XMLPUBVAR const xmlChar xmlStringComment[];
|
|
288
288
|
/*
|
289
289
|
* Function to finish the work of the macros where needed.
|
290
290
|
*/
|
291
|
-
XMLPUBFUN int XMLCALL
|
291
|
+
XMLPUBFUN int XMLCALL nl_xmlIsLetter (int c);
|
292
292
|
|
293
293
|
/**
|
294
294
|
* Parser context.
|
@@ -556,7 +556,7 @@ XMLPUBFUN int XMLCALL namePush (xmlParserCtxtPtr ctxt,
|
|
556
556
|
* other commodities shared between parser.c and parserInternals.
|
557
557
|
*/
|
558
558
|
XMLPUBFUN int XMLCALL xmlSkipBlankChars (xmlParserCtxtPtr ctxt);
|
559
|
-
XMLPUBFUN int XMLCALL
|
559
|
+
XMLPUBFUN int XMLCALL nl_xmlStringCurrentChar (xmlParserCtxtPtr ctxt,
|
560
560
|
const xmlChar *cur,
|
561
561
|
int *len);
|
562
562
|
XMLPUBFUN void XMLCALL xmlParserHandlePEReference(xmlParserCtxtPtr ctxt);
|
@@ -567,9 +567,9 @@ XMLPUBFUN int XMLCALL xmlCheckLanguageID (const xmlChar *lang);
|
|
567
567
|
*/
|
568
568
|
XMLPUBFUN int XMLCALL xmlCurrentChar (xmlParserCtxtPtr ctxt,
|
569
569
|
int *len);
|
570
|
-
XMLPUBFUN int XMLCALL
|
570
|
+
XMLPUBFUN int XMLCALL nl_xmlCopyCharMultiByte (xmlChar *out,
|
571
571
|
int val);
|
572
|
-
XMLPUBFUN int XMLCALL
|
572
|
+
XMLPUBFUN int XMLCALL nl_xmlCopyChar (int len,
|
573
573
|
xmlChar *out,
|
574
574
|
int val);
|
575
575
|
XMLPUBFUN void XMLCALL xmlNextChar (xmlParserCtxtPtr ctxt);
|
@@ -44,13 +44,13 @@ typedef enum {
|
|
44
44
|
} xmlPatternFlags;
|
45
45
|
|
46
46
|
XMLPUBFUN void XMLCALL
|
47
|
-
|
47
|
+
nl_xmlFreePattern (xmlPatternPtr comp);
|
48
48
|
|
49
49
|
XMLPUBFUN void XMLCALL
|
50
|
-
|
50
|
+
nl_xmlFreePatternList (xmlPatternPtr comp);
|
51
51
|
|
52
52
|
XMLPUBFUN xmlPatternPtr XMLCALL
|
53
|
-
|
53
|
+
nl_xmlPatterncompile (const xmlChar *pattern,
|
54
54
|
xmlDict *dict,
|
55
55
|
int flags,
|
56
56
|
const xmlChar **namespaces);
|
@@ -63,34 +63,34 @@ typedef struct _xmlStreamCtxt xmlStreamCtxt;
|
|
63
63
|
typedef xmlStreamCtxt *xmlStreamCtxtPtr;
|
64
64
|
|
65
65
|
XMLPUBFUN int XMLCALL
|
66
|
-
|
66
|
+
nl_xmlPatternStreamable (xmlPatternPtr comp);
|
67
67
|
XMLPUBFUN int XMLCALL
|
68
|
-
|
68
|
+
nl_xmlPatternMaxDepth (xmlPatternPtr comp);
|
69
69
|
XMLPUBFUN int XMLCALL
|
70
|
-
|
70
|
+
nl_xmlPatternMinDepth (xmlPatternPtr comp);
|
71
71
|
XMLPUBFUN int XMLCALL
|
72
|
-
|
72
|
+
nl_xmlPatternFromRoot (xmlPatternPtr comp);
|
73
73
|
XMLPUBFUN xmlStreamCtxtPtr XMLCALL
|
74
|
-
|
74
|
+
nl_xmlPatternGetStreamCtxt (xmlPatternPtr comp);
|
75
75
|
XMLPUBFUN void XMLCALL
|
76
|
-
|
76
|
+
nl_xmlFreeStreamCtxt (xmlStreamCtxtPtr stream);
|
77
77
|
XMLPUBFUN int XMLCALL
|
78
|
-
|
78
|
+
nl_xmlStreamPushNode (xmlStreamCtxtPtr stream,
|
79
79
|
const xmlChar *name,
|
80
80
|
const xmlChar *ns,
|
81
81
|
int nodeType);
|
82
82
|
XMLPUBFUN int XMLCALL
|
83
|
-
|
83
|
+
nl_xmlStreamPush (xmlStreamCtxtPtr stream,
|
84
84
|
const xmlChar *name,
|
85
85
|
const xmlChar *ns);
|
86
86
|
XMLPUBFUN int XMLCALL
|
87
|
-
|
87
|
+
nl_xmlStreamPushAttr (xmlStreamCtxtPtr stream,
|
88
88
|
const xmlChar *name,
|
89
89
|
const xmlChar *ns);
|
90
90
|
XMLPUBFUN int XMLCALL
|
91
|
-
|
91
|
+
nl_xmlStreamPop (xmlStreamCtxtPtr stream);
|
92
92
|
XMLPUBFUN int XMLCALL
|
93
|
-
|
93
|
+
nl_xmlStreamWantsAnyNode (xmlStreamCtxtPtr stream);
|
94
94
|
#ifdef __cplusplus
|
95
95
|
}
|
96
96
|
#endif
|
@@ -37,45 +37,45 @@ typedef xmlRMutex *xmlRMutexPtr;
|
|
37
37
|
extern "C" {
|
38
38
|
#endif
|
39
39
|
XMLPUBFUN xmlMutexPtr XMLCALL
|
40
|
-
|
40
|
+
nl_xmlNewMutex (void);
|
41
41
|
XMLPUBFUN void XMLCALL
|
42
|
-
|
42
|
+
nl_xmlMutexLock (xmlMutexPtr tok);
|
43
43
|
XMLPUBFUN void XMLCALL
|
44
|
-
|
44
|
+
nl_xmlMutexUnlock (xmlMutexPtr tok);
|
45
45
|
XMLPUBFUN void XMLCALL
|
46
|
-
|
46
|
+
nl_xmlFreeMutex (xmlMutexPtr tok);
|
47
47
|
|
48
48
|
XMLPUBFUN xmlRMutexPtr XMLCALL
|
49
|
-
|
49
|
+
nl_xmlNewRMutex (void);
|
50
50
|
XMLPUBFUN void XMLCALL
|
51
|
-
|
51
|
+
nl_xmlRMutexLock (xmlRMutexPtr tok);
|
52
52
|
XMLPUBFUN void XMLCALL
|
53
|
-
|
53
|
+
nl_xmlRMutexUnlock (xmlRMutexPtr tok);
|
54
54
|
XMLPUBFUN void XMLCALL
|
55
|
-
|
55
|
+
nl_xmlFreeRMutex (xmlRMutexPtr tok);
|
56
56
|
|
57
57
|
/*
|
58
58
|
* Library wide APIs.
|
59
59
|
*/
|
60
60
|
XML_DEPRECATED
|
61
61
|
XMLPUBFUN void XMLCALL
|
62
|
-
|
62
|
+
nl_xmlInitThreads (void);
|
63
63
|
XMLPUBFUN void XMLCALL
|
64
|
-
|
64
|
+
nl_xmlLockLibrary (void);
|
65
65
|
XMLPUBFUN void XMLCALL
|
66
|
-
|
66
|
+
nl_xmlUnlockLibrary(void);
|
67
67
|
XML_DEPRECATED
|
68
68
|
XMLPUBFUN int XMLCALL
|
69
|
-
|
69
|
+
nl_xmlGetThreadId (void);
|
70
70
|
XML_DEPRECATED
|
71
71
|
XMLPUBFUN int XMLCALL
|
72
|
-
|
72
|
+
nl_xmlIsMainThread (void);
|
73
73
|
XML_DEPRECATED
|
74
74
|
XMLPUBFUN void XMLCALL
|
75
|
-
|
75
|
+
nl_xmlCleanupThreads(void);
|
76
76
|
XML_DEPRECATED
|
77
77
|
XMLPUBFUN xmlGlobalStatePtr XMLCALL
|
78
|
-
|
78
|
+
nl_xmlGetGlobalState(void);
|
79
79
|
|
80
80
|
/** DOC_DISABLE */
|
81
81
|
#if defined(LIBXML_THREAD_ENABLED) && defined(_WIN32) && \
|
@@ -118,7 +118,7 @@ typedef xmlBuf *xmlBufPtr;
|
|
118
118
|
* A few public routines for xmlBuf. As those are expected to be used
|
119
119
|
* mostly internally the bulk of the routines are internal in buf.h
|
120
120
|
*/
|
121
|
-
XMLPUBFUN xmlChar* XMLCALL
|
121
|
+
XMLPUBFUN xmlChar* XMLCALL nl_xmlBufContent (const xmlBuf* buf);
|
122
122
|
XMLPUBFUN xmlChar* XMLCALL xmlBufEnd (xmlBufPtr buf);
|
123
123
|
XMLPUBFUN size_t XMLCALL xmlBufUse (const xmlBufPtr buf);
|
124
124
|
XMLPUBFUN size_t XMLCALL xmlBufShrink (xmlBufPtr buf, size_t len);
|
@@ -681,7 +681,7 @@ XMLPUBFUN int XMLCALL
|
|
681
681
|
#endif
|
682
682
|
|
683
683
|
XMLPUBFUN xmlChar * XMLCALL
|
684
|
-
|
684
|
+
nl_xmlBuildQName (const xmlChar *ncname,
|
685
685
|
const xmlChar *prefix,
|
686
686
|
xmlChar *memory,
|
687
687
|
int len);
|
@@ -921,7 +921,7 @@ XMLPUBFUN xmlChar * XMLCALL
|
|
921
921
|
xmlGetNodePath (const xmlNode *node);
|
922
922
|
#endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_DEBUG_ENABLED) */
|
923
923
|
XMLPUBFUN lxb_dom_node_t_ptr XMLCALL
|
924
|
-
|
924
|
+
nl_xmlDocGetRootElement (const lxb_dom_document_t *doc);
|
925
925
|
XMLPUBFUN lxb_dom_node_t_ptr XMLCALL
|
926
926
|
xmlGetLastChild (const xmlNode *parent);
|
927
927
|
XMLPUBFUN int XMLCALL
|
@@ -975,7 +975,7 @@ XMLPUBFUN int XMLCALL
|
|
975
975
|
const xmlChar *content,
|
976
976
|
int len);
|
977
977
|
XMLPUBFUN void XMLCALL
|
978
|
-
|
978
|
+
nl_xmlFreeNodeList (lxb_dom_node_t_ptr cur);
|
979
979
|
XMLPUBFUN void XMLCALL
|
980
980
|
xmlFreeNode (lxb_dom_node_t_ptr cur);
|
981
981
|
XMLPUBFUN void XMLCALL
|
@@ -1077,7 +1077,7 @@ XMLPUBFUN void XMLCALL
|
|
1077
1077
|
const xmlChar *content,
|
1078
1078
|
int len);
|
1079
1079
|
XMLPUBFUN xmlChar * XMLCALL
|
1080
|
-
|
1080
|
+
nl_xmlNodeGetContent (const lxb_dom_node_t *cur);
|
1081
1081
|
|
1082
1082
|
XMLPUBFUN int XMLCALL
|
1083
1083
|
xmlNodeBufGetContent (xmlBufferPtr buffer,
|
@@ -859,17 +859,17 @@ typedef void (XMLCALL *xmlStructuredErrorFunc) (void *userData, xmlErrorPtr erro
|
|
859
859
|
|
860
860
|
/*
|
861
861
|
* Use the following function to reset the two global variables
|
862
|
-
*
|
862
|
+
* nl_xmlGenericError and nl_xmlGenericErrorContext.
|
863
863
|
*/
|
864
864
|
XMLPUBFUN void XMLCALL
|
865
|
-
|
865
|
+
nl_xmlSetGenericErrorFunc (void *ctx,
|
866
866
|
xmlGenericErrorFunc handler);
|
867
867
|
XML_DEPRECATED
|
868
868
|
XMLPUBFUN void XMLCALL
|
869
869
|
initGenericErrorDefaultFunc (xmlGenericErrorFunc *handler);
|
870
870
|
|
871
871
|
XMLPUBFUN void XMLCALL
|
872
|
-
|
872
|
+
nl_xmlSetStructuredErrorFunc (void *ctx,
|
873
873
|
xmlStructuredErrorFunc handler);
|
874
874
|
/*
|
875
875
|
* Default message routines used by SAX and Valid context for error
|
@@ -908,9 +908,9 @@ XMLPUBFUN xmlErrorPtr XMLCALL
|
|
908
908
|
XMLPUBFUN void XMLCALL
|
909
909
|
xmlCtxtResetLastError (void *ctx);
|
910
910
|
XMLPUBFUN void XMLCALL
|
911
|
-
|
911
|
+
nl_xmlResetError (xmlErrorPtr err);
|
912
912
|
XMLPUBFUN int XMLCALL
|
913
|
-
|
913
|
+
nl_xmlCopyError (xmlErrorPtr from,
|
914
914
|
xmlErrorPtr to);
|
915
915
|
|
916
916
|
#ifdef __cplusplus
|
@@ -88,11 +88,11 @@ typedef char *(XMLCALL *xmlStrdupFunc)(const char *str);
|
|
88
88
|
|
89
89
|
/*
|
90
90
|
* The 4 interfaces used for all memory handling within libxml.
|
91
|
-
LIBXML_DLL_IMPORT xmlFreeFunc
|
92
|
-
LIBXML_DLL_IMPORT xmlMallocFunc
|
93
|
-
LIBXML_DLL_IMPORT xmlMallocFunc
|
94
|
-
LIBXML_DLL_IMPORT xmlReallocFunc
|
95
|
-
LIBXML_DLL_IMPORT xmlStrdupFunc
|
91
|
+
LIBXML_DLL_IMPORT xmlFreeFunc nl_xmlFree;
|
92
|
+
LIBXML_DLL_IMPORT xmlMallocFunc nl_xmlMalloc;
|
93
|
+
LIBXML_DLL_IMPORT xmlMallocFunc nl_xmlMallocAtomic;
|
94
|
+
LIBXML_DLL_IMPORT xmlReallocFunc nl_xmlRealloc;
|
95
|
+
LIBXML_DLL_IMPORT xmlStrdupFunc nl_xmlMemStrdup;
|
96
96
|
*/
|
97
97
|
|
98
98
|
/*
|
@@ -101,7 +101,7 @@ LIBXML_DLL_IMPORT xmlStrdupFunc xmlMemStrdup;
|
|
101
101
|
* allocations useful for garbage collected memory allocators
|
102
102
|
*/
|
103
103
|
XMLPUBFUN int XMLCALL
|
104
|
-
|
104
|
+
nl_xmlMemSetup (xmlFreeFunc freeFunc,
|
105
105
|
xmlMallocFunc mallocFunc,
|
106
106
|
xmlReallocFunc reallocFunc,
|
107
107
|
xmlStrdupFunc strdupFunc);
|
@@ -128,7 +128,7 @@ XMLPUBFUN int XMLCALL
|
|
128
128
|
*/
|
129
129
|
XML_DEPRECATED
|
130
130
|
XMLPUBFUN int XMLCALL
|
131
|
-
|
131
|
+
nl_xmlInitMemory (void);
|
132
132
|
|
133
133
|
/*
|
134
134
|
* Cleanup of the memory layer.
|
@@ -171,16 +171,16 @@ XMLPUBFUN char * XMLCALL
|
|
171
171
|
|
172
172
|
#ifdef DEBUG_MEMORY_LOCATION
|
173
173
|
/**
|
174
|
-
*
|
174
|
+
* nl_xmlMalloc:
|
175
175
|
* @size: number of bytes to allocate
|
176
176
|
*
|
177
177
|
* Wrapper for the malloc() function used in the XML library.
|
178
178
|
*
|
179
179
|
* Returns the pointer to the allocated area or NULL in case of error.
|
180
180
|
*/
|
181
|
-
#define
|
181
|
+
#define nl_xmlMalloc(size) xmlMallocLoc((size), __FILE__, __LINE__)
|
182
182
|
/**
|
183
|
-
*
|
183
|
+
* nl_xmlMallocAtomic:
|
184
184
|
* @size: number of bytes to allocate
|
185
185
|
*
|
186
186
|
* Wrapper for the malloc() function used in the XML library for allocation
|
@@ -188,9 +188,9 @@ XMLPUBFUN char * XMLCALL
|
|
188
188
|
*
|
189
189
|
* Returns the pointer to the allocated area or NULL in case of error.
|
190
190
|
*/
|
191
|
-
#define
|
191
|
+
#define nl_xmlMallocAtomic(size) xmlMallocAtomicLoc((size), __FILE__, __LINE__)
|
192
192
|
/**
|
193
|
-
*
|
193
|
+
* nl_xmlRealloc:
|
194
194
|
* @ptr: pointer to the existing allocated area
|
195
195
|
* @size: number of bytes to allocate
|
196
196
|
*
|
@@ -198,16 +198,16 @@ XMLPUBFUN char * XMLCALL
|
|
198
198
|
*
|
199
199
|
* Returns the pointer to the allocated area or NULL in case of error.
|
200
200
|
*/
|
201
|
-
#define
|
201
|
+
#define nl_xmlRealloc(ptr, size) xmlReallocLoc((ptr), (size), __FILE__, __LINE__)
|
202
202
|
/**
|
203
|
-
*
|
203
|
+
* nl_xmlMemStrdup:
|
204
204
|
* @str: pointer to the existing string
|
205
205
|
*
|
206
|
-
* Wrapper for the strdup() function,
|
206
|
+
* Wrapper for the strdup() function, nl_xmlStrdup() is usually preferred.
|
207
207
|
*
|
208
208
|
* Returns the pointer to the allocated area or NULL in case of error.
|
209
209
|
*/
|
210
|
-
#define
|
210
|
+
#define nl_xmlMemStrdup(str) xmlMemStrdupLoc((str), __FILE__, __LINE__)
|
211
211
|
|
212
212
|
#endif /* DEBUG_MEMORY_LOCATION */
|
213
213
|
|
@@ -38,100 +38,100 @@ typedef unsigned char xmlChar;
|
|
38
38
|
* xmlChar handling
|
39
39
|
*/
|
40
40
|
XMLPUBFUN xmlChar * XMLCALL
|
41
|
-
|
41
|
+
nl_xmlStrdup (const xmlChar *cur);
|
42
42
|
XMLPUBFUN xmlChar * XMLCALL
|
43
|
-
|
43
|
+
nl_xmlStrndup (const xmlChar *cur,
|
44
44
|
int len);
|
45
45
|
XMLPUBFUN xmlChar * XMLCALL
|
46
|
-
|
46
|
+
nl_xmlCharStrndup (const char *cur,
|
47
47
|
int len);
|
48
48
|
XMLPUBFUN xmlChar * XMLCALL
|
49
|
-
|
49
|
+
nl_xmlCharStrdup (const char *cur);
|
50
50
|
XMLPUBFUN xmlChar * XMLCALL
|
51
|
-
|
51
|
+
nl_xmlStrsub (const xmlChar *str,
|
52
52
|
int start,
|
53
53
|
int len);
|
54
54
|
XMLPUBFUN const xmlChar * XMLCALL
|
55
|
-
|
55
|
+
nl_xmlStrchr (const xmlChar *str,
|
56
56
|
xmlChar val);
|
57
57
|
XMLPUBFUN const xmlChar * XMLCALL
|
58
|
-
|
58
|
+
nl_xmlStrstr (const xmlChar *str,
|
59
59
|
const xmlChar *val);
|
60
60
|
XMLPUBFUN const xmlChar * XMLCALL
|
61
|
-
|
61
|
+
nl_xmlStrcasestr (const xmlChar *str,
|
62
62
|
const xmlChar *val);
|
63
63
|
XMLPUBFUN int XMLCALL
|
64
|
-
|
64
|
+
nl_xmlStrcmp (const xmlChar *str1,
|
65
65
|
const xmlChar *str2);
|
66
66
|
XMLPUBFUN int XMLCALL
|
67
|
-
|
67
|
+
nl_xmlStrncmp (const xmlChar *str1,
|
68
68
|
const xmlChar *str2,
|
69
69
|
int len);
|
70
70
|
XMLPUBFUN int XMLCALL
|
71
|
-
|
71
|
+
nl_xmlStrcasecmp (const xmlChar *str1,
|
72
72
|
const xmlChar *str2);
|
73
73
|
XMLPUBFUN int XMLCALL
|
74
|
-
|
74
|
+
nl_xmlStrncasecmp (const xmlChar *str1,
|
75
75
|
const xmlChar *str2,
|
76
76
|
int len);
|
77
77
|
XMLPUBFUN int XMLCALL
|
78
|
-
|
78
|
+
nl_xmlStrEqual (const xmlChar *str1,
|
79
79
|
const xmlChar *str2);
|
80
80
|
XMLPUBFUN int XMLCALL
|
81
|
-
|
81
|
+
nl_xmlStrQEqual (const xmlChar *pref,
|
82
82
|
const xmlChar *name,
|
83
83
|
const xmlChar *str);
|
84
84
|
XMLPUBFUN int XMLCALL
|
85
|
-
|
85
|
+
nl_xmlStrlen (const xmlChar *str);
|
86
86
|
XMLPUBFUN xmlChar * XMLCALL
|
87
|
-
|
87
|
+
nl_xmlStrcat (xmlChar *cur,
|
88
88
|
const xmlChar *add);
|
89
89
|
XMLPUBFUN xmlChar * XMLCALL
|
90
|
-
|
90
|
+
nl_xmlStrncat (xmlChar *cur,
|
91
91
|
const xmlChar *add,
|
92
92
|
int len);
|
93
93
|
XMLPUBFUN xmlChar * XMLCALL
|
94
|
-
|
94
|
+
nl_xmlStrncatNew (const xmlChar *str1,
|
95
95
|
const xmlChar *str2,
|
96
96
|
int len);
|
97
97
|
XMLPUBFUN int XMLCALL
|
98
|
-
|
98
|
+
nl_xmlStrPrintf (xmlChar *buf,
|
99
99
|
int len,
|
100
100
|
const char *msg,
|
101
101
|
...) LIBXML_ATTR_FORMAT(3,4);
|
102
102
|
XMLPUBFUN int XMLCALL
|
103
|
-
|
103
|
+
nl_xmlStrVPrintf (xmlChar *buf,
|
104
104
|
int len,
|
105
105
|
const char *msg,
|
106
106
|
va_list ap) LIBXML_ATTR_FORMAT(3,0);
|
107
107
|
|
108
108
|
XMLPUBFUN int XMLCALL
|
109
|
-
|
109
|
+
nl_xmlGetUTF8Char (const unsigned char *utf,
|
110
110
|
int *len);
|
111
111
|
XMLPUBFUN int XMLCALL
|
112
|
-
|
112
|
+
nl_xmlCheckUTF8 (const unsigned char *utf);
|
113
113
|
XMLPUBFUN int XMLCALL
|
114
|
-
|
114
|
+
nl_xmlUTF8Strsize (const xmlChar *utf,
|
115
115
|
int len);
|
116
116
|
XMLPUBFUN xmlChar * XMLCALL
|
117
|
-
|
117
|
+
nl_xmlUTF8Strndup (const xmlChar *utf,
|
118
118
|
int len);
|
119
119
|
XMLPUBFUN const xmlChar * XMLCALL
|
120
|
-
|
120
|
+
nl_xmlUTF8Strpos (const xmlChar *utf,
|
121
121
|
int pos);
|
122
122
|
XMLPUBFUN int XMLCALL
|
123
|
-
|
123
|
+
nl_xmlUTF8Strloc (const xmlChar *utf,
|
124
124
|
const xmlChar *utfchar);
|
125
125
|
XMLPUBFUN xmlChar * XMLCALL
|
126
|
-
|
126
|
+
nl_xmlUTF8Strsub (const xmlChar *utf,
|
127
127
|
int start,
|
128
128
|
int len);
|
129
129
|
XMLPUBFUN int XMLCALL
|
130
|
-
|
130
|
+
nl_xmlUTF8Strlen (const xmlChar *utf);
|
131
131
|
XMLPUBFUN int XMLCALL
|
132
|
-
|
132
|
+
nl_xmlUTF8Size (const xmlChar *utf);
|
133
133
|
XMLPUBFUN int XMLCALL
|
134
|
-
|
134
|
+
nl_xmlUTF8Charcmp (const xmlChar *utf1,
|
135
135
|
const xmlChar *utf2);
|
136
136
|
|
137
137
|
#ifdef __cplusplus
|