aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-10-12 00:08:15 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-10-12 00:08:15 +0000
commit95ec7b52881820b8d6d9d9497b358d00a856ca28 (patch)
treebc972436bf5b40600e26a4629ae008072ef788f7 /roff.c
parent511aaa109533ca3acc1464c1795ba3ac8dc4c732 (diff)
downloadmandoc-95ec7b52881820b8d6d9d9497b358d00a856ca28.tar.gz
mandoc-95ec7b52881820b8d6d9d9497b358d00a856ca28.tar.zst
mandoc-95ec7b52881820b8d6d9d9497b358d00a856ca28.zip
To make the code more readable, delete 283 /* FALLTHROUGH */ comments
that were right between two adjacent case statement. Keep only those 24 where the first case actually executes some code before falling through to the next case.
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/roff.c b/roff.c
index c91b258d..0f8a194c 100644
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.277 2015/10/06 18:32:20 schwarze Exp $ */
+/* $Id: roff.c,v 1.278 2015/10/12 00:08:16 schwarze Exp $ */
/*
* Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -1037,7 +1037,6 @@ roff_node_append(struct roff_man *man, struct roff_node *n)
break;
/* FALLTHROUGH */
case ROFFT_TAIL:
- /* FALLTHROUGH */
case ROFFT_HEAD:
n->norm = n->parent->norm;
break;
@@ -1335,7 +1334,6 @@ roff_res(struct roff *r, struct buf *buf, int ln, int pos)
res = NULL;
break;
case 'B':
- /* FALLTHROUGH */
case 'w':
term = cp[1];
/* FALLTHROUGH */
@@ -1410,11 +1408,8 @@ roff_res(struct roff *r, struct buf *buf, int ln, int pos)
}
switch (mandoc_escape(&cp, NULL, NULL)) {
case ESCAPE_SPECIAL:
- /* FALLTHROUGH */
case ESCAPE_UNICODE:
- /* FALLTHROUGH */
case ESCAPE_NUMBERED:
- /* FALLTHROUGH */
case ESCAPE_OVERSTRIKE:
naml++;
break;
@@ -1721,14 +1716,10 @@ roff_cblock(ROFF_ARGS)
switch (r->last->tok) {
case ROFF_am:
/* ROFF_am1 is remapped to ROFF_am in roff_block(). */
- /* FALLTHROUGH */
case ROFF_ami:
- /* FALLTHROUGH */
case ROFF_de:
/* ROFF_de1 is remapped to ROFF_de in roff_block(). */
- /* FALLTHROUGH */
case ROFF_dei:
- /* FALLTHROUGH */
case ROFF_ig:
break;
default:
@@ -1770,9 +1761,7 @@ roff_ccond(struct roff *r, int ln, int ppos)
switch (r->last->tok) {
case ROFF_el:
- /* FALLTHROUGH */
case ROFF_ie:
- /* FALLTHROUGH */
case ROFF_if:
break;
default:
@@ -2059,12 +2048,10 @@ roff_getnum(const char *v, int *pos, int *res, int flags)
scaled = *res * 240 / 2.54;
break;
case 'v':
- /* FALLTHROUGH */
case 'P':
scaled = *res * 40;
break;
case 'm':
- /* FALLTHROUGH */
case 'n':
scaled = *res * 24;
break;
@@ -2153,18 +2140,13 @@ roff_evalcond(struct roff *r, int ln, char *v, int *pos)
case '\0':
return 0;
case 'n':
- /* FALLTHROUGH */
case 'o':
(*pos)++;
return wanttrue;
case 'c':
- /* FALLTHROUGH */
case 'd':
- /* FALLTHROUGH */
case 'e':
- /* FALLTHROUGH */
case 't':
- /* FALLTHROUGH */
case 'v':
(*pos)++;
return !wanttrue;
@@ -2340,17 +2322,11 @@ roff_getop(const char *v, int *pos, char *res)
switch (*res) {
case '+':
- /* FALLTHROUGH */
case '-':
- /* FALLTHROUGH */
case '*':
- /* FALLTHROUGH */
case '/':
- /* FALLTHROUGH */
case '%':
- /* FALLTHROUGH */
case '&':
- /* FALLTHROUGH */
case ':':
break;
case '<':