summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-05 16:14:16 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-05 16:14:16 +0000
commit6fd4c9d365c408c83f9382855b2310891154a1f7 (patch)
tree15a259292abce1f6d9a0d32a644cd43e11a241cd
parentdb89a3957c75469c4a73ca032acb325db8294f7a (diff)
downloadmandoc-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.320
-rw-r--r--man.724
-rw-r--r--man.c3
-rw-r--r--man.h3
-rw-r--r--man_html.c10
-rw-r--r--man_macro.c3
-rw-r--r--man_term.c7
-rw-r--r--man_validate.c4
8 files changed, 5 insertions, 69 deletions
diff --git a/man.3 b/man.3
index bdbd9e3f..8b351cc0 100644
--- a/man.3
+++ b/man.3
@@ -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
diff --git a/man.7 b/man.7
index 01b2d27a..ab53e802 100644
--- a/man.7
+++ b/man.7
@@ -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
diff --git a/man.c b/man.c
index dfd8b7d1..32071c4a 100644
--- a/man.c
+++ b/man.c
@@ -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;
diff --git a/man.h b/man.h
index 4de03fbf..0f8279cc 100644
--- a/man.h
+++ b/man.h
@@ -53,9 +53,6 @@ enum mant {
MAN_DT,
MAN_UC,
MAN_PD,
- MAN_Sp,
- MAN_Vb,
- MAN_Ve,
MAN_AT,
MAN_in,
MAN_MAX
diff --git a/man_html.c b/man_html.c
index 2c0065bd..59d4ca0a 100644
--- a/man_html.c
+++ b/man_html.c
@@ -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 */
};
diff --git a/man_term.c b/man_term.c
index 282d6842..3847b2f9 100644
--- a/man_term.c
+++ b/man_term.c
@@ -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 */
};