summaryrefslogtreecommitdiff
path: root/src/treebuilder/script_collect.c
diff options
context:
space:
mode:
authorAndrew Sidwell <andy@entai.co.uk>2008-08-10 15:49:52 +0000
committerAndrew Sidwell <andy@entai.co.uk>2008-08-10 15:49:52 +0000
commit086bd1eef17d63b36a47ac954b1d90fff3d4115d (patch)
tree07a9ec2dbe0f583eca788a9da6e559c58a664ef0 /src/treebuilder/script_collect.c
parentc8aaecba0272665ba64380ec62d9fc6eba90c960 (diff)
downloadlibhubbub-086bd1eef17d63b36a47ac954b1d90fff3d4115d.tar.gz
libhubbub-086bd1eef17d63b36a47ac954b1d90fff3d4115d.tar.bz2
Switch to using hubbub_error for reprocessing state from just a bool, to allow for encoding change info to be returned more easily.
svn path=/trunk/hubbub/; revision=4989
Diffstat (limited to 'src/treebuilder/script_collect.c')
-rw-r--r--src/treebuilder/script_collect.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/treebuilder/script_collect.c b/src/treebuilder/script_collect.c
index e016409..eb6f67b 100644
--- a/src/treebuilder/script_collect.c
+++ b/src/treebuilder/script_collect.c
@@ -21,10 +21,10 @@
* \param token The token to process
* \return True to reprocess the token, false otherwise
*/
-bool handle_script_collect_characters(hubbub_treebuilder *treebuilder,
+hubbub_error handle_script_collect_characters(hubbub_treebuilder *treebuilder,
const hubbub_token *token)
{
- bool reprocess = false;
+ hubbub_error err = HUBBUB_OK;
bool done = false;
switch (token->type) {
@@ -55,7 +55,8 @@ bool handle_script_collect_characters(hubbub_treebuilder *treebuilder,
case HUBBUB_TOKEN_START_TAG:
/** \todo parse error */
/** \todo Mark script as "already executed" */
- done = reprocess = true;
+ done = true;
+ err = HUBBUB_REPROCESS;
break;
}
@@ -143,6 +144,6 @@ bool handle_script_collect_characters(hubbub_treebuilder *treebuilder,
treebuilder->context.collect.mode;
}
- return reprocess;
+ return err;
}