* xmlXPtrRangesEqual: * @range1: the first range * @range2: the second range * * Compare two ranges * * Returns 1 if equal, 0 otherwise */
| 304 | * Returns 1 if equal, 0 otherwise |
| 305 | */ |
| 306 | static int |
| 307 | xmlXPtrRangesEqual(xmlXPathObjectPtr range1, xmlXPathObjectPtr range2) { |
| 308 | if (range1 == range2) |
| 309 | return(1); |
| 310 | if ((range1 == NULL) || (range2 == NULL)) |
| 311 | return(0); |
| 312 | if (range1->type != range2->type) |
| 313 | return(0); |
| 314 | if (range1->type != XPATH_RANGE) |
| 315 | return(0); |
| 316 | if (range1->user != range2->user) |
| 317 | return(0); |
| 318 | if (range1->index != range2->index) |
| 319 | return(0); |
| 320 | if (range1->user2 != range2->user2) |
| 321 | return(0); |
| 322 | if (range1->index2 != range2->index2) |
| 323 | return(0); |
| 324 | return(1); |
| 325 | } |
| 326 | |
| 327 | /** |
| 328 | * xmlXPtrNewRangeInternal: |
no outgoing calls
no test coverage detected