diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2007-09-22 12:33:28 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2007-09-22 12:33:28 +0000 |
commit | 1a81ac77b1b9fd38a5f3ea7bd2125fdcd9b953dd (patch) | |
tree | e9b6f87f33b38bd0b9749667c85a0ba424580215 /test/list.h | |
parent | fb21e068ad55fc128fa0fab53ee3326a9f5fc271 (diff) | |
download | libdom-1a81ac77b1b9fd38a5f3ea7bd2125fdcd9b953dd.tar.gz libdom-1a81ac77b1b9fd38a5f3ea7bd2125fdcd9b953dd.tar.bz2 |
s/malloc.h/stdlib.h/ (malloc.h is non-standard, though common)
Sprinkle some assertions about so as to catch malloc failure at the earliest opportunity.
Pedantic line length and brace position changes.
svn path=/trunk/dom/; revision=3563
Diffstat (limited to 'test/list.h')
-rw-r--r-- | test/list.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/list.h b/test/list.h index 5732032..7b5bcc0 100644 --- a/test/list.h +++ b/test/list.h @@ -30,11 +30,13 @@ void list_add(struct list* list, void* data); /** * Tests if data is equal to any element in the list. */ -bool list_contains(struct list* list, void* data, int (*comparator)(const void* a, const void* b)); +bool list_contains(struct list* list, void* data, + int (*comparator)(const void* a, const void* b)); /** * Tests if superlist contains all elements in sublist. Order is not important. */ -bool list_contains_all(struct list* superList, struct list* subList, int (*comparator)(const void* a, const void* b)); +bool list_contains_all(struct list* superList, struct list* subList, + int (*comparator)(const void* a, const void* b)); #endif |