[hackers] [st] Return style unification. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Fri, 10 Jul 2015 14:32:07 +0200 (CEST)

commit 684c72d05e54780c283c6580f271fb6920c3060d
Author: Christoph Lohmann <20h_AT_r-36.net>
AuthorDate: Fri Jul 10 14:30:37 2015 +0200
Commit: Christoph Lohmann <20h_AT_r-36.net>
CommitDate: Fri Jul 10 14:30:37 2015 +0200

    Return style unification.

diff --git a/st.c b/st.c
index 4f958d8..c07cc3b 100644
--- a/st.c
+++ b/st.c
_AT_@ -569,6 +569,7 @@ xwrite(int fd, const char *s, size_t len)
                 len -= r;
                 s += r;
         }
+
         return aux;
 }
 
_AT_@ -622,6 +623,7 @@ utf8decode(char *c, Rune *u, size_t clen)
                 return 0;
         *u = udecoded;
         utf8validate(u, len);
+
         return len;
 }
 
_AT_@ -631,6 +633,7 @@ utf8decodebyte(char c, size_t *i)
         for (*i = 0; *i < LEN(utfmask); ++(*i))
                 if (((uchar)c & utfmask[*i]) == utfbyte[*i])
                         return (uchar)c & ~utfmask[*i];
+
         return 0;
 }
 
_AT_@ -642,11 +645,13 @@ utf8encode(Rune u, char *c)
         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;
 }
 
_AT_@ -669,6 +674,7 @@ utf8strchr(char *s, Rune u)
                 if (r == u)
                         return &(s[i]);
         }
+
         return NULL;
 }
 
_AT_@ -679,6 +685,7 @@ utf8validate(Rune *u, size_t i)
                 *u = UTF_INVALID;
         for (i = 1; *u > utfmax[i]; ++i)
                 ;
+
         return i;
 }
 
_AT_@ -3127,6 +3134,7 @@ xloadcolor(int i, const char *name, Color *ncolor)
                 } else
                         name = colorname[i];
         }
+
         return XftColorAllocName(xw.dpy, xw.vis, xw.cmap, name, ncolor);
 }
 
_AT_@ -3166,6 +3174,7 @@ xsetcolorname(int x, const char *name)
 
         XftColorFree(xw.dpy, xw.vis, xw.cmap, &dc.col[x]);
         dc.col[x] = ncolor;
+
         return 0;
 }
 
_AT_@ -3235,6 +3244,7 @@ xgeommasktogravity(int mask)
         case YNegative:
                 return SouthWestGravity;
         }
+
         return SouthEastGravity;
 }
 
Received on Fri Jul 10 2015 - 14:32:07 CEST

This archive was generated by hypermail 2.3.0 : Fri Jul 10 2015 - 14:36:22 CEST