Return style unification.
Christoph Lohmann 20h@r-36.net
1 files changed,
10 insertions(+),
0 deletions(-)
jump to
M
st.c
→
st.c
@@ -569,6 +569,7 @@ return r;
len -= r; s += r; } + return aux; }@@ -622,6 +623,7 @@ if (j < len)
return 0; *u = udecoded; utf8validate(u, len); + return len; }@@ -631,6 +633,7 @@ {
for (*i = 0; *i < LEN(utfmask); ++(*i)) if (((uchar)c & utfmask[*i]) == utfbyte[*i]) return (uchar)c & ~utfmask[*i]; + return 0; }@@ -642,11 +645,13 @@
len = utf8validate(&u, 0); if (len > UTF_SIZ) return 0; + for (i = len - 1; i != 0; --i) { c[i] = utf8encodebyte(u, 0); u >>= 6; } c[0] = utf8encodebyte(u, len); + return len; }@@ -669,6 +674,7 @@ break;
if (r == u) return &(s[i]); } + return NULL; }@@ -679,6 +685,7 @@ if (!BETWEEN(*u, utfmin[i], utfmax[i]) || BETWEEN(*u, 0xD800, 0xDFFF))
*u = UTF_INVALID; for (i = 1; *u > utfmax[i]; ++i) ; + return i; }@@ -3127,6 +3134,7 @@ xw.cmap, &color, ncolor);
} else name = colorname[i]; } + return XftColorAllocName(xw.dpy, xw.vis, xw.cmap, name, ncolor); }@@ -3166,6 +3174,7 @@ return 1;
XftColorFree(xw.dpy, xw.vis, xw.cmap, &dc.col[x]); dc.col[x] = ncolor; + return 0; }@@ -3235,6 +3244,7 @@ return NorthEastGravity;
case YNegative: return SouthWestGravity; } + return SouthEastGravity; }