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 /src/tokeniser | |
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 'src/tokeniser')
-rw-r--r-- | src/tokeniser/tokeniser.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tokeniser/tokeniser.c b/src/tokeniser/tokeniser.c index 5563a58..b5d9e07 100644 --- a/src/tokeniser/tokeniser.c +++ b/src/tokeniser/tokeniser.c @@ -281,6 +281,7 @@ static hubbub_error hubbub_tokeniser_emit_token(hubbub_tokeniser *tokeniser, hubbub_tokeniser *hubbub_tokeniser_create(parserutils_inputstream *input, hubbub_alloc alloc, void *pw) { + parserutils_error perror; hubbub_tokeniser *tok; if (input == NULL || alloc == NULL) @@ -290,8 +291,8 @@ hubbub_tokeniser *hubbub_tokeniser_create(parserutils_inputstream *input, if (tok == NULL) return NULL; - tok->buffer = parserutils_buffer_create(alloc, pw); - if (tok->buffer == NULL) { + perror = parserutils_buffer_create(alloc, pw, &tok->buffer); + if (perror != PARSERUTILS_OK) { alloc(tok, 0, pw); return NULL; } |