aboutsummaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-10 15:47:13 +0000
committerOmar Polo <op@omarpolo.com>2021-01-10 15:47:13 +0000
commit945d22d1f2c0e79a3102a63314eeb5e6c41571af (patch)
treed74cb71bad2cdbec0853e291ed69d35734283947 /utf8.c
parent9b374f41eee2db5080ef2feb7973228afa3b22aa (diff)
inline should be before type, gcc says
clang doesn't seem to care.
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.c b/utf8.c
index 81a7584..09aad1c 100644
--- a/utf8.c
+++ b/utf8.c
@@ -46,7 +46,7 @@ static const uint8_t utf8d[] = {
1,3,1,1,1,1,1,3,1,3,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1, // s7..s8
};
-static uint32_t inline
+static inline uint32_t
utf8_decode(uint32_t* state, uint32_t* codep, uint8_t byte) {
uint32_t type = utf8d[byte];