diff options
| author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-03-13 01:48:49 +0100 | 
|---|---|---|
| committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-03-13 01:48:49 +0100 | 
| commit | a2b3551dfb9460470bd79f5648bf597c517c40d4 (patch) | |
| tree | b82f50efbd76f581a281d61009811c1afabb0733 /src/template-parser.c | |
| parent | 3ead966f48bc47444d7ec72f46e94e73557695a5 (diff) | |
| download | blogc-a2b3551dfb9460470bd79f5648bf597c517c40d4.tar.gz blogc-a2b3551dfb9460470bd79f5648bf597c517c40d4.tar.bz2 blogc-a2b3551dfb9460470bd79f5648bf597c517c40d4.zip | |
*: use squareball error infrastructure
Diffstat (limited to 'src/template-parser.c')
| -rw-r--r-- | src/template-parser.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/template-parser.c b/src/template-parser.c index 6f23ef1..d61f90a 100644 --- a/src/template-parser.c +++ b/src/template-parser.c @@ -53,7 +53,7 @@ typedef enum {  sb_slist_t* -blogc_template_parse(const char *src, size_t src_len, blogc_error_t **err) +blogc_template_parse(const char *src, size_t src_len, sb_error_t **err)  {      if (err == NULL || *err != NULL)          return NULL; @@ -597,14 +597,14 @@ blogc_template_parse(const char *src, size_t src_len, blogc_error_t **err)              *err = blogc_error_parser(BLOGC_ERROR_TEMPLATE_PARSER, src, src_len,                  start2 - 1, "Found an open double-quoted string.");          else if (if_count != 0) -            *err = blogc_error_new_printf(BLOGC_ERROR_TEMPLATE_PARSER, +            *err = sb_error_new_printf(BLOGC_ERROR_TEMPLATE_PARSER,                  "%d open 'ifdef' and/or 'ifndef' statements were not closed!",                  if_count);          else if (block_state != BLOCK_CLOSED) -            *err = blogc_error_new(BLOGC_ERROR_TEMPLATE_PARSER, +            *err = sb_error_new(BLOGC_ERROR_TEMPLATE_PARSER,                  "An open block was not closed!");          else if (foreach_open) -            *err = blogc_error_new(BLOGC_ERROR_TEMPLATE_PARSER, +            *err = sb_error_new(BLOGC_ERROR_TEMPLATE_PARSER,                  "An open 'foreach' statement was not closed!");      } | 
