From ef71b3d9674cc97e3a4b8a7cf62ab5ff043a2c77 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 4 Dec 2010 19:03:19 +0000 Subject: Remove init/final and embed entity trie at build time. r=vince svn path=/trunk/hubbub/; revision=10976 --- src/tokeniser/tokeniser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tokeniser/tokeniser.c') 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 */ -- cgit v1.2.3