MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlRegexpErrCompile

Function xmlRegexpErrCompile

ThirdParty/libxml2/vtklibxml2/xmlregexp.c:375–394  ·  view source on GitHub ↗

* xmlRegexpErrCompile: * @extra: extra information * * Handle a compilation failure */

Source from the content-addressed store, hash-verified

373 * Handle a compilation failure
374 */
375static void
376xmlRegexpErrCompile(xmlRegParserCtxtPtr ctxt, const char *extra)
377{
378 const char *regexp = NULL;
379 int idx = 0;
380 int res;
381
382 if (ctxt != NULL) {
383 regexp = (const char *) ctxt->string;
384 idx = ctxt->cur - ctxt->string;
385 ctxt->error = XML_REGEXP_COMPILE_ERROR;
386 }
387
388 res = __xmlRaiseError(NULL, NULL, NULL, NULL, NULL, XML_FROM_REGEXP,
389 XML_REGEXP_COMPILE_ERROR, XML_ERR_FATAL,
390 NULL, 0, extra, regexp, NULL, idx, 0,
391 "failed to compile: %s\n", extra);
392 if (res < 0)
393 xmlRegexpErrMemory(ctxt);
394}
395
396/************************************************************************
397 * *

Callers

nothing calls this directly

Calls 2

__xmlRaiseErrorFunction · 0.85
xmlRegexpErrMemoryFunction · 0.85

Tested by

no test coverage detected