diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-11-08 23:20:42 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-11-08 23:20:42 +0000 |
commit | f3c6e30f43c8e9feec891d68cc3eee99c3ef6264 (patch) | |
tree | 4c7c425167bc6cdb75666db1ceb2194ce8fab8ec /test | |
parent | 6df8f99a707326655b4f285920f19fef6d9eb90a (diff) | |
download | libhubbub-f3c6e30f43c8e9feec891d68cc3eee99c3ef6264.tar.gz libhubbub-f3c6e30f43c8e9feec891d68cc3eee99c3ef6264.tar.bz2 |
Port hubbub to new lpu API
svn path=/trunk/hubbub/; revision=5656
Diffstat (limited to 'test')
-rw-r--r-- | test/tokeniser.c | 5 | ||||
-rw-r--r-- | test/tokeniser2.c | 5 | ||||
-rw-r--r-- | test/tokeniser3.c | 5 |
3 files changed, 6 insertions, 9 deletions
diff --git a/test/tokeniser.c b/test/tokeniser.c index 77635bc..913b66f 100644 --- a/test/tokeniser.c +++ b/test/tokeniser.c @@ -38,9 +38,8 @@ int main(int argc, char **argv) /* Initialise library */ assert(hubbub_initialise(argv[1], myrealloc, NULL) == HUBBUB_OK); - stream = parserutils_inputstream_create("UTF-8", 0, NULL, - myrealloc, NULL); - assert(stream != NULL); + assert(parserutils_inputstream_create("UTF-8", 0, NULL, + myrealloc, NULL, &stream) == PARSERUTILS_OK); tok = hubbub_tokeniser_create(stream, myrealloc, NULL); assert(tok != NULL); diff --git a/test/tokeniser2.c b/test/tokeniser2.c index 3dee590..d033934 100644 --- a/test/tokeniser2.c +++ b/test/tokeniser2.c @@ -141,9 +141,8 @@ void run_test(context *ctx) ctx->output_index = 0; ctx->char_off = 0; - stream = parserutils_inputstream_create("UTF-8", 0, NULL, - myrealloc, NULL); - assert(stream != NULL); + assert(parserutils_inputstream_create("UTF-8", 0, NULL, + myrealloc, NULL, &stream) == PARSERUTILS_OK); tok = hubbub_tokeniser_create(stream, myrealloc, NULL); assert(tok != NULL); diff --git a/test/tokeniser3.c b/test/tokeniser3.c index 8febda9..b7ca15e 100644 --- a/test/tokeniser3.c +++ b/test/tokeniser3.c @@ -138,9 +138,8 @@ void run_test(context *ctx) ctx->output_index = 0; ctx->char_off = 0; - stream = parserutils_inputstream_create("UTF-8", 0, NULL, - myrealloc, NULL); - assert(stream != NULL); + assert(parserutils_inputstream_create("UTF-8", 0, NULL, + myrealloc, NULL, &stream) == PARSERUTILS_OK); tok = hubbub_tokeniser_create(stream, myrealloc, NULL); assert(tok != NULL); |