diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-10-12 00:08:15 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-10-12 00:08:15 +0000 |
commit | 66cfe68f0233b3c301173c3bec7198336d19b416 (patch) | |
tree | e9821fa61c6ae680cfa8b6a303737a9f3d9518d6 /html.c | |
parent | 0874c59dbe39089dbe25a81d4eb19ebc63baa9ad (diff) | |
download | mandoc-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 'html.c')
-rw-r--r-- | html.c | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -218,7 +218,6 @@ print_metaf(struct html *h, enum mandoc_esc deco) font = HTMLFONT_BI; break; case ESCAPE_FONT: - /* FALLTHROUGH */ case ESCAPE_FONTROMAN: font = HTMLFONT_NONE; break; @@ -283,11 +282,8 @@ html_strlen(const char *cp) case ESCAPE_ERROR: return sz; case ESCAPE_UNICODE: - /* FALLTHROUGH */ case ESCAPE_NUMBERED: - /* FALLTHROUGH */ case ESCAPE_SPECIAL: - /* FALLTHROUGH */ case ESCAPE_OVERSTRIKE: if (skip) skip = 0; @@ -326,7 +322,7 @@ print_escape(char c) break; case ASCII_HYPH: putchar('-'); - /* FALLTHROUGH */ + break; case ASCII_BREAK: break; default: @@ -371,15 +367,10 @@ print_encode(struct html *h, const char *p, int norecurse) switch (esc) { case ESCAPE_FONT: - /* FALLTHROUGH */ case ESCAPE_FONTPREV: - /* FALLTHROUGH */ case ESCAPE_FONTBOLD: - /* FALLTHROUGH */ case ESCAPE_FONTITALIC: - /* FALLTHROUGH */ case ESCAPE_FONTBI: - /* FALLTHROUGH */ case ESCAPE_FONTROMAN: if (0 == norecurse) print_metaf(h, esc); |