MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlXPtrRangesEqual

Function xmlXPtrRangesEqual

ThirdParty/libxml2/vtklibxml2/xpointer.c:306–325  ·  view source on GitHub ↗

* xmlXPtrRangesEqual: * @range1: the first range * @range2: the second range * * Compare two ranges * * Returns 1 if equal, 0 otherwise */

Source from the content-addressed store, hash-verified

304 * Returns 1 if equal, 0 otherwise
305 */
306static int
307xmlXPtrRangesEqual(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:

Callers 1

xmlXPtrLocationSetAddFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected