* htmlCheckAutoClose: * @newtag: The new tag name * @oldtag: The old tag name * * Checks whether the new tag is one of the registered valid tags for * closing old. * * Returns 0 if no, 1 if yes. */
| 1385 | * Returns 0 if no, 1 if yes. |
| 1386 | */ |
| 1387 | static int |
| 1388 | htmlCheckAutoClose(const xmlChar * newtag, const xmlChar * oldtag) |
| 1389 | { |
| 1390 | htmlStartCloseEntry key; |
| 1391 | void *res; |
| 1392 | |
| 1393 | key.oldTag = (const char *) oldtag; |
| 1394 | key.newTag = (const char *) newtag; |
| 1395 | res = bsearch(&key, htmlStartClose, |
| 1396 | sizeof(htmlStartClose) / sizeof(htmlStartCloseEntry), |
| 1397 | sizeof(htmlStartCloseEntry), htmlCompareStartClose); |
| 1398 | return(res != NULL); |
| 1399 | } |
| 1400 | |
| 1401 | /** |
| 1402 | * htmlAutoCloseOnClose: |
no outgoing calls
no test coverage detected