projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplifications.
[apps/madmutt.git]
/
lib-lib
/
utf8.c
diff --git
a/lib-lib/utf8.c
b/lib-lib/utf8.c
index
7c928a6
..
7ac3e23
100644
(file)
--- a/
lib-lib/utf8.c
+++ b/
lib-lib/utf8.c
@@
-42,7
+42,7
@@
static const uint8_t __utf8_mark[7] = {
0x00, 0x00, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc
};
0x00, 0x00, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc
};
-
static inline int
ustrlen(const char *s)
+
int m_
ustrlen(const char *s)
{
int len = 0;
{
int len = 0;
@@
-53,7
+53,7
@@
static inline int ustrlen(const char *s)
return len;
}
return len;
}
-
static inline int
ustrgetc(const char *s, const char **outp)
+
int m_
ustrgetc(const char *s, const char **outp)
{
uint32_t ret = 0;
int trail = __utf8_trail[(unsigned char)*s];
{
uint32_t ret = 0;
int trail = __utf8_trail[(unsigned char)*s];
@@
-72,7
+72,7
@@
static inline int ustrgetc(const char *s, const char **outp)
return ret - __utf8_offs[trail];
}
return ret - __utf8_offs[trail];
}
-
static inline int
ustrputc(char *dst, ssize_t n, int c)
+
int m_
ustrputc(char *dst, ssize_t n, int c)
{
int bytes = 1 + (c >= 0x80) + (c >= 0x800) + (c >= 0x10000);
{
int bytes = 1 + (c >= 0x80) + (c >= 0x800) + (c >= 0x10000);