8#ifndef hubbub_utils_parserutilserror_h_
9#define hubbub_utils_parserutilserror_h_
11#include <parserutils/errors.h>
21static inline hubbub_error hubbub_error_from_parserutils_error(
22 parserutils_error error)
24 if (error == PARSERUTILS_OK)
26 else if (error == PARSERUTILS_NOMEM)
28 else if (error == PARSERUTILS_BADPARM)
30 else if (error == PARSERUTILS_INVALID)
32 else if (error == PARSERUTILS_FILENOTFOUND)
34 else if (error == PARSERUTILS_NEEDDATA)
36 else if (error == PARSERUTILS_BADENCODING)
38 else if (error == PARSERUTILS_EOF)
hubbub_error
Definition: errors.h:18
@ HUBBUB_FILENOTFOUND
Definition: errors.h:27
@ HUBBUB_NEEDDATA
Definition: errors.h:28
@ HUBBUB_BADENCODING
Definition: errors.h:29
@ HUBBUB_BADPARM
Definition: errors.h:25
@ HUBBUB_NOMEM
Definition: errors.h:24
@ HUBBUB_UNKNOWN
Definition: errors.h:31
@ HUBBUB_INVALID
Definition: errors.h:26
@ HUBBUB_OK
No error.
Definition: errors.h:19