diff options
author | Andrew Sidwell <andy@entai.co.uk> | 2008-08-13 14:01:32 +0000 |
---|---|---|
committer | Andrew Sidwell <andy@entai.co.uk> | 2008-08-13 14:01:32 +0000 |
commit | bd8943f1552fab2cdc9d552753df7948394710b4 (patch) | |
tree | 9e1e4a89018cd5721e3bbe83dc8c2d82e2488cb2 /src/tokeniser | |
parent | 7c9043daf9f27fd5abc52692bb36163de0ad78bb (diff) | |
download | libhubbub-bd8943f1552fab2cdc9d552753df7948394710b4.tar.gz libhubbub-bd8943f1552fab2cdc9d552753df7948394710b4.tar.bz2 |
Use COLLECT_MS() macro rather than COLLECT() in attribute values.
svn path=/trunk/hubbub/; revision=5086
Diffstat (limited to 'src/tokeniser')
-rw-r--r-- | src/tokeniser/tokeniser.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tokeniser/tokeniser.c b/src/tokeniser/tokeniser.c index 1188e2d..db8fbd6 100644 --- a/src/tokeniser/tokeniser.c +++ b/src/tokeniser/tokeniser.c @@ -1346,7 +1346,7 @@ hubbub_error hubbub_tokeniser_handle_attribute_value_dq(hubbub_tokeniser *tokeni /* Don't eat the '&'; it'll be handled by entity consumption */ } else if (c == '\0') { tokeniser->context.pending += len; - COLLECT(ctag->attributes[ctag->n_attributes - 1].value, + COLLECT_MS(ctag->attributes[ctag->n_attributes - 1].value, u_fffd, sizeof(u_fffd)); } else if (c == '\r') { cptr = parserutils_inputstream_peek( @@ -1358,7 +1358,7 @@ hubbub_error hubbub_tokeniser_handle_attribute_value_dq(hubbub_tokeniser *tokeni return HUBBUB_OOD; } else if (cptr == PARSERUTILS_INPUTSTREAM_EOF || CHAR(cptr) != '\n') { - COLLECT(ctag->attributes[ + COLLECT_MS(ctag->attributes[ ctag->n_attributes - 1].value, &lf, sizeof(lf)); } @@ -1400,7 +1400,7 @@ hubbub_error hubbub_tokeniser_handle_attribute_value_sq(hubbub_tokeniser *tokeni /* Don't eat the '&'; it'll be handled by entity consumption */ } else if (c == '\0') { tokeniser->context.pending += len; - COLLECT(ctag->attributes[ctag->n_attributes - 1].value, + COLLECT_MS(ctag->attributes[ctag->n_attributes - 1].value, u_fffd, sizeof(u_fffd)); } else if (c == '\r') { cptr = parserutils_inputstream_peek( @@ -1412,7 +1412,7 @@ hubbub_error hubbub_tokeniser_handle_attribute_value_sq(hubbub_tokeniser *tokeni return HUBBUB_OOD; } else if (cptr == PARSERUTILS_INPUTSTREAM_EOF || CHAR(cptr) != '\n') { - COLLECT(ctag->attributes[ + COLLECT_MS(ctag->attributes[ ctag->n_attributes - 1].value, &lf, sizeof(lf)); } |