diff options
Diffstat (limited to 'src/ui_readline.c')
-rw-r--r-- | src/ui_readline.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui_readline.c b/src/ui_readline.c index 3ce1d17..f804eab 100644 --- a/src/ui_readline.c +++ b/src/ui_readline.c @@ -25,7 +25,7 @@ THE SOFTWARE. #include <stdio.h> #include <string.h> -inline void BarReadlineMoveLeft (char *buf, size_t *bufPos, +static inline void BarReadlineMoveLeft (char *buf, size_t *bufPos, size_t *bufLen) { char *tmpBuf = &buf[*bufPos-1]; while (tmpBuf < &buf[*bufLen]) { @@ -36,15 +36,15 @@ inline void BarReadlineMoveLeft (char *buf, size_t *bufPos, --(*bufLen); } -inline char BarReadlineIsAscii (char b) { +static inline char BarReadlineIsAscii (char b) { return !(b & (1 << 7)); } -inline char BarReadlineIsUtf8Start (char b) { +static inline char BarReadlineIsUtf8Start (char b) { return (b & (1 << 7)) && (b & (1 << 6)); } -inline char BarReadlineIsUtf8Content (char b) { +static inline char BarReadlineIsUtf8Content (char b) { return (b & (1 << 7)) && !(b & (1 << 6)); } |