* xmlCmpTextWriterNsStackEntry: * @data0: the first data * @data1: the second data * * Compare callback for the xmlList. * * Returns -1, 0, 1 */
| 4401 | * Returns -1, 0, 1 |
| 4402 | */ |
| 4403 | static int |
| 4404 | xmlCmpTextWriterNsStackEntry(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: |
nothing calls this directly
no test coverage detected