Lines Matching full:decode
1 utf: do not define decode() to be inline
3 Currently, decode() is prototyped in utf.h, its body is in utf.c and it
6 However, decode() is defined to be inline, which can not work since,
7 when compiling util.c, the body of decode() is out-of-scope for that
10 Furthermore, decode() uses a utf8d, which is a static defined in utf.c .
13 This means that the definition of decode() along with utf8d is basically
17 utf.c:36:12: warning: ‘utf8d’ is static but used in inline function ‘decode’ which is not static
20 utf.c:30:19: warning: ‘utf8d’ is static but used in inline function ‘decode’ which is not static
26 utf.h:25:17: warning: inline function ‘decode’ declared but never defined
27 uint32_t inline decode(uint32_t *state, uint32_t *codep, uint32_t byte);
30 This results in decode() to be omitted from libwebsock.so, and thus link
33 The simplest solution is to not inline decode() at all.
38 Note: an alternative would be to move both decode() and utf8d into
39 decode.h nad ditch decode.c if decode really must be inline. This is
52 decode(uint32_t* state, uint32_t* codep, uint32_t byte)
62 -uint32_t inline decode(uint32_t *state, uint32_t *codep, uint32_t byte);
63 +uint32_t decode(uint32_t *state, uint32_t *codep, uint32_t byte);