diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2000-10-01 20:28:44 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2000-10-01 20:28:44 +0000 |
commit | 8b5dd83f46fbde6ed895ae00077040ccae8434aa (patch) | |
tree | 56b21045d77931112bf2669077f71885088336ab /entities.c | |
parent | bc765307ffed746e57f669fc4d38925f32b776f3 (diff) | |
download | android_external_libxml2-8b5dd83f46fbde6ed895ae00077040ccae8434aa.tar.gz android_external_libxml2-8b5dd83f46fbde6ed895ae00077040ccae8434aa.tar.bz2 android_external_libxml2-8b5dd83f46fbde6ed895ae00077040ccae8434aa.zip |
- configure.in: releasing 2.2.4
- parser.[ch]: added xmlStrEqual()
- HTMLparser.c HTMLtree.c SAX.c debugXML.c entities.c parser.c
tree.c valid.c xlink.c xpath.c: converted all !xmlStrcmp to
use xmlStrEqual instead
- TODO: updated
- added an XPath test
Daniel
Diffstat (limited to 'entities.c')
-rw-r--r-- | entities.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -114,7 +114,7 @@ xmlAddEntity(xmlEntitiesTablePtr table, const xmlChar *name, int type, hash = xmlEntityComputeHash(name); ret = table->table[hash]; while (ret != NULL) { - if (!xmlStrcmp(ret->name, name)) { + if (xmlStrEqual(ret->name, name)) { /* * The entity is already defined in this Dtd, the spec says to NOT * override it ... Is it worth a Warning ??? !!! @@ -137,7 +137,7 @@ xmlAddEntity(xmlEntitiesTablePtr table, const xmlChar *name, int type, #else for (i = 0;i < table->nb_entities;i++) { ret = table->table[i]; - if (!xmlStrcmp(ret->name, name)) { + if (xmlStrEqual(ret->name, name)) { /* * The entity is already defined in this Dtd, the spec says to NOT * override it ... Is it worth a Warning ??? !!! @@ -268,14 +268,14 @@ xmlGetPredefinedEntity(const xmlChar *name) { i = xmlEntityComputeHash(name); cur = xmlPredefinedEntities->table[i]; while (cur != NULL) { - if (!xmlStrcmp(cur->name, name)) + if (xmlStrEqual(cur->name, name)) return(cur); cur = cur->nexte; } #else for (i = 0;i < xmlPredefinedEntities->nb_entities;i++) { cur = xmlPredefinedEntities->table[i]; - if (!xmlStrcmp(cur->name, name)) return(cur); + if (xmlStrEqual(cur->name, name)) return(cur); } #endif return(NULL); @@ -425,7 +425,7 @@ xmlEntityCheckReference(xmlEntityPtr ent, const xmlChar *to) { for (i = 0;i < ent->entNr;i++) { xmlEntityPtr indir = NULL; - if (!xmlStrcmp(to, ent->entTab[i])) + if (xmlStrEqual(to, ent->entTab[i])) return(1); switch (ent->etype) { @@ -485,7 +485,7 @@ xmlEntityAddReference(xmlEntityPtr ent, const xmlChar *to) { } for (i = 0;i < ent->entNr;i++) { - if (!xmlStrcmp(to, ent->entTab[i])) + if (xmlStrEqual(to, ent->entTab[i])) return(0); } @@ -552,10 +552,10 @@ xmlGetEntityFromTable(xmlEntitiesTablePtr table, const xmlChar *name, switch (cur->etype) { case XML_INTERNAL_PARAMETER_ENTITY: case XML_EXTERNAL_PARAMETER_ENTITY: - if ((parameter) && (!xmlStrcmp(cur->name, name))) + if ((parameter) && (xmlStrEqual(cur->name, name))) return(cur); default: - if ((!parameter) && (!xmlStrcmp(cur->name, name))) + if ((!parameter) && (xmlStrEqual(cur->name, name))) return(cur); } cur = cur->nexte; @@ -568,10 +568,10 @@ xmlGetEntityFromTable(xmlEntitiesTablePtr table, const xmlChar *name, switch (cur->etype) { case XML_INTERNAL_PARAMETER_ENTITY: case XML_EXTERNAL_PARAMETER_ENTITY: - if ((parameter) && (!xmlStrcmp(cur->name, name))) + if ((parameter) && (xmlStrEqual(cur->name, name))) return(cur); default: - if ((!parameter) && (!xmlStrcmp(cur->name, name))) + if ((!parameter) && (xmlStrEqual(cur->name, name))) return(cur); } } |