summaryrefslogtreecommitdiffstats
path: root/src/blogc/errors.h
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-09-03 21:23:27 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-09-03 21:57:04 +0200
commite5f9cd349da231eae42ec9d35e3ebcd0d8fff973 (patch)
treeca81ecd0548cafdefffc4a61b3e1dd2afac32d16 /src/blogc/errors.h
parenta319fe44f6d50d25f546e17ad9907eedd9a358a0 (diff)
downloadblogc-e5f9cd349da231eae42ec9d35e3ebcd0d8fff973.tar.gz
blogc-e5f9cd349da231eae42ec9d35e3ebcd0d8fff973.tar.bz2
blogc-e5f9cd349da231eae42ec9d35e3ebcd0d8fff973.zip
*: moved error handling to src/common/
Diffstat (limited to 'src/blogc/errors.h')
-rw-r--r--src/blogc/errors.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/blogc/errors.h b/src/blogc/errors.h
new file mode 100644
index 0000000..427d9e7
--- /dev/null
+++ b/src/blogc/errors.h
@@ -0,0 +1,24 @@
+/*
+ * blogc: A blog compiler.
+ * Copyright (C) 2015-2016 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+ *
+ * This program can be distributed under the terms of the BSD License.
+ * See the file LICENSE.
+ */
+
+#ifndef _ERRORS_H
+#define _ERRORS_H
+
+#include "../common/error.h"
+
+typedef enum {
+ BLOGC_ERROR_SOURCE_PARSER = 1,
+ BLOGC_ERROR_TEMPLATE_PARSER,
+ BLOGC_ERROR_LOADER,
+ BLOGC_ERROR_FILE,
+ BLOGC_WARNING_DATETIME_PARSER,
+} blogc_error_type_t;
+
+void blogc_error_print(bc_error_t *err);
+
+#endif /* _ERRORS_H */