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

Function xmlCmpTextWriterNsStackEntry

ThirdParty/libxml2/vtklibxml2/xmlwriter.c:4403–4428  ·  view source on GitHub ↗

* xmlCmpTextWriterNsStackEntry: * @data0: the first data * @data1: the second data * * Compare callback for the xmlList. * * Returns -1, 0, 1 */

Source from the content-addressed store, hash-verified

4401 * Returns -1, 0, 1
4402 */
4403static int
4404xmlCmpTextWriterNsStackEntry(const void *data0, const void *data1)
4405{
4406 xmlTextWriterNsStackEntry *p0;
4407 xmlTextWriterNsStackEntry *p1;
4408 int rc;
4409
4410 if (data0 == data1)
4411 return 0;
4412
4413 if (data0 == 0)
4414 return -1;
4415
4416 if (data1 == 0)
4417 return 1;
4418
4419 p0 = (xmlTextWriterNsStackEntry *) data0;
4420 p1 = (xmlTextWriterNsStackEntry *) data1;
4421
4422 rc = xmlStrcmp(p0->prefix, p1->prefix);
4423
4424 if ((rc != 0) || (p0->elem != p1->elem))
4425 rc = -1;
4426
4427 return rc;
4428}
4429
4430/**
4431 * xmlTextWriterWriteDocCallback:

Callers

nothing calls this directly

Calls 1

xmlStrcmpFunction · 0.85

Tested by

no test coverage detected