ixml: Fix for compiler warnings for size_t and ptrdiff_t.

ixmlparser.c static functions have been reordered.
This commit is contained in:
Marcelo Roberto Jimenez
2010-11-15 21:29:07 -02:00
parent da7f3bf1c1
commit 58c694f57d
10 changed files with 1628 additions and 1635 deletions

View File

@@ -57,11 +57,11 @@ IXML_Node *ixmlNodeList_item(
IXML_NodeList *next;
unsigned int i;
// if the list ptr is NULL
/* if the list ptr is NULL */
if (nList == NULL) {
return NULL;
}
// if index is more than list length
/* if index is more than list length */
if (index > ixmlNodeList_length(nList) - 1) {
return NULL;
}
@@ -93,7 +93,7 @@ int ixmlNodeList_addToNodeList(
}
if (*nList == NULL) {
// nodelist is empty
/* nodelist is empty */
*nList = (IXML_NodeList *)malloc(sizeof (IXML_NodeList));
if (*nList == NULL) {
return IXML_INSUFFICIENT_MEMORY;