[hackers] [st] code-style: add fallthrough comment || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sat, 9 May 2020 20:21:52 +0200 (CEST)

commit 914fb825df3bde7abdd7947e54f8bf4d2b55e34e
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Sat May 9 14:43:31 2020 +0200
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Sat May 9 14:43:31 2020 +0200

    code-style: add fallthrough comment
    
    Patch by Steve Ward, thanks.

diff --git a/st.c b/st.c
index 1414f98..a8de17d 100644
--- a/st.c
+++ b/st.c
_AT_@ -2153,6 +2153,7 @@ tcontrolcode(uchar ascii)
                 return;
         case '\032': /* SUB */
                 tsetchar('?', &term.c.attr, term.c.x, term.c.y);
+ /* FALLTHROUGH */
         case '\030': /* CAN */
                 csireset();
                 break;
diff --git a/x.c b/x.c
index 7bfc36f..1dc44d6 100644
--- a/x.c
+++ b/x.c
_AT_@ -1528,6 +1528,7 @@ xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og)
                 switch (win.cursor) {
                 case 7: /* st extension: snowman (U+2603) */
                         g.u = 0x2603;
+ /* FALLTHROUGH */
                 case 0: /* Blinking Block */
                 case 1: /* Blinking Block (Default) */
                 case 2: /* Steady Block */
Received on Sat May 09 2020 - 20:21:52 CEST

This archive was generated by hypermail 2.3.0 : Sat May 09 2020 - 20:24:40 CEST