summaryrefslogtreecommitdiffstats
path: root/mdoc.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
commit66cfe68f0233b3c301173c3bec7198336d19b416 (patch)
treee9821fa61c6ae680cfa8b6a303737a9f3d9518d6 /mdoc.c
parent0874c59dbe39089dbe25a81d4eb19ebc63baa9ad (diff)
downloadmandoc-66cfe68f0233b3c301173c3bec7198336d19b416.tar.gz
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 'mdoc.c')
-rw-r--r--mdoc.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/mdoc.c b/mdoc.c
index 54cd3ad7..32530b26 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -182,13 +182,9 @@ mdoc_block_alloc(struct roff_man *mdoc, int line, int pos,
switch (tok) {
case MDOC_Bd:
- /* FALLTHROUGH */
case MDOC_Bf:
- /* FALLTHROUGH */
case MDOC_Bl:
- /* FALLTHROUGH */
case MDOC_En:
- /* FALLTHROUGH */
case MDOC_Rs:
p->norm = mandoc_calloc(1, sizeof(union mdoc_data));
break;
@@ -472,25 +468,17 @@ mdoc_isdelim(const char *p)
if ('\0' == p[1])
switch (p[0]) {
case '(':
- /* FALLTHROUGH */
case '[':
return DELIM_OPEN;
case '|':
return DELIM_MIDDLE;
case '.':
- /* FALLTHROUGH */
case ',':
- /* FALLTHROUGH */
case ';':
- /* FALLTHROUGH */
case ':':
- /* FALLTHROUGH */
case '?':
- /* FALLTHROUGH */
case '!':
- /* FALLTHROUGH */
case ')':
- /* FALLTHROUGH */
case ']':
return DELIM_CLOSE;
default: