diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-05-22 22:02:22 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-05-22 22:02:22 -0700 |
| commit | 315aedc7cb9fbf642c9c3e5b076fc87c5859e847 (patch) | |
| tree | 617c08167378a4d7bfc67f090ef3447371f293e0 /utf8.h | |
| parent | 55e57050c4a29812ff7758ca4630969a0824cbe0 (diff) | |
Minor splint fixes
Diffstat (limited to 'utf8.h')
| -rw-r--r-- | utf8.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
