From e76aa66b639c6c85939660f5eb5dc03c5dee69de Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 6 Jan 2009 12:33:40 +0000 Subject: Port to changed lpu API. Drop HUBBUB_OOD and just use HUBBUB_NEEDDATA, instead. Currently aborts in bogus comment handling if it encounters a \r at the end of the inputstream's utf-8 buffer. svn path=/trunk/hubbub/; revision=5966 --- src/utils/parserutilserror.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/utils/parserutilserror.h') diff --git a/src/utils/parserutilserror.h b/src/utils/parserutilserror.h index 4b1b99e..9219a7f 100644 --- a/src/utils/parserutilserror.h +++ b/src/utils/parserutilserror.h @@ -35,6 +35,8 @@ static inline hubbub_error hubbub_error_from_parserutils_error( return HUBBUB_NEEDDATA; else if (error == PARSERUTILS_BADENCODING) return HUBBUB_BADENCODING; + else if (error == PARSERUTILS_EOF) + return HUBBUB_OK; return HUBBUB_UNKNOWN; } -- cgit v1.2.3