| 482 | |
| 483 | #if BanAllEntityUsage |
| 484 | static void StartDoctypeDeclHandler ( void * userData, XMP_StringPtr doctypeName, |
| 485 | XMP_StringPtr sysid, XMP_StringPtr pubid, int has_internal_subset ) |
| 486 | { |
| 487 | IgnoreParam(doctypeName); |
| 488 | IgnoreParam(sysid); |
| 489 | IgnoreParam(pubid); |
| 490 | IgnoreParam(has_internal_subset); |
| 491 | |
| 492 | ExpatAdapter * thiz = (ExpatAdapter*)userData; |
| 493 | |
| 494 | #if XMP_DebugBuild & DumpXMLParseEvents // Avoid unused variable warning. |
| 495 | if ( thiz->parseLog != 0 ) { |
| 496 | PrintIndent ( thiz->parseLog, thiz->elemNesting ); |
| 497 | fprintf ( thiz->parseLog, "DocType: \"%s\"\n", doctypeName ); |
| 498 | } |
| 499 | #endif |
| 500 | |
| 501 | thiz->isAborted = true; // ! Can't throw an exception across the plain C Expat frames. |
| 502 | (void) XML_StopParser ( thiz->parser, XML_FALSE /* not resumable */ ); |
| 503 | |
| 504 | } // StartDoctypeDeclHandler |
| 505 | #endif |
| 506 | |
| 507 | // ================================================================================================= |
nothing calls this directly
no test coverage detected