diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2023-04-28 20:23:19 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2023-04-28 20:23:19 +0000 |
commit | af7cf2f399b410f2137967b44e4590c494289ad3 (patch) | |
tree | 4741ec0e988ad21b6eb6acd8cc2094b67efbd627 /man_term.c | |
parent | 0b0554bfc6a91450265f23d89c425a979a42d366 (diff) | |
download | mandoc-af7cf2f399b410f2137967b44e4590c494289ad3.tar.gz |
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 <alx dot manpages at gmail dot com>.
Diffstat (limited to 'man_term.c')
-rw-r--r-- | man_term.c | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -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) { |