Debian Codegraph @

include/libxml/xpathInternals.h

raw
1 /**
2 * @file
3 *
4 * @brief internal interfaces for XML Path Language implementation
5 *
6 * internal interfaces for XML Path Language implementation
7 * used to build new modules on top of XPath like XPointer and
8 * XSLT
9 *
10 * @copyright See Copyright for the status of this software.
11 *
12 * @author Daniel Veillard
13 */
14
15 #ifndef __XML_XPATH_INTERNALS_H__
16 #define __XML_XPATH_INTERNALS_H__
17
18 #include <stdio.h>
19 #include <libxml/xmlversion.h>
20 #include <libxml/xpath.h>
21
22 #ifdef LIBXML_XPATH_ENABLED
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 /**
29 * Push a value on the stack
30 *
31 * @deprecated Use #xmlXPathValuePush
32 */
33 #define valuePush xmlXPathValuePush
34 /**
35 * Pop a value from the stack
36 *
37 * @deprecated Use #xmlXPathValuePop
38 */
39 #define valuePop xmlXPathValuePop
40
41 /************************************************************************
42 * *
43 * Helpers *
44 * *
45 ************************************************************************/
46
47 /*
48 * Many of these macros may later turn into functions. They
49 * shouldn't be used in \#ifdef's preprocessor instructions.
50 */
51 /**
52 * Raises an error.
53 *
54 * @param ctxt an XPath parser context
55 * @param err an xmlXPathError code
56 */
57 #define xmlXPathSetError(ctxt, err) \
58 { xmlXPatherror((ctxt), __FILE__, __LINE__, (err)); \
59 if ((ctxt) != NULL) (ctxt)->error = (err); }
60
61 /**
62 * Raises an XPATH_INVALID_ARITY error.
63 *
64 * @param ctxt an XPath parser context
65 */
66 #define xmlXPathSetArityError(ctxt) \
67 xmlXPathSetError((ctxt), XPATH_INVALID_ARITY)
68
69 /**
70 * Raises an XPATH_INVALID_TYPE error.
71 *
72 * @param ctxt an XPath parser context
73 */
74 #define xmlXPathSetTypeError(ctxt) \
75 xmlXPathSetError((ctxt), XPATH_INVALID_TYPE)
76
77 /**
78 * Get the error code of an XPath context.
79 *
80 * @param ctxt an XPath parser context
81 * @returns the context error.
82 */
83 #define xmlXPathGetError(ctxt) ((ctxt)->error)
84
85 /**
86 * Check if an XPath error was raised.
87 *
88 * @param ctxt an XPath parser context
89 * @returns true if an error has been raised, false otherwise.
90 */
91 #define xmlXPathCheckError(ctxt) ((ctxt)->error != XPATH_EXPRESSION_OK)
92
93 /**
94 * Get the document of an XPath context.
95 *
96 * @param ctxt an XPath parser context
97 * @returns the context document.
98 */
99 #define xmlXPathGetDocument(ctxt) ((ctxt)->context->doc)
100
101 /**
102 * Get the context node of an XPath context.
103 *
104 * @param ctxt an XPath parser context
105 * @returns the context node.
106 */
107 #define xmlXPathGetContextNode(ctxt) ((ctxt)->context->node)
108
109 XMLPUBFUN int
110 xmlXPathPopBoolean (xmlXPathParserContext *ctxt);
111 XMLPUBFUN double
112 xmlXPathPopNumber (xmlXPathParserContext *ctxt);
113 XMLPUBFUN xmlChar *
114 xmlXPathPopString (xmlXPathParserContext *ctxt);
115 XMLPUBFUN xmlNodeSet *
116 xmlXPathPopNodeSet (xmlXPathParserContext *ctxt);
117 XMLPUBFUN void *
118 xmlXPathPopExternal (xmlXPathParserContext *ctxt);
119
120 /**
121 * Pushes the boolean `val` on the context stack.
122 *
123 * @param ctxt an XPath parser context
124 * @param val a boolean
125 */
126 #define xmlXPathReturnBoolean(ctxt, val) \
127 valuePush((ctxt), xmlXPathNewBoolean(val))
128
129 /**
130 * Pushes true on the context stack.
131 *
132 * @param ctxt an XPath parser context
133 */
134 #define xmlXPathReturnTrue(ctxt) xmlXPathReturnBoolean((ctxt), 1)
135
136 /**
137 * Pushes false on the context stack.
138 *
139 * @param ctxt an XPath parser context
140 */
141 #define xmlXPathReturnFalse(ctxt) xmlXPathReturnBoolean((ctxt), 0)
142
143 /**
144 * Pushes the double `val` on the context stack.
145 *
146 * @param ctxt an XPath parser context
147 * @param val a double
148 */
149 #define xmlXPathReturnNumber(ctxt, val) \
150 valuePush((ctxt), xmlXPathNewFloat(val))
151
152 /**
153 * Pushes the string `str` on the context stack.
154 *
155 * @param ctxt an XPath parser context
156 * @param str a string
157 */
158 #define xmlXPathReturnString(ctxt, str) \
159 valuePush((ctxt), xmlXPathWrapString(str))
160
161 /**
162 * Pushes an empty string on the stack.
163 *
164 * @param ctxt an XPath parser context
165 */
166 #define xmlXPathReturnEmptyString(ctxt) \
167 valuePush((ctxt), xmlXPathNewCString(""))
168
169 /**
170 * Pushes the node-set `ns` on the context stack.
171 *
172 * @param ctxt an XPath parser context
173 * @param ns a node-set
174 */
175 #define xmlXPathReturnNodeSet(ctxt, ns) \
176 valuePush((ctxt), xmlXPathWrapNodeSet(ns))
177
178 /**
179 * Pushes an empty node-set on the context stack.
180 *
181 * @param ctxt an XPath parser context
182 */
183 #define xmlXPathReturnEmptyNodeSet(ctxt) \
184 valuePush((ctxt), xmlXPathNewNodeSet(NULL))
185
186 /**
187 * Pushes user data on the context stack.
188 *
189 * @param ctxt an XPath parser context
190 * @param val user data
191 */
192 #define xmlXPathReturnExternal(ctxt, val) \
193 valuePush((ctxt), xmlXPathWrapExternal(val))
194
195 /**
196 * Check if the current value on the XPath stack is a node set or
197 * an XSLT value tree.
198 *
199 * @param ctxt an XPath parser context
200 * @returns true if the current object on the stack is a node-set.
201 */
202 #define xmlXPathStackIsNodeSet(ctxt) \
203 (((ctxt)->value != NULL) \
204 && (((ctxt)->value->type == XPATH_NODESET) \
205 || ((ctxt)->value->type == XPATH_XSLT_TREE)))
206
207 /**
208 * Checks if the current value on the XPath stack is an external
209 * object.
210 *
211 * @param ctxt an XPath parser context
212 * @returns true if the current object on the stack is an external
213 * object.
214 */
215 #define xmlXPathStackIsExternal(ctxt) \
216 ((ctxt->value != NULL) && (ctxt->value->type == XPATH_USERS))
217
218 /**
219 * Empties a node-set.
220 *
221 * @param ns a node-set
222 */
223 #define xmlXPathEmptyNodeSet(ns) \
224 { while ((ns)->nodeNr > 0) (ns)->nodeTab[--(ns)->nodeNr] = NULL; }
225
226 /**
227 * Macro to return from the function if an XPath error was detected.
228 */
229 #define CHECK_ERROR \
230 if (ctxt->error != XPATH_EXPRESSION_OK) return
231
232 /**
233 * Macro to return 0 from the function if an XPath error was detected.
234 */
235 #define CHECK_ERROR0 \
236 if (ctxt->error != XPATH_EXPRESSION_OK) return(0)
237
238 /**
239 * Macro to raise an XPath error and return.
240 *
241 * @param X the error code
242 */
243 #define XP_ERROR(X) \
244 { xmlXPathErr(ctxt, X); return; }
245
246 /**
247 * Macro to raise an XPath error and return 0.
248 *
249 * @param X the error code
250 */
251 #define XP_ERROR0(X) \
252 { xmlXPathErr(ctxt, X); return(0); }
253
254 /**
255 * Macro to check that the value on top of the XPath stack is of a given
256 * type.
257 *
258 * @param typeval the XPath type
259 */
260 #define CHECK_TYPE(typeval) \
261 if ((ctxt->value == NULL) || (ctxt->value->type != typeval)) \
262 XP_ERROR(XPATH_INVALID_TYPE)
263
264 /**
265 * Macro to check that the value on top of the XPath stack is of a given
266 * type. Return(0) in case of failure
267 *
268 * @param typeval the XPath type
269 */
270 #define CHECK_TYPE0(typeval) \
271 if ((ctxt->value == NULL) || (ctxt->value->type != typeval)) \
272 XP_ERROR0(XPATH_INVALID_TYPE)
273
274 /**
275 * Macro to check that the number of args passed to an XPath function matches.
276 *
277 * @param x the number of expected args
278 */
279 #define CHECK_ARITY(x) \
280 if (ctxt == NULL) return; \
281 if (nargs != (x)) \
282 XP_ERROR(XPATH_INVALID_ARITY); \
283 if (ctxt->valueNr < (x)) \
284 XP_ERROR(XPATH_STACK_ERROR);
285
286 /**
287 * Macro to try to cast the value on the top of the XPath stack to a string.
288 */
289 #define CAST_TO_STRING \
290 if ((ctxt->value != NULL) && (ctxt->value->type != XPATH_STRING)) \
291 xmlXPathStringFunction(ctxt, 1);
292
293 /**
294 * Macro to try to cast the value on the top of the XPath stack to a number.
295 */
296 #define CAST_TO_NUMBER \
297 if ((ctxt->value != NULL) && (ctxt->value->type != XPATH_NUMBER)) \
298 xmlXPathNumberFunction(ctxt, 1);
299
300 /**
301 * Macro to try to cast the value on the top of the XPath stack to a boolean.
302 */
303 #define CAST_TO_BOOLEAN \
304 if ((ctxt->value != NULL) && (ctxt->value->type != XPATH_BOOLEAN)) \
305 xmlXPathBooleanFunction(ctxt, 1);
306
307 /*
308 * Variable Lookup forwarding.
309 */
310
311 XMLPUBFUN void
312 xmlXPathRegisterVariableLookup (xmlXPathContext *ctxt,
313 xmlXPathVariableLookupFunc f,
314 void *data);
315
316 /*
317 * Function Lookup forwarding.
318 */
319
320 XMLPUBFUN void
321 xmlXPathRegisterFuncLookup (xmlXPathContext *ctxt,
322 xmlXPathFuncLookupFunc f,
323 void *funcCtxt);
324
325 /*
326 * Error reporting.
327 */
328 XMLPUBFUN void
329 xmlXPatherror (xmlXPathParserContext *ctxt,
330 const char *file,
331 int line,
332 int no);
333
334 XMLPUBFUN void
335 xmlXPathErr (xmlXPathParserContext *ctxt,
336 int error);
337
338 #ifdef LIBXML_DEBUG_ENABLED
339 XMLPUBFUN void
340 xmlXPathDebugDumpObject (FILE *output,
341 xmlXPathObject *cur,
342 int depth);
343 XMLPUBFUN void
344 xmlXPathDebugDumpCompExpr(FILE *output,
345 xmlXPathCompExpr *comp,
346 int depth);
347 #endif
348 /**
349 * NodeSet handling.
350 */
351 XMLPUBFUN int
352 xmlXPathNodeSetContains (xmlNodeSet *cur,
353 xmlNode *val);
354 XMLPUBFUN xmlNodeSet *
355 xmlXPathDifference (xmlNodeSet *nodes1,
356 xmlNodeSet *nodes2);
357 XMLPUBFUN xmlNodeSet *
358 xmlXPathIntersection (xmlNodeSet *nodes1,
359 xmlNodeSet *nodes2);
360
361 XMLPUBFUN xmlNodeSet *
362 xmlXPathDistinctSorted (xmlNodeSet *nodes);
363 XMLPUBFUN xmlNodeSet *
364 xmlXPathDistinct (xmlNodeSet *nodes);
365
366 XMLPUBFUN int
367 xmlXPathHasSameNodes (xmlNodeSet *nodes1,
368 xmlNodeSet *nodes2);
369
370 XMLPUBFUN xmlNodeSet *
371 xmlXPathNodeLeadingSorted (xmlNodeSet *nodes,
372 xmlNode *node);
373 XMLPUBFUN xmlNodeSet *
374 xmlXPathLeadingSorted (xmlNodeSet *nodes1,
375 xmlNodeSet *nodes2);
376 XMLPUBFUN xmlNodeSet *
377 xmlXPathNodeLeading (xmlNodeSet *nodes,
378 xmlNode *node);
379 XMLPUBFUN xmlNodeSet *
380 xmlXPathLeading (xmlNodeSet *nodes1,
381 xmlNodeSet *nodes2);
382
383 XMLPUBFUN xmlNodeSet *
384 xmlXPathNodeTrailingSorted (xmlNodeSet *nodes,
385 xmlNode *node);
386 XMLPUBFUN xmlNodeSet *
387 xmlXPathTrailingSorted (xmlNodeSet *nodes1,
388 xmlNodeSet *nodes2);
389 XMLPUBFUN xmlNodeSet *
390 xmlXPathNodeTrailing (xmlNodeSet *nodes,
391 xmlNode *node);
392 XMLPUBFUN xmlNodeSet *
393 xmlXPathTrailing (xmlNodeSet *nodes1,
394 xmlNodeSet *nodes2);
395
396
397 /**
398 * Extending a context.
399 */
400
401 XMLPUBFUN int
402 xmlXPathRegisterNs (xmlXPathContext *ctxt,
403 const xmlChar *prefix,
404 const xmlChar *ns_uri);
405 XMLPUBFUN const xmlChar *
406 xmlXPathNsLookup (xmlXPathContext *ctxt,
407 const xmlChar *prefix);
408 XMLPUBFUN void
409 xmlXPathRegisteredNsCleanup (xmlXPathContext *ctxt);
410
411 XMLPUBFUN int
412 xmlXPathRegisterFunc (xmlXPathContext *ctxt,
413 const xmlChar *name,
414 xmlXPathFunction f);
415 XMLPUBFUN int
416 xmlXPathRegisterFuncNS (xmlXPathContext *ctxt,
417 const xmlChar *name,
418 const xmlChar *ns_uri,
419 xmlXPathFunction f);
420 XMLPUBFUN int
421 xmlXPathRegisterVariable (xmlXPathContext *ctxt,
422 const xmlChar *name,
423 xmlXPathObject *value);
424 XMLPUBFUN int
425 xmlXPathRegisterVariableNS (xmlXPathContext *ctxt,
426 const xmlChar *name,
427 const xmlChar *ns_uri,
428 xmlXPathObject *value);
429 XMLPUBFUN xmlXPathFunction
430 xmlXPathFunctionLookup (xmlXPathContext *ctxt,
431 const xmlChar *name);
432 XMLPUBFUN xmlXPathFunction
433 xmlXPathFunctionLookupNS (xmlXPathContext *ctxt,
434 const xmlChar *name,
435 const xmlChar *ns_uri);
436 XMLPUBFUN void
437 xmlXPathRegisteredFuncsCleanup (xmlXPathContext *ctxt);
438 XMLPUBFUN xmlXPathObject *
439 xmlXPathVariableLookup (xmlXPathContext *ctxt,
440 const xmlChar *name);
441 XMLPUBFUN xmlXPathObject *
442 xmlXPathVariableLookupNS (xmlXPathContext *ctxt,
443 const xmlChar *name,
444 const xmlChar *ns_uri);
445 XMLPUBFUN void
446 xmlXPathRegisteredVariablesCleanup(xmlXPathContext *ctxt);
447
448 /**
449 * Utilities to extend XPath.
450 */
451 XMLPUBFUN xmlXPathParserContext *
452 xmlXPathNewParserContext (const xmlChar *str,
453 xmlXPathContext *ctxt);
454 XMLPUBFUN void
455 xmlXPathFreeParserContext (xmlXPathParserContext *ctxt);
456
457 XMLPUBFUN xmlXPathObject *
458 xmlXPathValuePop (xmlXPathParserContext *ctxt);
459 XMLPUBFUN int
460 xmlXPathValuePush (xmlXPathParserContext *ctxt,
461 xmlXPathObject *value);
462
463 XMLPUBFUN xmlXPathObject *
464 xmlXPathNewString (const xmlChar *val);
465 XMLPUBFUN xmlXPathObject *
466 xmlXPathNewCString (const char *val);
467 XMLPUBFUN xmlXPathObject *
468 xmlXPathWrapString (xmlChar *val);
469 XMLPUBFUN xmlXPathObject *
470 xmlXPathWrapCString (char * val);
471 XMLPUBFUN xmlXPathObject *
472 xmlXPathNewFloat (double val);
473 XMLPUBFUN xmlXPathObject *
474 xmlXPathNewBoolean (int val);
475 XMLPUBFUN xmlXPathObject *
476 xmlXPathNewNodeSet (xmlNode *val);
477 XMLPUBFUN xmlXPathObject *
478 xmlXPathNewValueTree (xmlNode *val);
479 XMLPUBFUN int
480 xmlXPathNodeSetAdd (xmlNodeSet *cur,
481 xmlNode *val);
482 XMLPUBFUN int
483 xmlXPathNodeSetAddUnique (xmlNodeSet *cur,
484 xmlNode *val);
485 XMLPUBFUN int
486 xmlXPathNodeSetAddNs (xmlNodeSet *cur,
487 xmlNode *node,
488 xmlNs *ns);
489 XMLPUBFUN void
490 xmlXPathNodeSetSort (xmlNodeSet *set);
491
492 XMLPUBFUN void
493 xmlXPathRoot (xmlXPathParserContext *ctxt);
494 XML_DEPRECATED
495 XMLPUBFUN void
496 xmlXPathEvalExpr (xmlXPathParserContext *ctxt);
497 XMLPUBFUN xmlChar *
498 xmlXPathParseName (xmlXPathParserContext *ctxt);
499 XMLPUBFUN xmlChar *
500 xmlXPathParseNCName (xmlXPathParserContext *ctxt);
501
502 /*
503 * Existing functions.
504 */
505 XMLPUBFUN double
506 xmlXPathStringEvalNumber (const xmlChar *str);
507 XMLPUBFUN int
508 xmlXPathEvaluatePredicateResult (xmlXPathParserContext *ctxt,
509 xmlXPathObject *res);
510 XMLPUBFUN void
511 xmlXPathRegisterAllFunctions (xmlXPathContext *ctxt);
512 XMLPUBFUN xmlNodeSet *
513 xmlXPathNodeSetMerge (xmlNodeSet *val1,
514 xmlNodeSet *val2);
515 XMLPUBFUN void
516 xmlXPathNodeSetDel (xmlNodeSet *cur,
517 xmlNode *val);
518 XMLPUBFUN void
519 xmlXPathNodeSetRemove (xmlNodeSet *cur,
520 int val);
521 XMLPUBFUN xmlXPathObject *
522 xmlXPathNewNodeSetList (xmlNodeSet *val);
523 XMLPUBFUN xmlXPathObject *
524 xmlXPathWrapNodeSet (xmlNodeSet *val);
525 XMLPUBFUN xmlXPathObject *
526 xmlXPathWrapExternal (void *val);
527
528 XMLPUBFUN int xmlXPathEqualValues(xmlXPathParserContext *ctxt);
529 XMLPUBFUN int xmlXPathNotEqualValues(xmlXPathParserContext *ctxt);
530 XMLPUBFUN int xmlXPathCompareValues(xmlXPathParserContext *ctxt, int inf, int strict);
531 XMLPUBFUN void xmlXPathValueFlipSign(xmlXPathParserContext *ctxt);
532 XMLPUBFUN void xmlXPathAddValues(xmlXPathParserContext *ctxt);
533 XMLPUBFUN void xmlXPathSubValues(xmlXPathParserContext *ctxt);
534 XMLPUBFUN void xmlXPathMultValues(xmlXPathParserContext *ctxt);
535 XMLPUBFUN void xmlXPathDivValues(xmlXPathParserContext *ctxt);
536 XMLPUBFUN void xmlXPathModValues(xmlXPathParserContext *ctxt);
537
538 XMLPUBFUN int xmlXPathIsNodeType(const xmlChar *name);
539
540 /*
541 * Some of the axis navigation routines.
542 */
543 XMLPUBFUN xmlNode *xmlXPathNextSelf(xmlXPathParserContext *ctxt,
544 xmlNode *cur);
545 XMLPUBFUN xmlNode *xmlXPathNextChild(xmlXPathParserContext *ctxt,
546 xmlNode *cur);
547 XMLPUBFUN xmlNode *xmlXPathNextDescendant(xmlXPathParserContext *ctxt,
548 xmlNode *cur);
549 XMLPUBFUN xmlNode *xmlXPathNextDescendantOrSelf(xmlXPathParserContext *ctxt,
550 xmlNode *cur);
551 XMLPUBFUN xmlNode *xmlXPathNextParent(xmlXPathParserContext *ctxt,
552 xmlNode *cur);
553 XMLPUBFUN xmlNode *xmlXPathNextAncestorOrSelf(xmlXPathParserContext *ctxt,
554 xmlNode *cur);
555 XMLPUBFUN xmlNode *xmlXPathNextFollowingSibling(xmlXPathParserContext *ctxt,
556 xmlNode *cur);
557 XMLPUBFUN xmlNode *xmlXPathNextFollowing(xmlXPathParserContext *ctxt,
558 xmlNode *cur);
559 XMLPUBFUN xmlNode *xmlXPathNextNamespace(xmlXPathParserContext *ctxt,
560 xmlNode *cur);
561 XMLPUBFUN xmlNode *xmlXPathNextAttribute(xmlXPathParserContext *ctxt,
562 xmlNode *cur);
563 XMLPUBFUN xmlNode *xmlXPathNextPreceding(xmlXPathParserContext *ctxt,
564 xmlNode *cur);
565 XMLPUBFUN xmlNode *xmlXPathNextAncestor(xmlXPathParserContext *ctxt,
566 xmlNode *cur);
567 XMLPUBFUN xmlNode *xmlXPathNextPrecedingSibling(xmlXPathParserContext *ctxt,
568 xmlNode *cur);
569 /*
570 * The official core of XPath functions.
571 */
572 XMLPUBFUN void xmlXPathLastFunction(xmlXPathParserContext *ctxt, int nargs);
573 XMLPUBFUN void xmlXPathPositionFunction(xmlXPathParserContext *ctxt, int nargs);
574 XMLPUBFUN void xmlXPathCountFunction(xmlXPathParserContext *ctxt, int nargs);
575 XMLPUBFUN void xmlXPathIdFunction(xmlXPathParserContext *ctxt, int nargs);
576 XMLPUBFUN void xmlXPathLocalNameFunction(xmlXPathParserContext *ctxt, int nargs);
577 XMLPUBFUN void xmlXPathNamespaceURIFunction(xmlXPathParserContext *ctxt, int nargs);
578 XMLPUBFUN void xmlXPathStringFunction(xmlXPathParserContext *ctxt, int nargs);
579 XMLPUBFUN void xmlXPathStringLengthFunction(xmlXPathParserContext *ctxt, int nargs);
580 XMLPUBFUN void xmlXPathConcatFunction(xmlXPathParserContext *ctxt, int nargs);
581 XMLPUBFUN void xmlXPathContainsFunction(xmlXPathParserContext *ctxt, int nargs);
582 XMLPUBFUN void xmlXPathStartsWithFunction(xmlXPathParserContext *ctxt, int nargs);
583 XMLPUBFUN void xmlXPathSubstringFunction(xmlXPathParserContext *ctxt, int nargs);
584 XMLPUBFUN void xmlXPathSubstringBeforeFunction(xmlXPathParserContext *ctxt, int nargs);
585 XMLPUBFUN void xmlXPathSubstringAfterFunction(xmlXPathParserContext *ctxt, int nargs);
586 XMLPUBFUN void xmlXPathNormalizeFunction(xmlXPathParserContext *ctxt, int nargs);
587 XMLPUBFUN void xmlXPathTranslateFunction(xmlXPathParserContext *ctxt, int nargs);
588 XMLPUBFUN void xmlXPathNotFunction(xmlXPathParserContext *ctxt, int nargs);
589 XMLPUBFUN void xmlXPathTrueFunction(xmlXPathParserContext *ctxt, int nargs);
590 XMLPUBFUN void xmlXPathFalseFunction(xmlXPathParserContext *ctxt, int nargs);
591 XMLPUBFUN void xmlXPathLangFunction(xmlXPathParserContext *ctxt, int nargs);
592 XMLPUBFUN void xmlXPathNumberFunction(xmlXPathParserContext *ctxt, int nargs);
593 XMLPUBFUN void xmlXPathSumFunction(xmlXPathParserContext *ctxt, int nargs);
594 XMLPUBFUN void xmlXPathFloorFunction(xmlXPathParserContext *ctxt, int nargs);
595 XMLPUBFUN void xmlXPathCeilingFunction(xmlXPathParserContext *ctxt, int nargs);
596 XMLPUBFUN void xmlXPathRoundFunction(xmlXPathParserContext *ctxt, int nargs);
597 XMLPUBFUN void xmlXPathBooleanFunction(xmlXPathParserContext *ctxt, int nargs);
598
599 /**
600 * Really internal functions
601 */
602 XMLPUBFUN void xmlXPathNodeSetFreeNs(xmlNs *ns);
603
604 #ifdef __cplusplus
605 }
606 #endif
607
608 #endif /* LIBXML_XPATH_ENABLED */
609 #endif /* ! __XML_XPATH_INTERNALS_H__ */