From af7cf2f399b410f2137967b44e4590c494289ad3 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 28 Apr 2023 20:23:19 +0000 Subject: Do not rewrite MAN_LP and MAN_P to MAN_PP because doing that causes confusing warning messages complaining about macros that don't even appear in the input file. As a welcome side effect, this also shortens the code... Fixing a minibug reported by Alejandro Colomar . --- man_term.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'man_term.c') diff --git a/man_term.c b/man_term.c index 0b839887..a45a0ed2 100644 --- a/man_term.c +++ b/man_term.c @@ -83,7 +83,6 @@ static int pre_SS(DECL_ARGS); static int pre_SY(DECL_ARGS); static int pre_TP(DECL_ARGS); static int pre_UR(DECL_ARGS); -static int pre_abort(DECL_ARGS); static int pre_alternate(DECL_ARGS); static int pre_ign(DECL_ARGS); static int pre_in(DECL_ARGS); @@ -103,9 +102,9 @@ static const struct man_term_act man_term_acts[MAN_MAX - MAN_TH] = { { pre_SS, post_SH, 0 }, /* SS */ { pre_TP, post_TP, 0 }, /* TP */ { pre_TP, post_TP, 0 }, /* TQ */ - { pre_abort, NULL, 0 }, /* LP */ + { pre_PP, NULL, 0 }, /* LP */ { pre_PP, NULL, 0 }, /* PP */ - { pre_abort, NULL, 0 }, /* P */ + { pre_PP, NULL, 0 }, /* P */ { pre_IP, post_IP, 0 }, /* IP */ { pre_HP, post_HP, 0 }, /* HP */ { NULL, NULL, 0 }, /* SM */ @@ -225,13 +224,6 @@ print_bvspace(struct termp *p, struct roff_node *n, int pardist) term_vspace(p); } - -static int -pre_abort(DECL_ARGS) -{ - abort(); -} - static int pre_ign(DECL_ARGS) { -- cgit