summaryrefslogtreecommitdiff
path: root/test/list.c
diff options
context:
space:
mode:
authorRob Kendrick <rjek@netsurf-browser.org>2007-09-22 12:37:27 +0000
committerRob Kendrick <rjek@netsurf-browser.org>2007-09-22 12:37:27 +0000
commit17975b688c0fdc69b23d63ac286b11ef61f295b4 (patch)
tree192b7d4ea28667b4c750993d2373faf77e3826c8 /test/list.c
parent1a81ac77b1b9fd38a5f3ea7bd2125fdcd9b953dd (diff)
downloadlibdom-17975b688c0fdc69b23d63ac286b11ef61f295b4.tar.gz
libdom-17975b688c0fdc69b23d63ac286b11ef61f295b4.tar.bz2
Use a typedef for the function pointers to comparison functions, add newline at end of file
svn path=/trunk/dom/; revision=3564
Diffstat (limited to 'test/list.c')
-rw-r--r--test/list.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/list.c b/test/list.c
index f94b408..2c742fa 100644
--- a/test/list.c
+++ b/test/list.c
@@ -58,8 +58,7 @@ void list_add(struct list* list, void* data)
list->size++;
}
-bool list_contains(struct list* list, void* data,
- int (*comparator)(const void* a, const void* b))
+bool list_contains(struct list* list, void* data, list_compare_func comparator)
{
struct list_elt* elt = list->head;
while (elt != NULL) {
@@ -72,7 +71,7 @@ bool list_contains(struct list* list, void* data,
}
bool list_contains_all(struct list* superList, struct list* subList,
- int (*comparator)(const void* a, const void* b))
+ list_compare_func comparator)
{
struct list_elt* elt = subList->head;
while (elt != NULL) {
@@ -83,3 +82,4 @@ bool list_contains_all(struct list* superList, struct list* subList,
}
return true;
}
+