aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-09-09 03:03:57 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-09-09 03:03:57 +0200
commitd66ebfab3458172bd435b00c51e8b09e2510b4d4 (patch)
tree157220d08f8005a7f91e321394d5f10d97ffb693 /src/blogc
parentba38817ab8dd3606de9e5d40c83c8f8d185f671b (diff)
downloadblogc-d66ebfab3458172bd435b00c51e8b09e2510b4d4.tar.gz
blogc-d66ebfab3458172bd435b00c51e8b09e2510b4d4.tar.bz2
blogc-d66ebfab3458172bd435b00c51e8b09e2510b4d4.zip
s/blogc_utf8_/bc_utf8_/g
Diffstat (limited to 'src/blogc')
-rw-r--r--src/blogc/file.c4
-rw-r--r--src/blogc/main.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/blogc/file.c b/src/blogc/file.c
index cede962..71598b8 100644
--- a/src/blogc/file.c
+++ b/src/blogc/file.c
@@ -49,7 +49,7 @@ blogc_file_get_contents(const char *path, size_t *len, bc_error_t **err)
if (str->len == 0 && read_len > 0) {
// skipping BOM before validation, for performance. should be safe
// enough
- size_t skip = blogc_utf8_skip_bom((uint8_t*) buffer, read_len);
+ size_t skip = bc_utf8_skip_bom((uint8_t*) buffer, read_len);
read_len -= skip;
tmp += skip;
}
@@ -59,7 +59,7 @@ blogc_file_get_contents(const char *path, size_t *len, bc_error_t **err)
}
fclose(fp);
- if (!blogc_utf8_validate_str(str)) {
+ if (!bc_utf8_validate_str(str)) {
*err = bc_error_new_printf(BLOGC_ERROR_FILE,
"File content is not valid UTF-8: %s", path);
bc_string_free(str, true);
diff --git a/src/blogc/main.c b/src/blogc/main.c
index beb67d6..992b9e7 100644
--- a/src/blogc/main.c
+++ b/src/blogc/main.c
@@ -162,7 +162,7 @@ main(int argc, char **argv)
else if (i + 1 < argc)
tmp = argv[++i];
if (tmp != NULL) {
- if (!blogc_utf8_validate((uint8_t*) tmp, strlen(tmp))) {
+ if (!bc_utf8_validate((uint8_t*) tmp, strlen(tmp))) {
fprintf(stderr, "blogc: error: invalid value for "
"-D (must be valid UTF-8 string): %s\n", tmp);
goto cleanup;