diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-05 16:14:16 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-05 16:14:16 +0000 |
commit | 6fd4c9d365c408c83f9382855b2310891154a1f7 (patch) | |
tree | 15a259292abce1f6d9a0d32a644cd43e11a241cd | |
parent | db89a3957c75469c4a73ca032acb325db8294f7a (diff) | |
download | mandoc-6fd4c9d365c408c83f9382855b2310891154a1f7.tar.gz |
Remove `Sp', `Vb', and `Ve' (as per schwarze@'s changes in OpenBSD),
which are now accomodated for the new libroff modifications.
-rw-r--r-- | man.3 | 20 | ||||
-rw-r--r-- | man.7 | 24 | ||||
-rw-r--r-- | man.c | 3 | ||||
-rw-r--r-- | man.h | 3 | ||||
-rw-r--r-- | man_html.c | 10 | ||||
-rw-r--r-- | man_macro.c | 3 | ||||
-rw-r--r-- | man_term.c | 7 | ||||
-rw-r--r-- | man_validate.c | 4 |
8 files changed, 5 insertions, 69 deletions
@@ -81,27 +81,11 @@ Beyond the full set of macros defined in .Xr man 7 , the .Nm -library also accepts the following macros: +library also accepts the following macro: .Pp .Bl -tag -width Ds -compact .It PD -Has no effect. Handled as a current-scope line macro. -.It Sp -A synonym for -.Sq sp 0.5v -.Pq part of the standard preamble for Perl documentation . -Handled as a line macro. -.It Vb -A synonym for -.Sq nf -.Pq part of the standard preamble for Perl documentation . -Handled as a current-scope line macro. -.It Ve -A synonym for -.Sq fi , -closing -.Sq Vb -.Pq part of the standard preamble for Perl documentation . +Has no effect. Handled as a current-scope line macro. .El .Ss Types @@ -430,9 +430,6 @@ The syntax is as follows: .It Sx \&nf Ta 0 Ta current Ta compat .It Sx \&r Ta 0 Ta current Ta compat .It Sx \&sp Ta 1 Ta current Ta compat -.\" .It Sx \&Sp Ta <1 Ta current Ta compat -.\" .It Sx \&Vb Ta <1 Ta current Ta compat -.\" .It Sx \&Ve Ta 0 Ta current Ta compat .El .Pp Macros marked as @@ -821,12 +818,6 @@ See also .Sx \&P , and .Sx \&PP . -.\" . -.\" . -.\" .Ss \&PD -.\" Has no effect. Included for compatibility. -.\" . -.\" . .Ss \&UC Sets the volume for the footer for compatibility with man pages from BSD releases. @@ -897,21 +888,6 @@ Defaults to 1, if unspecified. .Pp See also .Sx \&br . -.\" .Ss \&Sp -.\" A synonym for -.\" .Sx \&sp -.\" .Cm 0.5v . -.\" . -.\" .Ss \&Vb -.\" A synonym for -.\" .Sx \&nf . -.\" Accepts an argument (the height of the formatted space) which is -.\" disregarded. -.\" . -.\" .Ss \&Ve -.\" A synonym for -.\" .Sx \&fi . -.\" . .Sh COMPATIBILITY This section documents areas of questionable portability between implementations of the @@ -39,8 +39,7 @@ const char *const __man_macronames[MAN_MAX] = { "RI", "na", "i", "sp", "nf", "fi", "r", "RE", "RS", "DT", "UC", "PD", - "Sp", "Vb", "Ve", "AT", - "in" + "AT", "in" }; const char * const *man_macronames = __man_macronames; @@ -53,9 +53,6 @@ enum mant { MAN_DT, MAN_UC, MAN_PD, - MAN_Sp, - MAN_Vb, - MAN_Ve, MAN_AT, MAN_in, MAN_MAX @@ -112,9 +112,6 @@ static const struct htmlman mans[MAN_MAX] = { { man_ign_pre, NULL }, /* DT */ { man_ign_pre, NULL }, /* UC */ { man_ign_pre, NULL }, /* PD */ - { man_br_pre, NULL }, /* Sp */ - { man_literal_pre, NULL }, /* Vb */ - { man_literal_pre, NULL }, /* Ve */ { man_ign_pre, NULL }, /* AT */ { man_in_pre, NULL }, /* in */ }; @@ -366,9 +363,6 @@ man_br_pre(MAN_ARGS) SCALE_VS_INIT(&su, 1); switch (n->tok) { - case (MAN_Sp): - SCALE_VS_INIT(&su, 0.5); - break; case (MAN_sp): if (n->child) a2roffsu(n->child->string, &su, SCALE_VS); @@ -738,11 +732,9 @@ man_literal_pre(MAN_ARGS) switch (n->tok) { case (MAN_nf): - /* FALLTHROUGH */ - case (MAN_Vb): print_otag(h, TAG_BR, 0, NULL); mh->fl |= MANH_LITERAL; - return(MAN_Vb != n->tok); + break; default: mh->fl &= ~MANH_LITERAL; break; diff --git a/man_macro.c b/man_macro.c index 2b8bbad4..43a4940c 100644 --- a/man_macro.c +++ b/man_macro.c @@ -79,9 +79,6 @@ const struct man_macro __man_macros[MAN_MAX] = { { in_line_eoln, 0 }, /* DT */ { in_line_eoln, 0 }, /* UC */ { in_line_eoln, 0 }, /* PD */ - { in_line_eoln, MAN_NSCOPED }, /* Sp */ - { in_line_eoln, 0 }, /* Vb */ - { in_line_eoln, 0 }, /* Ve */ { in_line_eoln, 0 }, /* AT */ { in_line_eoln, 0 }, /* in */ }; @@ -137,9 +137,6 @@ static const struct termact termacts[MAN_MAX] = { { pre_ign, NULL, 0 }, /* DT */ { pre_ign, NULL, 0 }, /* UC */ { pre_ign, NULL, 0 }, /* PD */ - { pre_sp, NULL, MAN_NOTEXT }, /* Sp */ - { pre_literal, NULL, 0 }, /* Vb */ - { pre_literal, NULL, 0 }, /* Ve */ { pre_ign, NULL, 0 }, /* AT */ { pre_in, NULL, MAN_NOTEXT }, /* in */ }; @@ -254,11 +251,9 @@ pre_literal(DECL_ARGS) term_newln(p); switch (n->tok) { - case (MAN_Vb): - /* FALLTHROUGH */ case (MAN_nf): mt->fl |= MANT_LITERAL; - return(MAN_Vb != n->tok); + break; default: mt->fl &= ~MANT_LITERAL; break; diff --git a/man_validate.c b/man_validate.c index 4a551db4..a3a8669a 100644 --- a/man_validate.c +++ b/man_validate.c @@ -70,7 +70,6 @@ static v_check posts_part[] = { check_part, NULL }; static v_check posts_sec[] = { check_sec, NULL }; static v_check posts_th[] = { check_ge2, check_le5, check_title, post_TH, NULL }; static v_check posts_uc[] = { post_UC, NULL }; -static v_check posts_vb[] = { check_le1, post_nf, NULL }; static v_check pres_bline[] = { check_bline, NULL }; @@ -107,9 +106,6 @@ static const struct man_valid man_valids[MAN_MAX] = { { NULL, NULL }, /* DT */ { NULL, posts_uc }, /* UC */ { NULL, NULL }, /* PD */ - { NULL, posts_le1 }, /* Sp */ /* FIXME: should warn only. */ - { pres_bline, posts_vb }, /* Vb */ /* FIXME: should warn only. */ - { pres_bline, posts_fi }, /* Ve */ { NULL, posts_at }, /* AT */ { NULL, NULL }, /* in */ }; |