diff options
author | Mike Hommey <mh@glandium.org> | 2004-05-17 06:56:59 +0000 |
---|---|---|
committer | Mike Hommey <mh@glandium.org> | 2004-05-17 06:56:59 +0000 |
commit | d4e028c96af89ade493b440d4f2de6b684c03a06 (patch) | |
tree | 4b74b3cd4b14524309bc5a3e776d81d4bbc5efe4 /valid.c | |
parent | 81bcf076ea11e114a60e429338a15748066de163 (diff) | |
download | libxml2-upstream/2.6.10.tar.gz |
Load /tmp/tmp.QVLX5b/libxml2-2.6.10 intoupstream/2.6.10
packages/libxml2/branches/upstream/current.
Diffstat (limited to 'valid.c')
-rw-r--r-- | valid.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; } } |