summaryrefslogtreecommitdiff
path: root/src/utils/parserutilserror.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-05-01 16:36:27 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-05-01 16:36:27 +0000
commit72c39e3522c5781d1e7dc8abad77d96141c5d49b (patch)
treee16497caaa0bf20771ef34787de02fc95e5993bf /src/utils/parserutilserror.h
downloadlibcss-72c39e3522c5781d1e7dc8abad77d96141c5d49b.tar.gz
libcss-72c39e3522c5781d1e7dc8abad77d96141c5d49b.tar.bz2
Import beginnings of a CSS parsing library.
Currently comprises a lexer. svn path=/trunk/libcss/; revision=4112
Diffstat (limited to 'src/utils/parserutilserror.h')
-rw-r--r--src/utils/parserutilserror.h29
1 files changed, 29 insertions, 0 deletions
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 <jmb@netsurf-browser.org>
+ */
+
+#ifndef css_utils_parserutilserror_h_
+#define css_utils_parserutilserror_h_
+
+#include <parserutils/errors.h>
+
+#include <libcss/errors.h>
+
+/**
+ * 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
+