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

Function resetEntities

ThirdParty/libxml2/vtklibxml2/runsuite.c:94–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92static char *testEntitiesValue[MAX_ENTITIES];
93static int nb_entities = 0;
94static void resetEntities(void) {
95 int i;
96
97 for (i = 0;i < nb_entities;i++) {
98 if (testEntitiesName[i] != NULL)
99 xmlFree(testEntitiesName[i]);
100 if (testEntitiesValue[i] != NULL)
101 xmlFree(testEntitiesValue[i]);
102 }
103 nb_entities = 0;
104}
105static int addEntity(char *name, char *content) {
106 if (nb_entities >= MAX_ENTITIES) {
107 fprintf(stderr, "Too many entities defined\n");

Callers 1

xsdTestCaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected