MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / StartDoctypeDeclHandler

Function StartDoctypeDeclHandler

xmpsdk/src/ExpatAdapter.cpp:484–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482
483#if BanAllEntityUsage
484static 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// =================================================================================================

Callers

nothing calls this directly

Calls 1

PrintIndentFunction · 0.85

Tested by

no test coverage detected