From 72c39e3522c5781d1e7dc8abad77d96141c5d49b Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 1 May 2008 16:36:27 +0000 Subject: Import beginnings of a CSS parsing library. Currently comprises a lexer. svn path=/trunk/libcss/; revision=4112 --- src/utils/parserutilserror.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/utils/parserutilserror.h (limited to 'src/utils/parserutilserror.h') diff --git a/src/utils/parserutilserror.h b/src/utils/parserutilserror.h new file mode 100644 index 0000000..d2cffb6 --- /dev/null +++ b/src/utils/parserutilserror.h @@ -0,0 +1,29 @@ +/* + * This file is part of LibCSS. + * Licensed under the MIT License, + * http://www.opensource.org/licenses/mit-license.php + * Copyright 2007 John-Mark Bell + */ + +#ifndef css_utils_parserutilserror_h_ +#define css_utils_parserutilserror_h_ + +#include + +#include + +/** + * Convert a ParserUtils error into a LibCSS error + * + * \param error The ParserUtils error to convert + * \return The corresponding LibCSS error + */ +static inline css_error css_error_from_parserutils_error( + parserutils_error error) +{ + /* Currently, there's a 1:1 mapping, so we've nothing to do */ + return (css_error) error; +} + +#endif + -- cgit v1.2.3