summaryrefslogtreecommitdiff
path: root/test/entities.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2010-12-04 19:03:19 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2010-12-04 19:03:19 +0000
commitef71b3d9674cc97e3a4b8a7cf62ab5ff043a2c77 (patch)
treea8bf79d08ed4fa619e836880f499ec8b29165d42 /test/entities.c
parentdeb36d37e23997aa5352e0a7c2cc99e4a29f0416 (diff)
downloadlibhubbub-ef71b3d9674cc97e3a4b8a7cf62ab5ff043a2c77.tar.gz
libhubbub-ef71b3d9674cc97e3a4b8a7cf62ab5ff043a2c77.tar.bz2
Remove init/final and embed entity trie at build time. r=vince
svn path=/trunk/hubbub/; revision=10976
Diffstat (limited to 'test/entities.c')
-rw-r--r--test/entities.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/test/entities.c b/test/entities.c
index f340a58..f730f17 100644
--- a/test/entities.c
+++ b/test/entities.c
@@ -2,23 +2,14 @@
#include "testutils.h"
-static void *myrealloc(void *ptr, size_t len, void *pw)
-{
- UNUSED(pw);
-
- return realloc(ptr, len);
-}
-
int main(int argc, char **argv)
{
uint32_t result;
- void *context = NULL;
+ int32_t context = -1;
UNUSED(argc);
UNUSED(argv);
- assert(hubbub_entities_create(myrealloc, NULL) == HUBBUB_OK);
-
assert(hubbub_entities_search_step('A', &result, &context) ==
HUBBUB_NEEDDATA);
@@ -40,8 +31,6 @@ int main(int argc, char **argv)
assert(hubbub_entities_search_step('z', &result, &context) ==
HUBBUB_INVALID);
- hubbub_entities_destroy(myrealloc, NULL);
-
printf("PASS\n");
return 0;