• Home
  • Raw
  • Download

Lines Matching refs:node1

2887 xmlXPathCmpNodes(xmlNodePtr node1, xmlNodePtr node2) {  in xmlXPathCmpNodes()  argument
2893 if ((node1 == NULL) || (node2 == NULL)) in xmlXPathCmpNodes()
2898 if (node1 == node2) /* trivial case */ in xmlXPathCmpNodes()
2900 if (node1->type == XML_ATTRIBUTE_NODE) { in xmlXPathCmpNodes()
2902 attrNode1 = node1; in xmlXPathCmpNodes()
2903 node1 = node1->parent; in xmlXPathCmpNodes()
2910 if (node1 == node2) { in xmlXPathCmpNodes()
2928 if ((node1->type == XML_NAMESPACE_DECL) || in xmlXPathCmpNodes()
2931 if (node1 == node2->prev) in xmlXPathCmpNodes()
2933 if (node1 == node2->next) in xmlXPathCmpNodes()
2939 if ((node1->type == XML_ELEMENT_NODE) && in xmlXPathCmpNodes()
2941 (0 > (long) node1->content) && in xmlXPathCmpNodes()
2943 (node1->doc == node2->doc)) { in xmlXPathCmpNodes()
2946 l1 = -((long) node1->content); in xmlXPathCmpNodes()
2958 if (cur == node1) in xmlXPathCmpNodes()
2963 for (depth1 = 0, cur = node1;cur->parent != NULL;cur = cur->parent) { in xmlXPathCmpNodes()
2979 node1 = node1->parent; in xmlXPathCmpNodes()
2985 while (node1->parent != node2->parent) { in xmlXPathCmpNodes()
2986 node1 = node1->parent; in xmlXPathCmpNodes()
2989 if ((node1 == NULL) || (node2 == NULL)) in xmlXPathCmpNodes()
2995 if (node1 == node2->prev) in xmlXPathCmpNodes()
2997 if (node1 == node2->next) in xmlXPathCmpNodes()
3002 if ((node1->type == XML_ELEMENT_NODE) && in xmlXPathCmpNodes()
3004 (0 > (long) node1->content) && in xmlXPathCmpNodes()
3006 (node1->doc == node2->doc)) { in xmlXPathCmpNodes()
3009 l1 = -((long) node1->content); in xmlXPathCmpNodes()
3017 for (cur = node1->next;cur != NULL;cur = cur->next) in xmlXPathCmpNodes()
3036 xmlXPathCmpNodesExt(xmlNodePtr node1, xmlNodePtr node2) { in xmlXPathCmpNodesExt() argument
3043 if ((node1 == NULL) || (node2 == NULL)) in xmlXPathCmpNodesExt()
3046 if (node1 == node2) in xmlXPathCmpNodesExt()
3052 switch (node1->type) { in xmlXPathCmpNodesExt()
3055 if ((0 > (long) node1->content) && /* TODO: Would a != 0 suffice here? */ in xmlXPathCmpNodesExt()
3057 (node1->doc == node2->doc)) in xmlXPathCmpNodesExt()
3059 l1 = -((long) node1->content); in xmlXPathCmpNodesExt()
3071 miscNode1 = node1; in xmlXPathCmpNodesExt()
3072 node1 = node1->parent; in xmlXPathCmpNodesExt()
3079 miscNode1 = node1; in xmlXPathCmpNodesExt()
3083 if (node1->prev != NULL) { in xmlXPathCmpNodesExt()
3085 node1 = node1->prev; in xmlXPathCmpNodesExt()
3086 if (node1->type == XML_ELEMENT_NODE) { in xmlXPathCmpNodesExt()
3090 if (node1->prev == NULL) { in xmlXPathCmpNodesExt()
3096 node1 = node1->parent; in xmlXPathCmpNodesExt()
3102 node1 = node1->parent; in xmlXPathCmpNodesExt()
3104 if ((node1 == NULL) || (node1->type != XML_ELEMENT_NODE) || in xmlXPathCmpNodesExt()
3105 (0 <= (long) node1->content)) { in xmlXPathCmpNodesExt()
3109 node1 = miscNode1; in xmlXPathCmpNodesExt()
3155 (0 <= (long) node1->content)) in xmlXPathCmpNodesExt()
3169 if (node1 == node2) { in xmlXPathCmpNodesExt()
3206 cur = node1->parent; in xmlXPathCmpNodesExt()
3216 if (cur == node1) in xmlXPathCmpNodesExt()
3226 if ((node1->type == XML_ELEMENT_NODE) && in xmlXPathCmpNodesExt()
3228 (0 > (long) node1->content) && in xmlXPathCmpNodesExt()
3230 (node1->doc == node2->doc)) { in xmlXPathCmpNodesExt()
3232 l1 = -((long) node1->content); in xmlXPathCmpNodesExt()
3242 if (node1 == node2->prev) in xmlXPathCmpNodesExt()
3244 if (node1 == node2->next) in xmlXPathCmpNodesExt()
3250 if (cur == node1) in xmlXPathCmpNodesExt()
3255 for (depth1 = 0, cur = node1;cur->parent != NULL;cur = cur->parent) { in xmlXPathCmpNodesExt()
3271 node1 = node1->parent; in xmlXPathCmpNodesExt()
3277 while (node1->parent != node2->parent) { in xmlXPathCmpNodesExt()
3278 node1 = node1->parent; in xmlXPathCmpNodesExt()
3281 if ((node1 == NULL) || (node2 == NULL)) in xmlXPathCmpNodesExt()
3287 if (node1 == node2->prev) in xmlXPathCmpNodesExt()
3289 if (node1 == node2->next) in xmlXPathCmpNodesExt()
3294 if ((node1->type == XML_ELEMENT_NODE) && in xmlXPathCmpNodesExt()
3296 (0 > (long) node1->content) && in xmlXPathCmpNodesExt()
3298 (node1->doc == node2->doc)) { in xmlXPathCmpNodesExt()
3300 l1 = -((long) node1->content); in xmlXPathCmpNodesExt()
3308 for (cur = node1->next;cur != NULL;cur = cur->next) in xmlXPathCmpNodesExt()