Lines Matching refs:xmlNodePtr
151 xmlXPathCmpNodesExt(xmlNodePtr node1, xmlNodePtr node2) { in xmlXPathCmpNodesExt()
154 xmlNodePtr miscNode1 = NULL, miscNode2 = NULL; in xmlXPathCmpNodesExt()
155 xmlNodePtr cur, root; in xmlXPathCmpNodesExt()
435 #define SORT_TYPE xmlNodePtr
447 int wrap_cmp( xmlNodePtr x, xmlNodePtr y );
449 static int wrap_cmp( xmlNodePtr x, xmlNodePtr y ) in wrap_cmp()
455 static int wrap_cmp( xmlNodePtr x, xmlNodePtr y ) in wrap_cmp()
969 xmlXPathStepOpPtr op, xmlNodePtr *first);
1246 xmlXPathDebugDumpNode(FILE *output, xmlNodePtr cur, int depth) { in xmlXPathDebugDumpNode()
1270 xmlXPathDebugDumpNodeList(FILE *output, xmlNodePtr cur, int depth) { in xmlXPathDebugDumpNodeList()
1271 xmlNodePtr tmp; in xmlXPathDebugDumpNodeList()
1431 xmlXPathDebugDumpNode(output, (xmlNodePtr) cur->user, depth + 1); in xmlXPathDebugDumpObject()
1442 xmlXPathDebugDumpNode(output, (xmlNodePtr) cur->user, in xmlXPathDebugDumpObject()
1451 xmlXPathDebugDumpNode(output, (xmlNodePtr) cur->user, in xmlXPathDebugDumpObject()
1458 xmlXPathDebugDumpNode(output, (xmlNodePtr) cur->user2, in xmlXPathDebugDumpObject()
2382 xmlXPathCacheNewNodeSet(xmlXPathContextPtr ctxt, xmlNodePtr val) in xmlXPathCacheNewNodeSet()
2989 xmlFreeNodeList((xmlNodePtr) obj->user); in xmlXPathPopNodeSet()
3229 xmlNodePtr cur; in xmlXPathOrderDocElems()
3250 if (cur == (xmlNodePtr) doc) { in xmlXPathOrderDocElems()
3274 xmlXPathCmpNodes(xmlNodePtr node1, xmlNodePtr node2) { in xmlXPathCmpNodes()
3277 xmlNodePtr attrNode1 = NULL, attrNode2 = NULL; in xmlXPathCmpNodes()
3278 xmlNodePtr cur, root; in xmlXPathCmpNodes()
3420 xmlNodePtr tmp; in xmlXPathNodeSetSort()
3470 static xmlNodePtr
3471 xmlXPathNodeSetDupNs(xmlNodePtr node, xmlNsPtr ns) { in xmlXPathNodeSetDupNs()
3477 return((xmlNodePtr) ns); in xmlXPathNodeSetDupNs()
3494 return((xmlNodePtr) cur); in xmlXPathNodeSetDupNs()
3528 xmlXPathNodeSetCreate(xmlNodePtr val) { in xmlXPathNodeSetCreate()
3538 ret->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetCreate()
3539 sizeof(xmlNodePtr)); in xmlXPathNodeSetCreate()
3546 XML_NODESET_DEFAULT * (size_t) sizeof(xmlNodePtr)); in xmlXPathNodeSetCreate()
3552 xmlXPathNodeSetDupNs((xmlNodePtr) ns->next, ns); in xmlXPathNodeSetCreate()
3579 ret->nodeTab = (xmlNodePtr *) xmlMalloc(size * sizeof(xmlNodePtr)); in xmlXPathNodeSetCreateSize()
3585 memset(ret->nodeTab, 0 , size * (size_t) sizeof(xmlNodePtr)); in xmlXPathNodeSetCreateSize()
3600 xmlXPathNodeSetContains (xmlNodeSetPtr cur, xmlNodePtr val) { in xmlXPathNodeSetContains()
3638 xmlXPathNodeSetAddNs(xmlNodeSetPtr cur, xmlNodePtr node, xmlNsPtr ns) { in xmlXPathNodeSetAddNs()
3663 cur->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetAddNs()
3664 sizeof(xmlNodePtr)); in xmlXPathNodeSetAddNs()
3670 XML_NODESET_DEFAULT * (size_t) sizeof(xmlNodePtr)); in xmlXPathNodeSetAddNs()
3673 xmlNodePtr *temp; in xmlXPathNodeSetAddNs()
3679 temp = (xmlNodePtr *) xmlRealloc(cur->nodeTab, cur->nodeMax * 2 * in xmlXPathNodeSetAddNs()
3680 sizeof(xmlNodePtr)); in xmlXPathNodeSetAddNs()
3702 xmlXPathNodeSetAdd(xmlNodeSetPtr cur, xmlNodePtr val) { in xmlXPathNodeSetAdd()
3718 cur->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetAdd()
3719 sizeof(xmlNodePtr)); in xmlXPathNodeSetAdd()
3725 XML_NODESET_DEFAULT * (size_t) sizeof(xmlNodePtr)); in xmlXPathNodeSetAdd()
3728 xmlNodePtr *temp; in xmlXPathNodeSetAdd()
3734 temp = (xmlNodePtr *) xmlRealloc(cur->nodeTab, cur->nodeMax * 2 * in xmlXPathNodeSetAdd()
3735 sizeof(xmlNodePtr)); in xmlXPathNodeSetAdd()
3747 xmlXPathNodeSetDupNs((xmlNodePtr) ns->next, ns); in xmlXPathNodeSetAdd()
3764 xmlXPathNodeSetAddUnique(xmlNodeSetPtr cur, xmlNodePtr val) { in xmlXPathNodeSetAddUnique()
3772 cur->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetAddUnique()
3773 sizeof(xmlNodePtr)); in xmlXPathNodeSetAddUnique()
3779 XML_NODESET_DEFAULT * (size_t) sizeof(xmlNodePtr)); in xmlXPathNodeSetAddUnique()
3782 xmlNodePtr *temp; in xmlXPathNodeSetAddUnique()
3788 temp = (xmlNodePtr *) xmlRealloc(cur->nodeTab, cur->nodeMax * 2 * in xmlXPathNodeSetAddUnique()
3789 sizeof(xmlNodePtr)); in xmlXPathNodeSetAddUnique()
3801 xmlXPathNodeSetDupNs((xmlNodePtr) ns->next, ns); in xmlXPathNodeSetAddUnique()
3820 xmlNodePtr n1, n2; in xmlXPathNodeSetMerge()
3848 val2->nodeNr * sizeof(xmlNodePtr)); in xmlXPathNodeSetMerge()
3888 val1->nodeTab = (xmlNodePtr *) xmlMalloc(XML_NODESET_DEFAULT * in xmlXPathNodeSetMerge()
3889 sizeof(xmlNodePtr)); in xmlXPathNodeSetMerge()
3895 XML_NODESET_DEFAULT * (size_t) sizeof(xmlNodePtr)); in xmlXPathNodeSetMerge()
3898 xmlNodePtr *temp; in xmlXPathNodeSetMerge()
3904 temp = (xmlNodePtr *) xmlRealloc(val1->nodeTab, val1->nodeMax * 2 * in xmlXPathNodeSetMerge()
3905 sizeof(xmlNodePtr)); in xmlXPathNodeSetMerge()
3917 xmlXPathNodeSetDupNs((xmlNodePtr) ns->next, ns); in xmlXPathNodeSetMerge()
3952 set2->nodeNr * sizeof(xmlNodePtr)); in xmlXPathNodeSetMergeAndClear()
3957 xmlNodePtr n1, n2; in xmlXPathNodeSetMergeAndClear()
3999 set1->nodeTab = (xmlNodePtr *) xmlMalloc( in xmlXPathNodeSetMergeAndClear()
4000 XML_NODESET_DEFAULT * sizeof(xmlNodePtr)); in xmlXPathNodeSetMergeAndClear()
4006 XML_NODESET_DEFAULT * (size_t) sizeof(xmlNodePtr)); in xmlXPathNodeSetMergeAndClear()
4009 xmlNodePtr *temp; in xmlXPathNodeSetMergeAndClear()
4015 temp = (xmlNodePtr *) xmlRealloc( in xmlXPathNodeSetMergeAndClear()
4016 set1->nodeTab, set1->nodeMax * 2 * sizeof(xmlNodePtr)); in xmlXPathNodeSetMergeAndClear()
4028 xmlXPathNodeSetDupNs((xmlNodePtr) ns->next, ns); in xmlXPathNodeSetMergeAndClear()
4067 set2->nodeNr * sizeof(xmlNodePtr)); in xmlXPathNodeSetMergeAndClearNoDupls()
4072 xmlNodePtr n2; in xmlXPathNodeSetMergeAndClearNoDupls()
4087 set1->nodeTab = (xmlNodePtr *) xmlMalloc( in xmlXPathNodeSetMergeAndClearNoDupls()
4088 XML_NODESET_DEFAULT * sizeof(xmlNodePtr)); in xmlXPathNodeSetMergeAndClearNoDupls()
4094 XML_NODESET_DEFAULT * (size_t) sizeof(xmlNodePtr)); in xmlXPathNodeSetMergeAndClearNoDupls()
4097 xmlNodePtr *temp; in xmlXPathNodeSetMergeAndClearNoDupls()
4103 temp = (xmlNodePtr *) xmlRealloc( in xmlXPathNodeSetMergeAndClearNoDupls()
4104 set1->nodeTab, set1->nodeMax * 2 * sizeof(xmlNodePtr)); in xmlXPathNodeSetMergeAndClearNoDupls()
4127 xmlXPathNodeSetDel(xmlNodeSetPtr cur, xmlNodePtr val) { in xmlXPathNodeSetDel()
4213 xmlNodePtr node; in xmlXPathNodeSetClear()
4241 xmlNodePtr node; in xmlXPathNodeSetClearFromPos()
4332 xmlXPathNewNodeSet(xmlNodePtr val) { in xmlXPathNewNodeSet()
4361 xmlXPathNewValueTree(xmlNodePtr val) { in xmlXPathNewValueTree()
4469 xmlNodePtr cur; in xmlXPathDifference()
4505 xmlNodePtr cur; in xmlXPathIntersection()
4542 xmlNodePtr cur; in xmlXPathDistinctSorted()
4602 xmlNodePtr cur; in xmlXPathHasSameNodes()
4630 xmlXPathNodeLeadingSorted (xmlNodeSetPtr nodes, xmlNodePtr node) { in xmlXPathNodeLeadingSorted()
4632 xmlNodePtr cur; in xmlXPathNodeLeadingSorted()
4671 xmlXPathNodeLeading (xmlNodeSetPtr nodes, xmlNodePtr node) { in xmlXPathNodeLeading()
4735 xmlXPathNodeTrailingSorted (xmlNodeSetPtr nodes, xmlNodePtr node) { in xmlXPathNodeTrailingSorted()
4737 xmlNodePtr cur; in xmlXPathNodeTrailingSorted()
4777 xmlXPathNodeTrailing (xmlNodeSetPtr nodes, xmlNodePtr node) { in xmlXPathNodeTrailing()
5426 xmlNodePtr cur, tmp; in xmlXPathObjectCopy()
5439 xmlAddChild((xmlNodePtr) top, tmp); in xmlXPathObjectCopy()
5444 ret->nodesetval = xmlXPathNodeSetCreate((xmlNodePtr) top); in xmlXPathObjectCopy()
5489 xmlFreeNodeList((xmlNodePtr) obj->user); in xmlXPathFreeObject()
5620 xmlNodePtr node; in xmlXPathReleaseObject()
5725 xmlXPathCastNodeToString (xmlNodePtr node) { in xmlXPathCastNodeToString()
5880 xmlXPathCastNodeToNumber (xmlNodePtr node) { in xmlXPathCastNodeToNumber()
6323 xmlXPathNodeValHash(xmlNodePtr node) { in xmlXPathNodeValHash()
6326 xmlNodePtr tmp = NULL; in xmlXPathNodeValHash()
7614 typedef xmlNodePtr (*xmlXPathTraversalFunction)
7615 (xmlXPathParserContextPtr ctxt, xmlNodePtr cur);
7624 typedef xmlNodePtr (*xmlXPathTraversalFunctionExt)
7625 (xmlNodePtr cur, xmlNodePtr contextNode);
7645 xmlNodePtr
7646 xmlXPathNextSelf(xmlXPathParserContextPtr ctxt, xmlNodePtr cur) { in xmlXPathNextSelf()
7663 xmlNodePtr
7664 xmlXPathNextChild(xmlXPathParserContextPtr ctxt, xmlNodePtr cur) { in xmlXPathNextChild()
7714 static xmlNodePtr
7715 xmlXPathNextChildElement(xmlXPathParserContextPtr ctxt, xmlNodePtr cur) { in xmlXPathNextChildElement()
7792 static xmlNodePtr
7793 xmlXPathNextDescendantOrSelfElemParent(xmlNodePtr cur,
7794 xmlNodePtr contextNode)
7814 xmlNodePtr start = cur;
7868 xmlNodePtr
7869 xmlXPathNextDescendant(xmlXPathParserContextPtr ctxt, xmlNodePtr cur) { in xmlXPathNextDescendant()
7878 if (ctxt->context->node == (xmlNodePtr) ctxt->context->doc) in xmlXPathNextDescendant()
7933 xmlNodePtr
7934 xmlXPathNextDescendantOrSelf(xmlXPathParserContextPtr ctxt, xmlNodePtr cur) { in xmlXPathNextDescendantOrSelf()
7958 xmlNodePtr
7959 xmlXPathNextParent(xmlXPathParserContextPtr ctxt, xmlNodePtr cur) { in xmlXPathNextParent()
7984 return((xmlNodePtr) ctxt->context->doc); in xmlXPathNextParent()
8009 return((xmlNodePtr) ns->next); in xmlXPathNextParent()
8031 xmlNodePtr
8032 xmlXPathNextAncestor(xmlXPathParserContextPtr ctxt, xmlNodePtr cur) { in xmlXPathNextAncestor()
8057 return((xmlNodePtr) ctxt->context->doc); in xmlXPathNextAncestor()
8082 return((xmlNodePtr) ns->next); in xmlXPathNextAncestor()
8090 return((xmlNodePtr) ctxt->context->doc); in xmlXPathNextAncestor()
8091 if (cur == (xmlNodePtr) ctxt->context->doc) in xmlXPathNextAncestor()
8126 return((xmlNodePtr) ns->next); in xmlXPathNextAncestor()
8155 xmlNodePtr
8156 xmlXPathNextAncestorOrSelf(xmlXPathParserContextPtr ctxt, xmlNodePtr cur) { in xmlXPathNextAncestorOrSelf()
8174 xmlNodePtr
8175 xmlXPathNextFollowingSibling(xmlXPathParserContextPtr ctxt, xmlNodePtr cur) { in xmlXPathNextFollowingSibling()
8180 if (cur == (xmlNodePtr) ctxt->context->doc) in xmlXPathNextFollowingSibling()
8199 xmlNodePtr
8200 xmlXPathNextPrecedingSibling(xmlXPathParserContextPtr ctxt, xmlNodePtr cur) { in xmlXPathNextPrecedingSibling()
8205 if (cur == (xmlNodePtr) ctxt->context->doc) in xmlXPathNextPrecedingSibling()
8230 xmlNodePtr
8231 xmlXPathNextFollowing(xmlXPathParserContextPtr ctxt, xmlNodePtr cur) { in xmlXPathNextFollowing()
8249 if (cur == (xmlNodePtr) ctxt->context->doc) return(NULL); in xmlXPathNextFollowing()
8265 xmlXPathIsAncestor(xmlNodePtr ancestor, xmlNodePtr node) { in xmlXPathIsAncestor()
8274 if (ancestor == (xmlNodePtr) node->doc) return(1); in xmlXPathIsAncestor()
8275 if (node == (xmlNodePtr) ancestor->doc) return(0); in xmlXPathIsAncestor()
8297 xmlNodePtr
8298 xmlXPathNextPreceding(xmlXPathParserContextPtr ctxt, xmlNodePtr cur) in xmlXPathNextPreceding()
8342 static xmlNodePtr
8344 xmlNodePtr cur) in xmlXPathNextPrecedingInternal()
8389 xmlNodePtr
8390 xmlXPathNextNamespace(xmlXPathParserContextPtr ctxt, xmlNodePtr cur) { in xmlXPathNextNamespace()
8393 if (ctxt->context->tmpNsList == NULL && cur != (xmlNodePtr) xmlXPathXMLNamespace) { in xmlXPathNextNamespace()
8404 return((xmlNodePtr) xmlXPathXMLNamespace); in xmlXPathNextNamespace()
8407 return (xmlNodePtr)ctxt->context->tmpNsList[--ctxt->context->tmpNsNr]; in xmlXPathNextNamespace()
8426 xmlNodePtr
8427 xmlXPathNextAttribute(xmlXPathParserContextPtr ctxt, xmlNodePtr cur) { in xmlXPathNextAttribute()
8434 if (ctxt->context->node == (xmlNodePtr) ctxt->context->doc) in xmlXPathNextAttribute()
8436 return((xmlNodePtr)ctxt->context->node->properties); in xmlXPathNextAttribute()
8438 return((xmlNodePtr)cur->next); in xmlXPathNextAttribute()
8466 ctxt->context->node = (xmlNodePtr) ctxt->context->doc; in xmlXPathRoot()
8560 xmlNodePtr tmp; in xmlXPathCountFunction()
8592 xmlNodePtr elem = NULL; in xmlXPathGetElementsByIds()
8619 elem = (xmlNodePtr) attr; in xmlXPathGetElementsByIds()
11687 xmlNodePtr contextNode, oldContextNode; in xmlXPathCompOpEvalPredicate()
11858 xmlNodePtr oldContextNode, contextNode = NULL; in xmlXPathCompOpEvalPositionalPredicate()
12076 xmlNodePtr * first, xmlNodePtr * last, in xmlXPathNodeCollectAndTest()
12120 xmlNodePtr contextNode; in xmlXPathNodeCollectAndTest()
12128 xmlNodePtr cur; in xmlXPathNodeCollectAndTest()
12136 int (*addNode) (xmlNodeSetPtr, xmlNodePtr); in xmlXPathNodeCollectAndTest()
12138 xmlNodePtr oldContextNode; in xmlXPathNodeCollectAndTest()
12706 xmlXPathStepOpPtr op, xmlNodePtr * first);
12721 xmlXPathStepOpPtr op, xmlNodePtr * first) in xmlXPathCompOpEvalFirst()
12845 xmlNodePtr * last) in xmlXPathCompOpEvalLast()
12850 xmlNodePtr bak; in xmlXPathCompOpEvalLast()
12965 xmlXPathStepOpPtr op, xmlNodePtr * first) in xmlXPathCompOpEvalFilterFirst()
12972 xmlNodePtr oldnode; in xmlXPathCompOpEvalFilterFirst()
12993 xmlNodePtr last = NULL; in xmlXPathCompOpEvalFilterFirst()
13120 *first = (xmlNodePtr) oldlocset->locTab[i]->user; in xmlXPathCompOpEvalFilterFirst()
13276 xmlNodePtr bak; in xmlXPathCompOpEval()
13620 xmlNodePtr oldnode; in xmlXPathCompOpEval()
13649 xmlNodePtr first = NULL; in xmlXPathCompOpEval()
13683 xmlNodePtr last = NULL; in xmlXPathCompOpEval()
14065 (xmlNodePtr)oldlocset->locTab[i]->user, res); in xmlXPathCompOpEval()
14261 xmlNodePtr cur = NULL, limit = NULL; in xmlXPathRunStreamEval()
14300 (xmlNodePtr) ctxt->doc); in xmlXPathRunStreamEval()
14313 cur = (xmlNodePtr)ctxt->doc; in xmlXPathRunStreamEval()
15113 xmlXPathSetContextNode(xmlNodePtr node, xmlXPathContextPtr ctx) { in xmlXPathSetContextNode()
15137 xmlXPathNodeEval(xmlNodePtr node, const xmlChar *str, xmlXPathContextPtr ctx) { in xmlXPathNodeEval()