1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-28 00:21:53 +03:00

Added cleanup routines, cleanup with -pedantic on linux, closed #3788, Daniel

This commit is contained in:
Daniel Veillard
1999-11-24 18:04:22 +00:00
parent 11a48ec6f4
commit a819dace56
27 changed files with 597 additions and 501 deletions

View File

@ -2993,8 +2993,8 @@ xmlValidGetPotentialChildren(xmlElementContent *ctree, const xmlChar **list,
switch (ctree->type) {
case XML_ELEMENT_CONTENT_PCDATA:
for (i = 0; i < *len;i++)
if (!xmlStrcmp("#PCDATA", list[i])) return(*len);
list[(*len)++] = "#PCDATA";
if (!xmlStrcmp(BAD_CAST "#PCDATA", list[i])) return(*len);
list[(*len)++] = BAD_CAST "#PCDATA";
break;
case XML_ELEMENT_CONTENT_ELEMENT:
for (i = 0; i < *len;i++)
@ -3088,7 +3088,7 @@ xmlValidGetValidElements(xmlNode *prev, xmlNode *next, const xmlChar **list,
/*
* Creates a dummy node and insert it into the tree
*/
test_node = xmlNewNode (NULL, "<!dummy?>");
test_node = xmlNewNode (NULL, BAD_CAST "<!dummy?>");
test_node->doc = ref_node->doc;
test_node->parent = parent;
test_node->prev = prev;