* xmlCmpTextWriterStackEntry: * @data0: the first data * @data1: the second data * * Compare callback for the xmlList. * * Returns -1, 0, 1 */
| 4299 | * Returns -1, 0, 1 |
| 4300 | */ |
| 4301 | static int |
| 4302 | xmlCmpTextWriterStackEntry(const void *data0, const void *data1) |
| 4303 | { |
| 4304 | xmlTextWriterStackEntry *p0; |
| 4305 | xmlTextWriterStackEntry *p1; |
| 4306 | |
| 4307 | if (data0 == data1) |
| 4308 | return 0; |
| 4309 | |
| 4310 | if (data0 == 0) |
| 4311 | return -1; |
| 4312 | |
| 4313 | if (data1 == 0) |
| 4314 | return 1; |
| 4315 | |
| 4316 | p0 = (xmlTextWriterStackEntry *) data0; |
| 4317 | p1 = (xmlTextWriterStackEntry *) data1; |
| 4318 | |
| 4319 | return xmlStrcmp(p0->name, p1->name); |
| 4320 | } |
| 4321 | |
| 4322 | /** |
| 4323 | * misc |
nothing calls this directly
no test coverage detected