blob: e02afedc8ee3f51b1d05fcbd4ea792ac6212c723 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/*
* 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 _ERROR_H
#define _ERROR_H
#include <stdlib.h>
#include <stdarg.h>
#include <squareball.h>
typedef enum {
BLOGC_ERROR_SOURCE_PARSER = 1,
BLOGC_ERROR_TEMPLATE_PARSER,
BLOGC_ERROR_LOADER,
BLOGC_WARNING_DATETIME_PARSER,
} blogc_error_code_t;
sb_error_t* blogc_error_parser(blogc_error_code_t type, const char *src,
size_t src_len, size_t current, const char *format, ...);
void blogc_error_print(sb_error_t *err);
#endif /* _ERROR_H */
|