From 315aedc7cb9fbf642c9c3e5b076fc87c5859e847 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 22 May 2021 22:02:22 -0700 Subject: Minor splint fixes --- utf8.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utf8.h') 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; -- cgit v1.2.3