| 92 | static char *testEntitiesValue[MAX_ENTITIES]; |
| 93 | static int nb_entities = 0; |
| 94 | static 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 | } |
| 105 | static int addEntity(char *name, char *content) { |
| 106 | if (nb_entities >= MAX_ENTITIES) { |
| 107 | fprintf(stderr, "Too many entities defined\n"); |