summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Wellons <wellons@nullprogram.com>2017-10-05 23:27:48 -0400
committerChristopher Wellons <wellons@nullprogram.com>2017-10-05 23:27:48 -0400
commitb1c933e95bff649d0ca207e5c6d2e255b2b9dd58 (patch)
tree615a7a2cf1d420731504d32be4ca43e16edf972d
parenta4db22221bbdbd1fb58cc6f6cc67bca1221aba6b (diff)
Rename other decoder
-rw-r--r--Makefile2
-rw-r--r--test/benchmark.c2
-rw-r--r--test/bh-utf8.h (renamed from test/bj-utf8.h)2
3 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2f2928e..2208e6d 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ CC = c99
CFLAGS = -Wall -Wextra -O3 -g3
all: benchmark tests
-benchmark: test/benchmark.c utf8.h test/utf8-encode.h test/bj-utf8.h
+benchmark: test/benchmark.c utf8.h test/utf8-encode.h test/bh-utf8.h
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ test/benchmark.c $(LDLIBS)
tests: test/tests.c utf8.h test/utf8-encode.h
diff --git a/test/benchmark.c b/test/benchmark.c
index ddc1d7d..22b5322 100644
--- a/test/benchmark.c
+++ b/test/benchmark.c
@@ -8,7 +8,7 @@
#include "../utf8.h"
#include "utf8-encode.h"
-#include "bj-utf8.h"
+#include "bh-utf8.h"
#define SECONDS 5
#define BUFLEN 64 // MB
diff --git a/test/bj-utf8.h b/test/bh-utf8.h
index e8b262b..e0f4efb 100644
--- a/test/bj-utf8.h
+++ b/test/bh-utf8.h
@@ -22,7 +22,7 @@ static const uint8_t utf8d[] = {
};
static uint32_t
-bj_utf8_decode(uint32_t* state, uint32_t* codep, uint32_t byte) {
+bh_utf8_decode(uint32_t* state, uint32_t* codep, uint32_t byte) {
uint32_t type = utf8d[byte];
*codep = (*state != UTF8_ACCEPT) ?