summaryrefslogtreecommitdiff
path: root/src/utils/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/utils.h')
-rw-r--r--src/utils/utils.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/utils/utils.h b/src/utils/utils.h
index 1f7ed8c..3f7fcd0 100644
--- a/src/utils/utils.h
+++ b/src/utils/utils.h
@@ -62,8 +62,7 @@ static inline uint32_t charToHex(uint8_t c)
return c;
}
-static inline css_error
-css_error_from_lwc_error(lwc_error err)
+static inline css_error css_error_from_lwc_error(lwc_error err)
{
switch (err) {
case lwc_error_ok:
@@ -78,4 +77,9 @@ css_error_from_lwc_error(lwc_error err)
return CSS_INVALID;
}
+
+/* Allocator to pass to libparserutils */
+#define CSS_ALLOC_PW NULL
+void *css_alloc(void *data, size_t len, void *pw);
+
#endif