• Home
  • Raw
  • Download

Lines Matching refs:node1

169 xmlXPathCmpNodesExt(xmlNodePtr node1, xmlNodePtr node2) {  in xmlXPathCmpNodesExt()  argument
176 if ((node1 == NULL) || (node2 == NULL)) in xmlXPathCmpNodesExt()
179 if (node1 == node2) in xmlXPathCmpNodesExt()
185 switch (node1->type) { in xmlXPathCmpNodesExt()
188 if ((0 > (ptrdiff_t) node1->content) && in xmlXPathCmpNodesExt()
190 (node1->doc == node2->doc)) in xmlXPathCmpNodesExt()
192 l1 = -((ptrdiff_t) node1->content); in xmlXPathCmpNodesExt()
204 miscNode1 = node1; in xmlXPathCmpNodesExt()
205 node1 = node1->parent; in xmlXPathCmpNodesExt()
212 miscNode1 = node1; in xmlXPathCmpNodesExt()
216 if (node1->prev != NULL) { in xmlXPathCmpNodesExt()
218 node1 = node1->prev; in xmlXPathCmpNodesExt()
219 if (node1->type == XML_ELEMENT_NODE) { in xmlXPathCmpNodesExt()
223 if (node1->prev == NULL) { in xmlXPathCmpNodesExt()
229 node1 = node1->parent; in xmlXPathCmpNodesExt()
235 node1 = node1->parent; in xmlXPathCmpNodesExt()
237 if ((node1 == NULL) || (node1->type != XML_ELEMENT_NODE) || in xmlXPathCmpNodesExt()
238 (0 <= (ptrdiff_t) node1->content)) { in xmlXPathCmpNodesExt()
242 node1 = miscNode1; in xmlXPathCmpNodesExt()
302 if (node1 == node2) { in xmlXPathCmpNodesExt()
339 cur = node1->parent; in xmlXPathCmpNodesExt()
349 if (cur == node1) in xmlXPathCmpNodesExt()
359 if ((node1->type == XML_ELEMENT_NODE) && in xmlXPathCmpNodesExt()
361 (0 > (ptrdiff_t) node1->content) && in xmlXPathCmpNodesExt()
363 (node1->doc == node2->doc)) { in xmlXPathCmpNodesExt()
365 l1 = -((ptrdiff_t) node1->content); in xmlXPathCmpNodesExt()
375 if (node1 == node2->prev) in xmlXPathCmpNodesExt()
377 if (node1 == node2->next) in xmlXPathCmpNodesExt()
383 if (cur->parent == node1) in xmlXPathCmpNodesExt()
388 for (depth1 = 0, cur = node1; cur->parent != NULL; cur = cur->parent) { in xmlXPathCmpNodesExt()
404 node1 = node1->parent; in xmlXPathCmpNodesExt()
410 while (node1->parent != node2->parent) { in xmlXPathCmpNodesExt()
411 node1 = node1->parent; in xmlXPathCmpNodesExt()
414 if ((node1 == NULL) || (node2 == NULL)) in xmlXPathCmpNodesExt()
420 if (node1 == node2->prev) in xmlXPathCmpNodesExt()
422 if (node1 == node2->next) in xmlXPathCmpNodesExt()
427 if ((node1->type == XML_ELEMENT_NODE) && in xmlXPathCmpNodesExt()
429 (0 > (ptrdiff_t) node1->content) && in xmlXPathCmpNodesExt()
431 (node1->doc == node2->doc)) { in xmlXPathCmpNodesExt()
433 l1 = -((ptrdiff_t) node1->content); in xmlXPathCmpNodesExt()
441 for (cur = node1->next;cur != NULL;cur = cur->next) in xmlXPathCmpNodesExt()
3315 xmlXPathCmpNodes(xmlNodePtr node1, xmlNodePtr node2) { in xmlXPathCmpNodes() argument
3321 if ((node1 == NULL) || (node2 == NULL)) in xmlXPathCmpNodes()
3326 if (node1 == node2) /* trivial case */ in xmlXPathCmpNodes()
3328 if (node1->type == XML_ATTRIBUTE_NODE) { in xmlXPathCmpNodes()
3330 attrNode1 = node1; in xmlXPathCmpNodes()
3331 node1 = node1->parent; in xmlXPathCmpNodes()
3338 if (node1 == node2) { in xmlXPathCmpNodes()
3356 if ((node1->type == XML_NAMESPACE_DECL) || in xmlXPathCmpNodes()
3359 if (node1 == node2->prev) in xmlXPathCmpNodes()
3361 if (node1 == node2->next) in xmlXPathCmpNodes()
3367 if ((node1->type == XML_ELEMENT_NODE) && in xmlXPathCmpNodes()
3369 (0 > (ptrdiff_t) node1->content) && in xmlXPathCmpNodes()
3371 (node1->doc == node2->doc)) { in xmlXPathCmpNodes()
3374 l1 = -((ptrdiff_t) node1->content); in xmlXPathCmpNodes()
3386 if (cur->parent == node1) in xmlXPathCmpNodes()
3391 for (depth1 = 0, cur = node1;cur->parent != NULL;cur = cur->parent) { in xmlXPathCmpNodes()
3407 node1 = node1->parent; in xmlXPathCmpNodes()
3413 while (node1->parent != node2->parent) { in xmlXPathCmpNodes()
3414 node1 = node1->parent; in xmlXPathCmpNodes()
3417 if ((node1 == NULL) || (node2 == NULL)) in xmlXPathCmpNodes()
3423 if (node1 == node2->prev) in xmlXPathCmpNodes()
3425 if (node1 == node2->next) in xmlXPathCmpNodes()
3430 if ((node1->type == XML_ELEMENT_NODE) && in xmlXPathCmpNodes()
3432 (0 > (ptrdiff_t) node1->content) && in xmlXPathCmpNodes()
3434 (node1->doc == node2->doc)) { in xmlXPathCmpNodes()
3437 l1 = -((ptrdiff_t) node1->content); in xmlXPathCmpNodes()
3445 for (cur = node1->next;cur != NULL;cur = cur->next) in xmlXPathCmpNodes()