diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2010-12-04 19:03:19 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2010-12-04 19:03:19 +0000 |
commit | ef71b3d9674cc97e3a4b8a7cf62ab5ff043a2c77 (patch) | |
tree | a8bf79d08ed4fa619e836880f499ec8b29165d42 /src/tokeniser/tokeniser.c | |
parent | deb36d37e23997aa5352e0a7c2cc99e4a29f0416 (diff) | |
download | libhubbub-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 'src/tokeniser/tokeniser.c')
-rw-r--r-- | src/tokeniser/tokeniser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tokeniser/tokeniser.c b/src/tokeniser/tokeniser.c index e75621d..7eb6bc1 100644 --- a/src/tokeniser/tokeniser.c +++ b/src/tokeniser/tokeniser.c @@ -135,7 +135,7 @@ typedef struct hubbub_tokeniser_context { * character references */ uint8_t base; /**< Base for numeric * entities */ - void *context; /**< Context for named + int32_t context; /**< Context for named * entity search */ size_t prev_len; /**< Previous byte length * of str */ @@ -2870,7 +2870,7 @@ hubbub_error hubbub_tokeniser_consume_character_reference( tokeniser->context.match_entity.return_state = tokeniser->state; tokeniser->context.match_entity.complete = false; tokeniser->context.match_entity.overflow = false; - tokeniser->context.match_entity.context = NULL; + tokeniser->context.match_entity.context = -1; tokeniser->context.match_entity.prev_len = len; /* Reset allowed character for future calls */ |