aboutsummaryrefslogtreecommitdiffstats
path: root/valid.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-05-08 02:32:07 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-05-08 02:32:07 +0000
commitaecc0dc1f58f66765d68997bb85b5c4534404c67 (patch)
tree3499b54cea49eaab6c7186dc9aff2068fde24595 /valid.c
parent51c2cfa0531d144eea499755e0aeca9ed975c87f (diff)
downloadandroid_external_libxml2-aecc0dc1f58f66765d68997bb85b5c4534404c67.tar.gz
android_external_libxml2-aecc0dc1f58f66765d68997bb85b5c4534404c67.tar.bz2
android_external_libxml2-aecc0dc1f58f66765d68997bb85b5c4534404c67.zip
fixes the use of 'list' as a parameter added xmlPopInputCallback for Matt
* valid.c include/libxml/valid.h: fixes the use of 'list' as a parameter * xmlIO.c include/libxml/xmlIO.h: added xmlPopInputCallback for Matt Sergeant Daniel
Diffstat (limited to 'valid.c')
-rw-r--r--valid.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/valid.c b/valid.c
index 378338b9..6460334d 100644
--- a/valid.c
+++ b/valid.c
@@ -6586,7 +6586,7 @@ xmlValidGetPotentialChildren(xmlElementContent *ctree, const xmlChar **list,
* xmlValidGetValidElements:
* @prev: an element to insert after
* @next: an element to insert next
- * @list: an array to store the list of child names
+ * @names: an array to store the list of child names
* @max: the size of the array
*
* This function returns the list of authorized children to insert
@@ -6608,7 +6608,7 @@ xmlValidGetPotentialChildren(xmlElementContent *ctree, const xmlChar **list,
*/
int
-xmlValidGetValidElements(xmlNode *prev, xmlNode *next, const xmlChar **list,
+xmlValidGetValidElements(xmlNode *prev, xmlNode *next, const xmlChar **names,
int max) {
xmlValidCtxt vctxt;
int nb_valid_elements = 0;
@@ -6632,7 +6632,7 @@ xmlValidGetValidElements(xmlNode *prev, xmlNode *next, const xmlChar **list,
if (prev == NULL && next == NULL)
return(-1);
- if (list == NULL) return(-1);
+ if (names == NULL) return(-1);
if (max <= 0) return(-1);
nb_valid_elements = 0;
@@ -6686,8 +6686,8 @@ xmlValidGetValidElements(xmlNode *prev, xmlNode *next, const xmlChar **list,
int j;
for (j = 0; j < nb_valid_elements;j++)
- if (xmlStrEqual(elements[i], list[j])) break;
- list[nb_valid_elements++] = elements[i];
+ if (xmlStrEqual(elements[i], names[j])) break;
+ names[nb_valid_elements++] = elements[i];
if (nb_valid_elements >= max) break;
}
}