projects
/
cgds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement HashTable + fix some extra blank spaces, remove Bool type (using bool ...
[cgds.git]
/
src
/
List.c
diff --git
a/src/List.c
b/src/List.c
index
d34fc92
..
0d4c113
100644
(file)
--- a/
src/List.c
+++ b/
src/List.c
@@
-35,7
+35,7
@@
List* list_copy(List* list)
return listCopy;
}
return listCopy;
}
-
B
ool list_empty(List* list)
+
b
ool list_empty(List* list)
{
return (list->size == 0);
}
{
return (list->size == 0);
}
@@
-115,13
+115,13
@@
void _list_insert_back(List* list, void* data)
void list_remove(List* list, ListCell* listCell)
{
void list_remove(List* list, ListCell* listCell)
{
- if (listCell->prev != NULL)
+ if (listCell->prev != NULL)
listCell->prev->next = listCell->next;
listCell->prev->next = listCell->next;
- else
+ else
list->head = listCell->next;
list->head = listCell->next;
- if (listCell->next != NULL)
+ if (listCell->next != NULL)
listCell->next->prev = listCell->prev;
listCell->next->prev = listCell->prev;
- else
+ else
list->tail = listCell->prev;
safe_free(listCell->data);
safe_free(listCell);
list->tail = listCell->prev;
safe_free(listCell->data);
safe_free(listCell);
@@
-180,7
+180,7
@@
void listI_reset_tail(ListIterator* listI)
listI->current = listI->list->tail;
}
listI->current = listI->list->tail;
}
-
B
ool listI_has_data(ListIterator* listI)
+
b
ool listI_has_data(ListIterator* listI)
{
return (listI->current != NULL);
}
{
return (listI->current != NULL);
}