aboutsummaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-05-22 22:02:22 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-05-22 22:02:22 -0700
commit315aedc7cb9fbf642c9c3e5b076fc87c5859e847 (patch)
tree617c08167378a4d7bfc67f090ef3447371f293e0 /utf8.h
parent55e57050c4a29812ff7758ca4630969a0824cbe0 (diff)
Minor splint fixes
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/utf8.h b/utf8.h
index fb353d9..8d7d969 100644
--- a/utf8.h
+++ b/utf8.h
@@ -12,7 +12,7 @@
// (i.e. skip forward one codepoint at a time, not one byte at a time)
//
__attribute__((nonnull, pure))
-static inline const char *next_char(file_t *f, const char *str)
+inline const char *next_char(file_t *f, const char *str)
{
if (__builtin_expect(str+1 <= f->end && (str[0] & 0x80) == 0x0, 1))
return str+1;
@@ -30,7 +30,7 @@ static inline const char *next_char(file_t *f, const char *str)
// (i.e. skip backwards one codepoint at a time, not one byte at a time)
//
__attribute__((nonnull, pure))
-static inline const char *prev_char(file_t *f, const char *str)
+inline const char *prev_char(file_t *f, const char *str)
{
if (__builtin_expect(str-1 >= f->start && (str[-1] & 0x80) == 0x0, 1))
return str-1;