diff options
| author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-12-23 23:45:54 +0100 | 
|---|---|---|
| committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-12-23 23:45:54 +0100 | 
| commit | 14e9d7b2299f15efb695b0202f9c1f6a9f7a4ba6 (patch) | |
| tree | 31b3d9a6f9f6144b08b852d016b5b4bdfce553ef /src/error.c | |
| parent | 8e62072d91193b4894adda9c40544c18c1a01f57 (diff) | |
| download | blogc-14e9d7b2299f15efb695b0202f9c1f6a9f7a4ba6.tar.gz blogc-14e9d7b2299f15efb695b0202f9c1f6a9f7a4ba6.tar.bz2 blogc-14e9d7b2299f15efb695b0202f9c1f6a9f7a4ba6.zip | |
Revert "build: removing src/utils and replacing with squareball"
This reverts commit 950e6c9148eca244a89d18a21d4ae4e5c3d1c646.
Diffstat (limited to 'src/error.c')
| -rw-r--r-- | src/error.c | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/src/error.c b/src/error.c index 94d6162..28396f8 100644 --- a/src/error.c +++ b/src/error.c @@ -14,16 +14,16 @@  #include <stdlib.h>  #include <stdarg.h>  #include <string.h> -#include <squareball.h> +#include "utils/utils.h"  #include "error.h"  blogc_error_t*  blogc_error_new(blogc_error_type_t type, const char *msg)  { -    blogc_error_t *err = sb_malloc(sizeof(blogc_error_t)); +    blogc_error_t *err = b_malloc(sizeof(blogc_error_t));      err->type = type; -    err->msg = sb_strdup(msg); +    err->msg = b_strdup(msg);      return err;  } @@ -33,7 +33,7 @@ blogc_error_new_printf(blogc_error_type_t type, const char *format, ...)  {      va_list ap;      va_start(ap, format); -    char *tmp = sb_strdup_vprintf(format, ap); +    char *tmp = b_strdup_vprintf(format, ap);      va_end(ap);      blogc_error_t *rv = blogc_error_new(type, tmp);      free(tmp); @@ -47,7 +47,7 @@ blogc_error_parser(blogc_error_type_t type, const char *src, size_t src_len,  {      va_list ap;      va_start(ap, format); -    char *msg = sb_strdup_vprintf(format, ap); +    char *msg = b_strdup_vprintf(format, ap);      va_end(ap);      size_t lineno = 1; @@ -88,7 +88,7 @@ blogc_error_parser(blogc_error_type_t type, const char *src, size_t src_len,      if (lineend <= linestart && src_len >= linestart)          lineend = src_len; -    char *line = sb_strndup(src + linestart, lineend - linestart); +    char *line = b_strndup(src + linestart, lineend - linestart);      blogc_error_t *rv = NULL; | 
