source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: schwarze@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: /* NOTREACHED */ after abort() is silly, delete it
Date: Fri, 25 Sep 2015 19:54:35 -0500 (EST)	[thread overview]
Message-ID: <18260573959868330995.enqueue@fantadrom.bsd.lv> (raw)

Log Message:
-----------
/* NOTREACHED */ after abort() is silly, delete it

Modified Files:
--------------
    mdocml:
        html.c
        man_html.c
        man_macro.c
        mdoc_html.c
        mdoc_macro.c
        mdoc_term.c
        mdoc_validate.c
        out.c
        roff.c
        tbl_opts.c
        tbl_term.c
        term.c
        term_ascii.c
        tree.c

Revision Data
-------------
Index: mdoc_html.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mdoc_html.c,v
retrieving revision 1.235
retrieving revision 1.236
diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.235 -r1.236
--- mdoc_html.c
+++ mdoc_html.c
@@ -1000,7 +1000,6 @@ mdoc_bl_pre(MDOC_ARGS)
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 
 	return(1);
@@ -1997,7 +1996,6 @@ mdoc__x_pre(MDOC_ARGS)
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 
 	if (MDOC__U != n->tok) {
@@ -2044,7 +2042,6 @@ mdoc_bk_pre(MDOC_ARGS)
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 
 	return(1);
@@ -2124,7 +2121,6 @@ mdoc_quote_pre(MDOC_ARGS)
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 
 	h->flags |= HTML_NOSPACE;
@@ -2192,7 +2188,6 @@ mdoc_quote_post(MDOC_ARGS)
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 }
 
Index: mdoc_term.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mdoc_term.c,v
retrieving revision 1.326
retrieving revision 1.327
diff -Lmdoc_term.c -Lmdoc_term.c -u -p -r1.326 -r1.327
--- mdoc_term.c
+++ mdoc_term.c
@@ -1721,7 +1721,6 @@ termp_xx_pre(DECL_ARGS)
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 
 	term_word(p, pp);
@@ -1918,7 +1917,6 @@ termp_quote_pre(DECL_ARGS)
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 
 	p->flags |= TERMP_NOSPACE;
@@ -1989,7 +1987,6 @@ termp_quote_post(DECL_ARGS)
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 }
 
@@ -2218,7 +2215,6 @@ termp_bk_pre(DECL_ARGS)
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 
 	return(1);
Index: man_html.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/man_html.c,v
retrieving revision 1.117
retrieving revision 1.118
diff -Lman_html.c -Lman_html.c -u -p -r1.117 -r1.118
--- man_html.c
+++ man_html.c
@@ -427,7 +427,6 @@ man_alt_pre(MAN_ARGS)
 			break;
 		default:
 			abort();
-			/* NOTREACHED */
 		}
 
 		if (i)
Index: mdoc_validate.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mdoc_validate.c,v
retrieving revision 1.292
retrieving revision 1.293
diff -Lmdoc_validate.c -Lmdoc_validate.c -u -p -r1.292 -r1.293
--- mdoc_validate.c
+++ mdoc_validate.c
@@ -657,7 +657,6 @@ pre_bd(PRE_ARGS)
 			break;
 		default:
 			abort();
-			/* NOTREACHED */
 		}
 		if (DISP__NONE == dt)
 			continue;
@@ -1038,7 +1037,6 @@ post_defaults(POST_ARGS)
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 	mdoc->last = nn;
 }
@@ -2088,7 +2086,6 @@ pre_literal(PRE_ARGS)
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 }
 
Index: tree.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/tree.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -Ltree.c -Ltree.c -u -p -r1.66 -r1.67
--- tree.c
+++ tree.c
@@ -98,7 +98,6 @@ print_mdoc(const struct roff_node *n, in
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 
 	switch (n->type) {
@@ -138,7 +137,6 @@ print_mdoc(const struct roff_node *n, in
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 
 	if (n->span) {
@@ -212,7 +210,6 @@ print_man(const struct roff_node *n, int
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 
 	switch (n->type) {
@@ -238,7 +235,6 @@ print_man(const struct roff_node *n, int
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 
 	if (n->span) {
Index: term.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/term.c,v
retrieving revision 1.250
retrieving revision 1.251
diff -Lterm.c -Lterm.c -u -p -r1.250 -r1.251
--- term.c
+++ term.c
@@ -820,7 +820,6 @@ term_vspan(const struct termp *p, const 
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 	ri = r > 0.0 ? r + 0.4995 : r - 0.4995;
 	return(ri < 66 ? ri : 1);
Index: roff.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/roff.c,v
retrieving revision 1.275
retrieving revision 1.276
diff -Lroff.c -Lroff.c -u -p -r1.275 -r1.276
--- roff.c
+++ roff.c
@@ -1022,7 +1022,6 @@ roff_node_append(struct roff_man *man, s
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 	n->parent->nchild++;
 	n->parent->last = n;
@@ -2060,12 +2059,12 @@ roff_getnum(const char *v, int *pos, int
 		scaled = *res * 240 / 2.54;
 		break;
 	case 'v':
-		/* FALLTROUGH */
+		/* FALLTHROUGH */
 	case 'P':
 		scaled = *res * 40;
 		break;
 	case 'm':
-		/* FALLTROUGH */
+		/* FALLTHROUGH */
 	case 'n':
 		scaled = *res * 24;
 		break;
Index: out.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/out.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -Lout.c -Lout.c -u -p -r1.59 -r1.60
--- out.c
+++ out.c
@@ -262,7 +262,6 @@ tblcalc_data(struct rofftbl *tbl, struct
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 }
 
Index: html.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/html.c,v
retrieving revision 1.186
retrieving revision 1.187
diff -Lhtml.c -Lhtml.c -u -p -r1.186 -r1.187
--- html.c
+++ html.c
@@ -224,7 +224,6 @@ print_metaf(struct html *h, enum mandoc_
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 
 	if (h->metaf) {
Index: term_ascii.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/term_ascii.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -Lterm_ascii.c -Lterm_ascii.c -u -p -r1.47 -r1.48
--- term_ascii.c
+++ term_ascii.c
@@ -260,7 +260,6 @@ ascii_hspan(const struct termp *p, const
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 	return(r > 0.0 ? r + 0.01 : r - 0.01);
 }
Index: tbl_opts.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/tbl_opts.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -Ltbl_opts.c -Ltbl_opts.c -u -p -r1.20 -r1.21
--- tbl_opts.c
+++ tbl_opts.c
@@ -99,7 +99,6 @@ arg(struct tbl_node *tbl, int ln, const 
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 
 	if (len == 0)
Index: tbl_term.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/tbl_term.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -Ltbl_term.c -Ltbl_term.c -u -p -r1.40 -r1.41
--- tbl_term.c
+++ tbl_term.c
@@ -303,7 +303,6 @@ tbl_data(struct termp *tp, const struct 
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 }
 
Index: man_macro.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/man_macro.c,v
retrieving revision 1.110
retrieving revision 1.111
diff -Lman_macro.c -Lman_macro.c -u -p -r1.110 -r1.111
--- man_macro.c
+++ man_macro.c
@@ -225,7 +225,6 @@ blk_close(MACRO_PROT_ARGS)
 		break;
 	default:
 		abort();
-		/* NOTREACHED */
 	}
 
 	for (nn = man->last->parent; nn; nn = nn->parent)
Index: mdoc_macro.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mdoc_macro.c,v
retrieving revision 1.200
retrieving revision 1.201
diff -Lmdoc_macro.c -Lmdoc_macro.c -u -p -r1.200 -r1.201
--- mdoc_macro.c
+++ mdoc_macro.c
@@ -363,7 +363,6 @@ rew_alt(int tok)
 	default:
 		return(tok);
 	}
-	/* NOTREACHED */
 }
 
 static void
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

                 reply	other threads:[~2015-09-26  0:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18260573959868330995.enqueue@fantadrom.bsd.lv \
    --to=schwarze@mdocml.bsd.lv \
    --cc=source@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).