epoc32/include/stdapis/libxml2/libxml2_xpathinternals.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/libxml2/libxml2_xpathinternals.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,642 @@
     1.4 +/*
     1.5 + * Summary: internal interfaces for XML Path Language implementation
     1.6 + * Description: internal interfaces for XML Path Language implementation
     1.7 + *              used to build new modules on top of XPath like XPointer and
     1.8 + *              XSLT
     1.9 + *
    1.10 + * Copy: See Copyright for the status of this software.
    1.11 + *
    1.12 + * Author: Daniel Veillard
    1.13 + * Portion Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. 
    1.14 + */
    1.15 +
    1.16 +/** @file
    1.17 +@publishedAll
    1.18 +@released
    1.19 +*/
    1.20 +
    1.21 +#ifndef XML_XPATH_INTERNALS_H
    1.22 +#define XML_XPATH_INTERNALS_H
    1.23 +
    1.24 +#include <stdapis/libxml2/libxml2_xpath.h>
    1.25 +
    1.26 +#ifdef __cplusplus
    1.27 +extern "C" {
    1.28 +#endif
    1.29 +
    1.30 +
    1.31 +/************************************************************************
    1.32 + *                                                                      *
    1.33 + *          Helpers                                                     *
    1.34 + *                                                                      *
    1.35 + ************************************************************************/
    1.36 +
    1.37 +/*
    1.38 + * Many of these macros may later turn into functions. They
    1.39 + * shouldn't be used in #ifdef's preprocessor instructions.
    1.40 + */
    1.41 +/**
    1.42 + * xmlXPathSetError:
    1.43 + * @param ctxt an XPath parser context
    1.44 + * @param err an xmlXPathError code
    1.45 + *
    1.46 + * Raises an error.
    1.47 + */
    1.48 +#define xmlXPathSetError(ctxt, err)                 \
    1.49 +    { xmlXPatherror((ctxt), __FILE__, __LINE__, (err));         \
    1.50 +      (ctxt)->error = (err); }
    1.51 +
    1.52 +/**
    1.53 + * xmlXPathSetArityError:
    1.54 + * @param ctxt an XPath parser context
    1.55 + *
    1.56 + * Raises an XPATH_INVALID_ARITY error.
    1.57 + */
    1.58 +#define xmlXPathSetArityError(ctxt)                 \
    1.59 +    xmlXPathSetError((ctxt), XPATH_INVALID_ARITY)
    1.60 +
    1.61 +/**
    1.62 + * xmlXPathSetTypeError:
    1.63 + * @param ctxt an XPath parser context
    1.64 + *
    1.65 + * Raises an XPATH_INVALID_TYPE error.
    1.66 + */
    1.67 +#define xmlXPathSetTypeError(ctxt)                  \
    1.68 +    xmlXPathSetError((ctxt), XPATH_INVALID_TYPE)
    1.69 +
    1.70 +/**
    1.71 + * xmlXPathGetError:
    1.72 + * @param ctxt an XPath parser context
    1.73 + *
    1.74 + * Get the error code of an XPath context.
    1.75 + *
    1.76 + * Returns the context error.
    1.77 + */
    1.78 +#define xmlXPathGetError(ctxt)    ((ctxt)->error)
    1.79 +
    1.80 +/**
    1.81 + * xmlXPathCheckError:
    1.82 + * @param ctxt an XPath parser context
    1.83 + *
    1.84 + * Check if an XPath error was raised.
    1.85 + *
    1.86 + * Returns true if an error has been raised, false otherwise.
    1.87 + */
    1.88 +#define xmlXPathCheckError(ctxt)  ((ctxt)->error != XPATH_EXPRESSION_OK)
    1.89 +
    1.90 +/**
    1.91 + * xmlXPathGetDocument:
    1.92 + * @param ctxt an XPath parser context
    1.93 + *
    1.94 + * Get the document of an XPath context.
    1.95 + *
    1.96 + * Returns the context document.
    1.97 + */
    1.98 +#define xmlXPathGetDocument(ctxt)   ((ctxt)->context->doc)
    1.99 +
   1.100 +/**
   1.101 + * xmlXPathGetContextNode:
   1.102 + * @param ctxt an XPath parser context
   1.103 + *
   1.104 + * Get the context node of an XPath context.
   1.105 + *
   1.106 + * Returns the context node.
   1.107 + */
   1.108 +#define xmlXPathGetContextNode(ctxt)    ((ctxt)->context->node)
   1.109 +
   1.110 +XMLPUBFUN int XMLCALL
   1.111 +            xmlXPathPopBoolean  (xmlXPathParserContextPtr ctxt);
   1.112 +XMLPUBFUN double XMLCALL
   1.113 +            xmlXPathPopNumber   (xmlXPathParserContextPtr ctxt);
   1.114 +XMLPUBFUN xmlChar * XMLCALL
   1.115 +            xmlXPathPopString   (xmlXPathParserContextPtr ctxt);
   1.116 +XMLPUBFUN xmlNodeSetPtr XMLCALL
   1.117 +            xmlXPathPopNodeSet  (xmlXPathParserContextPtr ctxt);
   1.118 +XMLPUBFUN void * XMLCALL
   1.119 +            xmlXPathPopExternal (xmlXPathParserContextPtr ctxt);
   1.120 +
   1.121 +/**
   1.122 + * xmlXPathReturnBoolean:
   1.123 + * @param ctxt an XPath parser context
   1.124 + * @param val a boolean
   1.125 + *
   1.126 + * Pushes the boolean val on the context stack.
   1.127 + */
   1.128 +#define xmlXPathReturnBoolean(ctxt, val)                \
   1.129 +    valuePush((ctxt), xmlXPathNewBoolean(val))
   1.130 +
   1.131 +/**
   1.132 + * xmlXPathReturnTrue:
   1.133 + * @param ctxt an XPath parser context
   1.134 + *
   1.135 + * Pushes true on the context stack.
   1.136 + */
   1.137 +#define xmlXPathReturnTrue(ctxt)   xmlXPathReturnBoolean((ctxt), 1)
   1.138 +
   1.139 +/**
   1.140 + * xmlXPathReturnFalse:
   1.141 + * @param ctxt an XPath parser context
   1.142 + *
   1.143 + * Pushes false on the context stack.
   1.144 + */
   1.145 +#define xmlXPathReturnFalse(ctxt)  xmlXPathReturnBoolean((ctxt), 0)
   1.146 +
   1.147 +/**
   1.148 + * xmlXPathReturnNumber:
   1.149 + * @param ctxt an XPath parser context
   1.150 + * @param val a double
   1.151 + *
   1.152 + * Pushes the double val on the context stack.
   1.153 + */
   1.154 +#define xmlXPathReturnNumber(ctxt, val)                 \
   1.155 +    valuePush((ctxt), xmlXPathNewFloat(val))
   1.156 +
   1.157 +/**
   1.158 + * xmlXPathReturnString:
   1.159 + * @param ctxt an XPath parser context
   1.160 + * @param str a string
   1.161 + *
   1.162 + * Pushes the string str on the context stack.
   1.163 + */
   1.164 +#define xmlXPathReturnString(ctxt, str)                 \
   1.165 +    valuePush((ctxt), xmlXPathWrapString(str))
   1.166 +
   1.167 +/**
   1.168 + * xmlXPathReturnEmptyString:
   1.169 + * @param ctxt an XPath parser context
   1.170 + *
   1.171 + * Pushes an empty string on the stack.
   1.172 + */
   1.173 +#define xmlXPathReturnEmptyString(ctxt)                 \
   1.174 +    valuePush((ctxt), xmlXPathNewCString(""))
   1.175 +
   1.176 +/**
   1.177 + * xmlXPathReturnNodeSet:
   1.178 + * @param ctxt an XPath parser context
   1.179 + * @param ns a node-set
   1.180 + *
   1.181 + * Pushes the node-set ns on the context stack.
   1.182 + */
   1.183 +#define xmlXPathReturnNodeSet(ctxt, ns)                 \
   1.184 +    valuePush((ctxt), xmlXPathWrapNodeSet(ns))
   1.185 +
   1.186 +/**
   1.187 + * xmlXPathReturnEmptyNodeSet:
   1.188 + * @param ctxt an XPath parser context
   1.189 + *
   1.190 + * Pushes an empty node-set on the context stack.
   1.191 + */
   1.192 +#define xmlXPathReturnEmptyNodeSet(ctxt)                \
   1.193 +    valuePush((ctxt), xmlXPathNewNodeSet(NULL))
   1.194 +
   1.195 +/**
   1.196 + * xmlXPathReturnExternal:
   1.197 + * @param ctxt an XPath parser context
   1.198 + * @param val user data
   1.199 + *
   1.200 + * Pushes user data on the context stack.
   1.201 + */
   1.202 +#define xmlXPathReturnExternal(ctxt, val)               \
   1.203 +    valuePush((ctxt), xmlXPathWrapExternal(val))
   1.204 +
   1.205 +/**
   1.206 + * xmlXPathStackIsNodeSet:
   1.207 + * @param ctxt an XPath parser context
   1.208 + *
   1.209 + * Check if the current value on the XPath stack is a node set or
   1.210 + * an XSLT value tree.
   1.211 + *
   1.212 + * Returns true if the current object on the stack is a node-set.
   1.213 + */
   1.214 +#define xmlXPathStackIsNodeSet(ctxt)                    \
   1.215 +    (((ctxt)->value != NULL)                        \
   1.216 +     && (((ctxt)->value->type == XPATH_NODESET)             \
   1.217 +         || ((ctxt)->value->type == XPATH_XSLT_TREE)))
   1.218 +
   1.219 +/**
   1.220 + * xmlXPathStackIsExternal:
   1.221 + * @param ctxt an XPath parser context
   1.222 + *
   1.223 + * Checks if the current value on the XPath stack is an external
   1.224 + * object.
   1.225 + *
   1.226 + * Returns true if the current object on the stack is an external
   1.227 + * object.
   1.228 + */
   1.229 +#define xmlXPathStackIsExternal(ctxt)                   \
   1.230 +    ((ctxt->value != NULL) && (ctxt->value->type == XPATH_USERS))
   1.231 +
   1.232 +/**
   1.233 + * xmlXPathEmptyNodeSet:
   1.234 + * @param ns a node-set
   1.235 + *
   1.236 + * Empties a node-set.
   1.237 + */
   1.238 +#define xmlXPathEmptyNodeSet(ns)                    \
   1.239 +    { while ((ns)->nodeNr > 0) (ns)->nodeTab[(ns)->nodeNr--] = NULL; }
   1.240 +
   1.241 +/**
   1.242 + * CHECK_ERROR:
   1.243 + *
   1.244 + * Macro to return from the function if an XPath error was detected.
   1.245 + */
   1.246 +#define CHECK_ERROR                         \
   1.247 +    if (ctxt->error != XPATH_EXPRESSION_OK) return
   1.248 +
   1.249 +/**
   1.250 + * CHECK_ERROR0:
   1.251 + *
   1.252 + * Macro to return 0 from the function if an XPath error was detected.
   1.253 + */
   1.254 +#define CHECK_ERROR0                            \
   1.255 +    if (ctxt->error != XPATH_EXPRESSION_OK) return(0)
   1.256 +
   1.257 +/**
   1.258 + * XP_ERROR:
   1.259 + * @param X the error code
   1.260 + *
   1.261 + * Macro to raise an XPath error and return.
   1.262 + */
   1.263 +#define XP_ERROR(X)                         \
   1.264 +    { xmlXPathErr(ctxt, X); return; }
   1.265 +
   1.266 +/**
   1.267 + * XP_ERROR0:
   1.268 + * @param X the error code
   1.269 + *
   1.270 + * Macro to raise an XPath error and return 0.
   1.271 + */
   1.272 +#define XP_ERROR0(X)                            \
   1.273 +    { xmlXPathErr(ctxt, X); return(0); }
   1.274 +
   1.275 +/**
   1.276 + * CHECK_TYPE:
   1.277 + * @param typeval the XPath type
   1.278 + *
   1.279 + * Macro to check that the value on top of the XPath stack is of a given
   1.280 + * type.
   1.281 + */
   1.282 +#define CHECK_TYPE(typeval)                     \
   1.283 +    if ((ctxt->value == NULL) || (ctxt->value->type != typeval))    \
   1.284 +        XP_ERROR(XPATH_INVALID_TYPE)
   1.285 +
   1.286 +/**
   1.287 + * CHECK_TYPE0:
   1.288 + * @param typeval the XPath type
   1.289 + *
   1.290 + * Macro to check that the value on top of the XPath stack is of a given
   1.291 + * type. Return(0) in case of failure
   1.292 + */
   1.293 +#define CHECK_TYPE0(typeval)                        \
   1.294 +    if ((ctxt->value == NULL) || (ctxt->value->type != typeval))    \
   1.295 +        XP_ERROR0(XPATH_INVALID_TYPE)
   1.296 +
   1.297 +/**
   1.298 + * CHECK_ARITY:
   1.299 + * @param x the number of expected args
   1.300 + *
   1.301 + * Macro to check that the number of args passed to an XPath function matches.
   1.302 + */
   1.303 +#define CHECK_ARITY(x)                          \
   1.304 +    if (nargs != (x))                           \
   1.305 +        XP_ERROR(XPATH_INVALID_ARITY);
   1.306 +
   1.307 +/**
   1.308 + * CAST_TO_STRING:
   1.309 + *
   1.310 + * Macro to try to cast the value on the top of the XPath stack to a string.
   1.311 + */
   1.312 +#define CAST_TO_STRING                          \
   1.313 +    if ((ctxt->value != NULL) && (ctxt->value->type != XPATH_STRING))   \
   1.314 +        xmlXPathStringFunction(ctxt, 1);
   1.315 +
   1.316 +/**
   1.317 + * CAST_TO_NUMBER:
   1.318 + *
   1.319 + * Macro to try to cast the value on the top of the XPath stack to a number.
   1.320 + */
   1.321 +#define CAST_TO_NUMBER                          \
   1.322 +    if ((ctxt->value != NULL) && (ctxt->value->type != XPATH_NUMBER))   \
   1.323 +        xmlXPathNumberFunction(ctxt, 1);
   1.324 +
   1.325 +/**
   1.326 + * CAST_TO_BOOLEAN:
   1.327 + *
   1.328 + * Macro to try to cast the value on the top of the XPath stack to a boolean.
   1.329 + */
   1.330 +#define CAST_TO_BOOLEAN                         \
   1.331 +    if ((ctxt->value != NULL) && (ctxt->value->type != XPATH_BOOLEAN))  \
   1.332 +        xmlXPathBooleanFunction(ctxt, 1);
   1.333 +
   1.334 +/*
   1.335 + * Variable Lookup forwarding.
   1.336 + */
   1.337 +/**
   1.338 + * xmlXPathVariableLookupFunc:
   1.339 + * @param ctxt an XPath context
   1.340 + * @param name name of the variable
   1.341 + * @param ns_uri the namespace name hosting this variable
   1.342 + *
   1.343 + * Prototype for callbacks used to plug variable lookup in the XPath
   1.344 + * engine.
   1.345 + *
   1.346 + * Returns the XPath object value or NULL if not found.
   1.347 + */
   1.348 +typedef xmlXPathObjectPtr (*xmlXPathVariableLookupFunc) (void *ctxt,
   1.349 +                     const xmlChar *name,
   1.350 +                     const xmlChar *ns_uri);
   1.351 +
   1.352 +XMLPUBFUN void XMLCALL
   1.353 +    xmlXPathRegisterVariableLookup  (xmlXPathContextPtr ctxt,
   1.354 +                     xmlXPathVariableLookupFunc f,
   1.355 +                     void *data);
   1.356 +
   1.357 +/*
   1.358 + * Function Lookup forwarding.
   1.359 + */
   1.360 +/**
   1.361 + * xmlXPathFuncLookupFunc:
   1.362 + * @param ctxt an XPath context
   1.363 + * @param name name of the function
   1.364 + * @param ns_uri the namespace name hosting this function
   1.365 + *
   1.366 + * Prototype for callbacks used to plug function lookup in the XPath
   1.367 + * engine.
   1.368 + *
   1.369 + * Returns the XPath function or NULL if not found.
   1.370 + */
   1.371 +typedef xmlXPathFunction (*xmlXPathFuncLookupFunc) (void *ctxt,
   1.372 +                     const xmlChar *name,
   1.373 +                     const xmlChar *ns_uri);
   1.374 +
   1.375 +XMLPUBFUN void XMLCALL
   1.376 +        xmlXPathRegisterFuncLookup  (xmlXPathContextPtr ctxt,
   1.377 +                     xmlXPathFuncLookupFunc f,
   1.378 +                     void *funcCtxt);
   1.379 +
   1.380 +/*
   1.381 + * Error reporting.
   1.382 + */
   1.383 +
   1.384 +
   1.385 +// DONE: Replaced with macro
   1.386 +#define xmlXPatherror(ctxt,file,line,no)  xmlXPathErr(ctxt, no)
   1.387 +//XMLPUBFUN void XMLCALL
   1.388 +//      xmlXPatherror   (xmlXPathParserContextPtr ctxt,
   1.389 +//               const char *file,
   1.390 +//               int line,
   1.391 +//               int no);
   1.392 +
   1.393 +XMLPUBFUN void XMLCALL
   1.394 +        xmlXPathErr (xmlXPathParserContextPtr ctxt, int error);
   1.395 +
   1.396 +#ifdef LIBXML_DEBUG_ENABLED
   1.397 +XMLPUBFUN void XMLCALL
   1.398 +        xmlXPathDebugDumpObject (FILE *output,
   1.399 +                     xmlXPathObjectPtr cur,
   1.400 +                     int depth);
   1.401 +XMLPUBFUN void XMLCALL
   1.402 +        xmlXPathDebugDumpCompExpr(FILE *output,
   1.403 +                     xmlXPathCompExprPtr comp,
   1.404 +                     int depth);
   1.405 +#endif
   1.406 +/**
   1.407 + * NodeSet handling.
   1.408 + */
   1.409 +XMLPUBFUN int XMLCALL
   1.410 +        xmlXPathNodeSetContains     (xmlNodeSetPtr cur,
   1.411 +                         xmlNodePtr val);
   1.412 +XMLPUBFUN xmlNodeSetPtr XMLCALL
   1.413 +        xmlXPathDifference      (xmlNodeSetPtr nodes1,
   1.414 +                         xmlNodeSetPtr nodes2);
   1.415 +XMLPUBFUN xmlNodeSetPtr XMLCALL
   1.416 +        xmlXPathIntersection        (xmlNodeSetPtr nodes1,
   1.417 +                         xmlNodeSetPtr nodes2);
   1.418 +
   1.419 +XMLPUBFUN xmlNodeSetPtr XMLCALL
   1.420 +        xmlXPathDistinctSorted      (xmlNodeSetPtr nodes);
   1.421 +XMLPUBFUN xmlNodeSetPtr XMLCALL
   1.422 +        xmlXPathDistinct        (xmlNodeSetPtr nodes);
   1.423 +
   1.424 +XMLPUBFUN int XMLCALL
   1.425 +        xmlXPathHasSameNodes        (xmlNodeSetPtr nodes1,
   1.426 +                         xmlNodeSetPtr nodes2);
   1.427 +
   1.428 +XMLPUBFUN xmlNodeSetPtr XMLCALL
   1.429 +        xmlXPathNodeLeadingSorted   (xmlNodeSetPtr nodes,
   1.430 +                         xmlNodePtr node);
   1.431 +XMLPUBFUN xmlNodeSetPtr XMLCALL
   1.432 +        xmlXPathLeadingSorted       (xmlNodeSetPtr nodes1,
   1.433 +                         xmlNodeSetPtr nodes2);
   1.434 +XMLPUBFUN xmlNodeSetPtr XMLCALL
   1.435 +        xmlXPathNodeLeading     (xmlNodeSetPtr nodes,
   1.436 +                         xmlNodePtr node);
   1.437 +XMLPUBFUN xmlNodeSetPtr XMLCALL
   1.438 +        xmlXPathLeading         (xmlNodeSetPtr nodes1,
   1.439 +                         xmlNodeSetPtr nodes2);
   1.440 +
   1.441 +XMLPUBFUN xmlNodeSetPtr XMLCALL
   1.442 +        xmlXPathNodeTrailingSorted  (xmlNodeSetPtr nodes,
   1.443 +                         xmlNodePtr node);
   1.444 +XMLPUBFUN xmlNodeSetPtr XMLCALL
   1.445 +        xmlXPathTrailingSorted      (xmlNodeSetPtr nodes1,
   1.446 +                         xmlNodeSetPtr nodes2);
   1.447 +XMLPUBFUN xmlNodeSetPtr XMLCALL
   1.448 +        xmlXPathNodeTrailing        (xmlNodeSetPtr nodes,
   1.449 +                         xmlNodePtr node);
   1.450 +XMLPUBFUN xmlNodeSetPtr XMLCALL
   1.451 +        xmlXPathTrailing        (xmlNodeSetPtr nodes1,
   1.452 +                         xmlNodeSetPtr nodes2);
   1.453 +
   1.454 +
   1.455 +/**
   1.456 + * Extending a context.
   1.457 + */
   1.458 +
   1.459 +XMLPUBFUN int XMLCALL
   1.460 +        xmlXPathRegisterNs      (xmlXPathContextPtr ctxt,
   1.461 +                         const xmlChar *prefix,
   1.462 +                         const xmlChar *ns_uri);
   1.463 +XMLPUBFUN const xmlChar * XMLCALL
   1.464 +        xmlXPathNsLookup        (xmlXPathContextPtr ctxt,
   1.465 +                         const xmlChar *prefix);
   1.466 +XMLPUBFUN void XMLCALL
   1.467 +        xmlXPathRegisteredNsCleanup (xmlXPathContextPtr ctxt);
   1.468 +
   1.469 +XMLPUBFUN int XMLCALL
   1.470 +        xmlXPathRegisterFunc        (xmlXPathContextPtr ctxt,
   1.471 +                         const xmlChar *name,
   1.472 +                         xmlXPathFunction f);
   1.473 +XMLPUBFUN int XMLCALL
   1.474 +        xmlXPathRegisterFuncNS      (xmlXPathContextPtr ctxt,
   1.475 +                         const xmlChar *name,
   1.476 +                         const xmlChar *ns_uri,
   1.477 +                         xmlXPathFunction f);
   1.478 +XMLPUBFUN int XMLCALL
   1.479 +        xmlXPathRegisterVariable    (xmlXPathContextPtr ctxt,
   1.480 +                         const xmlChar *name,
   1.481 +                         xmlXPathObjectPtr value);
   1.482 +XMLPUBFUN int XMLCALL
   1.483 +        xmlXPathRegisterVariableNS  (xmlXPathContextPtr ctxt,
   1.484 +                         const xmlChar *name,
   1.485 +                         const xmlChar *ns_uri,
   1.486 +                         xmlXPathObjectPtr value);
   1.487 +XMLPUBFUN xmlXPathFunction XMLCALL
   1.488 +        xmlXPathFunctionLookup      (xmlXPathContextPtr ctxt,
   1.489 +                         const xmlChar *name);
   1.490 +XMLPUBFUN xmlXPathFunction XMLCALL
   1.491 +        xmlXPathFunctionLookupNS    (xmlXPathContextPtr ctxt,
   1.492 +                         const xmlChar *name,
   1.493 +                         const xmlChar *ns_uri);
   1.494 +XMLPUBFUN void XMLCALL
   1.495 +        xmlXPathRegisteredFuncsCleanup  (xmlXPathContextPtr ctxt);
   1.496 +XMLPUBFUN xmlXPathObjectPtr XMLCALL
   1.497 +        xmlXPathVariableLookup      (xmlXPathContextPtr ctxt,
   1.498 +                         const xmlChar *name);
   1.499 +XMLPUBFUN xmlXPathObjectPtr XMLCALL
   1.500 +        xmlXPathVariableLookupNS    (xmlXPathContextPtr ctxt,
   1.501 +                         const xmlChar *name,
   1.502 +                         const xmlChar *ns_uri);
   1.503 +XMLPUBFUN void XMLCALL
   1.504 +        xmlXPathRegisteredVariablesCleanup(xmlXPathContextPtr ctxt);
   1.505 +
   1.506 +/**
   1.507 + * Utilities to extend XPath.
   1.508 + */
   1.509 +XMLPUBFUN xmlXPathParserContextPtr XMLCALL
   1.510 +        xmlXPathNewParserContext (const xmlChar *str, xmlXPathContextPtr ctxt);
   1.511 +XMLPUBFUN void XMLCALL
   1.512 +        xmlXPathFreeParserContext(xmlXPathParserContextPtr ctxt);
   1.513 +
   1.514 +
   1.515 +XMLPUBFUN xmlXPathObjectPtr XMLCALL
   1.516 +        valuePop  (xmlXPathParserContextPtr ctxt);
   1.517 +XMLPUBFUN int XMLCALL
   1.518 +        valuePush (xmlXPathParserContextPtr ctxt, xmlXPathObjectPtr value);
   1.519 +XMLPUBFUN xmlXPathObjectPtr XMLCALL
   1.520 +        xmlXPathNewString   (const xmlChar *val);
   1.521 +XMLPUBFUN xmlXPathObjectPtr XMLCALL
   1.522 +        xmlXPathNewCString  (const char *val);
   1.523 +XMLPUBFUN xmlXPathObjectPtr XMLCALL
   1.524 +        xmlXPathWrapString  (xmlChar *val);
   1.525 +XMLPUBFUN xmlXPathObjectPtr XMLCALL
   1.526 +        xmlXPathWrapCString (char * val);
   1.527 +XMLPUBFUN xmlXPathObjectPtr XMLCALL
   1.528 +        xmlXPathNewFloat    (double val);
   1.529 +XMLPUBFUN xmlXPathObjectPtr XMLCALL
   1.530 +        xmlXPathNewBoolean  (int val);
   1.531 +XMLPUBFUN xmlXPathObjectPtr XMLCALL
   1.532 +        xmlXPathNewNodeSet  (xmlNodePtr val);
   1.533 +XMLPUBFUN xmlXPathObjectPtr XMLCALL
   1.534 +        xmlXPathNewValueTree(xmlNodePtr val);
   1.535 +XMLPUBFUN void XMLCALL
   1.536 +        xmlXPathNodeSetAdd  (xmlNodeSetPtr cur, xmlNodePtr val);
   1.537 +XMLPUBFUN void XMLCALL
   1.538 +        xmlXPathNodeSetAddUnique(xmlNodeSetPtr cur, xmlNodePtr val);
   1.539 +XMLPUBFUN void XMLCALL
   1.540 +        xmlXPathNodeSetAddNs(xmlNodeSetPtr cur, xmlNodePtr node, xmlNsPtr ns);
   1.541 +XMLPUBFUN void XMLCALL
   1.542 +        xmlXPathNodeSetSort (xmlNodeSetPtr set);
   1.543 +XMLPUBFUN void XMLCALL
   1.544 +        xmlXPathRoot        (xmlXPathParserContextPtr ctxt);
   1.545 +XMLPUBFUN void XMLCALL
   1.546 +        xmlXPathEvalExpr    (xmlXPathParserContextPtr ctxt);
   1.547 +XMLPUBFUN xmlChar * XMLCALL
   1.548 +        xmlXPathParseName   (xmlXPathParserContextPtr ctxt);
   1.549 +XMLPUBFUN xmlChar * XMLCALL
   1.550 +        xmlXPathParseNCName (xmlXPathParserContextPtr ctxt);
   1.551 +
   1.552 +/*
   1.553 + * Existing functions.
   1.554 + */
   1.555 +XMLPUBFUN double XMLCALL
   1.556 +        xmlXPathStringEvalNumber (const xmlChar *str);
   1.557 +XMLPUBFUN int XMLCALL
   1.558 +        xmlXPathEvaluatePredicateResult (xmlXPathParserContextPtr ctxt, xmlXPathObjectPtr res);
   1.559 +XMLPUBFUN void XMLCALL
   1.560 +        xmlXPathRegisterAllFunctions(xmlXPathContextPtr ctxt);
   1.561 +XMLPUBFUN xmlNodeSetPtr XMLCALL
   1.562 +        xmlXPathNodeSetMerge        (xmlNodeSetPtr val1, xmlNodeSetPtr val2);
   1.563 +XMLPUBFUN void XMLCALL
   1.564 +        xmlXPathNodeSetDel          (xmlNodeSetPtr cur, xmlNodePtr val);
   1.565 +XMLPUBFUN void XMLCALL
   1.566 +        xmlXPathNodeSetRemove       (xmlNodeSetPtr cur, int val);
   1.567 +XMLPUBFUN xmlXPathObjectPtr XMLCALL
   1.568 +        xmlXPathNewNodeSetList      (xmlNodeSetPtr val);
   1.569 +XMLPUBFUN xmlXPathObjectPtr XMLCALL
   1.570 +        xmlXPathWrapNodeSet         (xmlNodeSetPtr val);
   1.571 +XMLPUBFUN xmlXPathObjectPtr XMLCALL
   1.572 +        xmlXPathWrapExternal        (void *val);
   1.573 +
   1.574 +XMLPUBFUN int  XMLCALL xmlXPathEqualValues(xmlXPathParserContextPtr ctxt);
   1.575 +XMLPUBFUN int  XMLCALL xmlXPathNotEqualValues(xmlXPathParserContextPtr ctxt);
   1.576 +XMLPUBFUN int  XMLCALL xmlXPathCompareValues(xmlXPathParserContextPtr ctxt, int inf, int strict);
   1.577 +XMLPUBFUN void XMLCALL xmlXPathValueFlipSign(xmlXPathParserContextPtr ctxt);
   1.578 +XMLPUBFUN void XMLCALL xmlXPathAddValues(xmlXPathParserContextPtr ctxt);
   1.579 +XMLPUBFUN void XMLCALL xmlXPathSubValues(xmlXPathParserContextPtr ctxt);
   1.580 +XMLPUBFUN void XMLCALL xmlXPathMultValues(xmlXPathParserContextPtr ctxt);
   1.581 +XMLPUBFUN void XMLCALL xmlXPathDivValues(xmlXPathParserContextPtr ctxt);
   1.582 +XMLPUBFUN void XMLCALL xmlXPathModValues(xmlXPathParserContextPtr ctxt);
   1.583 +
   1.584 +XMLPUBFUN int XMLCALL xmlXPathIsNodeType(const xmlChar *name);
   1.585 +
   1.586 +/*
   1.587 + * Some of the axis navigation routines.
   1.588 + */
   1.589 +XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextSelf(xmlXPathParserContextPtr ctxt, xmlNodePtr cur);
   1.590 +XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextChild(xmlXPathParserContextPtr ctxt, xmlNodePtr cur);
   1.591 +XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextDescendant(xmlXPathParserContextPtr ctxt, xmlNodePtr cur);
   1.592 +XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextDescendantOrSelf(xmlXPathParserContextPtr ctxt, xmlNodePtr cur);
   1.593 +XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextParent(xmlXPathParserContextPtr ctxt, xmlNodePtr cur);
   1.594 +XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextAncestorOrSelf(xmlXPathParserContextPtr ctxt, xmlNodePtr cur);
   1.595 +XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextFollowingSibling(xmlXPathParserContextPtr ctxt, xmlNodePtr cur);
   1.596 +XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextFollowing(xmlXPathParserContextPtr ctxt, xmlNodePtr cur);
   1.597 +XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextNamespace(xmlXPathParserContextPtr ctxt, xmlNodePtr cur);
   1.598 +XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextAttribute(xmlXPathParserContextPtr ctxt, xmlNodePtr cur);
   1.599 +XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextPreceding(xmlXPathParserContextPtr ctxt, xmlNodePtr cur);
   1.600 +XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextAncestor(xmlXPathParserContextPtr ctxt, xmlNodePtr cur);
   1.601 +XMLPUBFUN xmlNodePtr XMLCALL xmlXPathNextPrecedingSibling(xmlXPathParserContextPtr ctxt, xmlNodePtr cur);
   1.602 +/*
   1.603 + * The official core of XPath functions.
   1.604 + */
   1.605 +XMLPUBFUN void XMLCALL xmlXPathLastFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.606 +XMLPUBFUN void XMLCALL xmlXPathPositionFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.607 +XMLPUBFUN void XMLCALL xmlXPathCountFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.608 +XMLPUBFUN void XMLCALL xmlXPathIdFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.609 +XMLPUBFUN void XMLCALL xmlXPathLocalNameFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.610 +XMLPUBFUN void XMLCALL xmlXPathNamespaceURIFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.611 +XMLPUBFUN void XMLCALL xmlXPathStringFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.612 +XMLPUBFUN void XMLCALL xmlXPathStringLengthFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.613 +XMLPUBFUN void XMLCALL xmlXPathConcatFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.614 +XMLPUBFUN void XMLCALL xmlXPathContainsFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.615 +XMLPUBFUN void XMLCALL xmlXPathStartsWithFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.616 +XMLPUBFUN void XMLCALL xmlXPathSubstringFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.617 +XMLPUBFUN void XMLCALL xmlXPathSubstringBeforeFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.618 +XMLPUBFUN void XMLCALL xmlXPathSubstringAfterFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.619 +XMLPUBFUN void XMLCALL xmlXPathNormalizeFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.620 +XMLPUBFUN void XMLCALL xmlXPathTranslateFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.621 +XMLPUBFUN void XMLCALL xmlXPathNotFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.622 +XMLPUBFUN void XMLCALL xmlXPathTrueFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.623 +XMLPUBFUN void XMLCALL xmlXPathFalseFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.624 +XMLPUBFUN void XMLCALL xmlXPathLangFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.625 +XMLPUBFUN void XMLCALL xmlXPathNumberFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.626 +XMLPUBFUN void XMLCALL xmlXPathSumFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.627 +XMLPUBFUN void XMLCALL xmlXPathFloorFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.628 +XMLPUBFUN void XMLCALL xmlXPathCeilingFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.629 +XMLPUBFUN void XMLCALL xmlXPathRoundFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.630 +XMLPUBFUN void XMLCALL xmlXPathBooleanFunction(xmlXPathParserContextPtr ctxt, int nargs);
   1.631 +
   1.632 +/**
   1.633 + * Really internal functions
   1.634 + */
   1.635 +XMLPUBFUN void XMLCALL xmlXPathNodeSetFreeNs(xmlNsPtr ns);
   1.636 +
   1.637 +// XMLENGINE: NEW CODE -- XForms extensions support
   1.638 +void addNodeSetsFromStackToDependencyList(xmlXPathParserContextPtr ctxt, int nargs);
   1.639 +// END NEW CODE
   1.640 +
   1.641 +#ifdef __cplusplus
   1.642 +}
   1.643 +#endif
   1.644 +#endif /* XML_XPATH_INTERNALS_H */
   1.645 +