MCPcopy Create free account
hub / github.com/cuberite/cuberite / dtdCreate

Function dtdCreate

lib/expat/xmlparse.c:5539–5570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5537}
5538
5539static DTD *
5540dtdCreate(const XML_Memory_Handling_Suite *ms)
5541{
5542 DTD *p = (DTD *)ms->malloc_fcn(sizeof(DTD));
5543 if (p == NULL)
5544 return p;
5545 poolInit(&(p->pool), ms);
5546 poolInit(&(p->entityValuePool), ms);
5547 hashTableInit(&(p->generalEntities), ms);
5548 hashTableInit(&(p->elementTypes), ms);
5549 hashTableInit(&(p->attributeIds), ms);
5550 hashTableInit(&(p->prefixes), ms);
5551#ifdef XML_DTD
5552 p->paramEntityRead = XML_FALSE;
5553 hashTableInit(&(p->paramEntities), ms);
5554#endif /* XML_DTD */
5555 p->defaultPrefix.name = NULL;
5556 p->defaultPrefix.binding = NULL;
5557
5558 p->in_eldecl = XML_FALSE;
5559 p->scaffIndex = NULL;
5560 p->scaffold = NULL;
5561 p->scaffLevel = 0;
5562 p->scaffSize = 0;
5563 p->scaffCount = 0;
5564 p->contentStringLen = 0;
5565
5566 p->keepProcessing = XML_TRUE;
5567 p->hasParamEntityRefs = XML_FALSE;
5568 p->standalone = XML_FALSE;
5569 return p;
5570}
5571
5572static void
5573dtdReset(DTD *p, const XML_Memory_Handling_Suite *ms)

Callers 1

parserCreateFunction · 0.85

Calls 2

poolInitFunction · 0.85
hashTableInitFunction · 0.85

Tested by

no test coverage detected