From: Kristaps Dzonsons Date: Sat, 21 Mar 2009 13:37:31 +0000 (+0000) Subject: More macros freed from unnecessary limitations on numargs. X-Git-Tag: VERSION_1_7_5~40 X-Git-Url: https://git.cameronkatri.com/mandoc.git/commitdiff_plain/a67acded5ccca92765610c58b5b79e52cd8d7acb More macros freed from unnecessary limitations on numargs. --- diff --git a/mdoc.7 b/mdoc.7 index 7455b028..c262913d 100644 --- a/mdoc.7 +++ b/mdoc.7 @@ -1,4 +1,4 @@ -.\" $Id: mdoc.7,v 1.10 2009/03/20 15:14:01 kristaps Exp $ +.\" $Id: mdoc.7,v 1.11 2009/03/21 13:37:31 kristaps Exp $ .\" .\" Copyright (c) 2009 Kristaps Dzonsons .\" @@ -16,7 +16,7 @@ .\" TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR .\" PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: March 20 2009 $ +.Dd $Mdocdate: March 21 2009 $ .Dt mdoc 7 .Os .\" SECTION @@ -782,9 +782,9 @@ then the macro accepts an arbitrary number of arguments. .It \&.Ar Ta Yes Ta Yes Ta n .It \&.Cd Ta Yes Ta \&No Ta >0 .It \&.Cm Ta Yes Ta Yes Ta n -.It \&.Dv Ta Yes Ta Yes Ta >0 +.It \&.Dv Ta Yes Ta Yes Ta n .It \&.Er Ta Yes Ta Yes Ta >0 -.It \&.Ev Ta Yes Ta Yes Ta >0 +.It \&.Ev Ta Yes Ta Yes Ta n .It \&.Ex Ta \&No Ta \&No Ta 0 .It \&.Fa Ta Yes Ta Yes Ta >0 .It \&.Fd Ta \&No Ta \&No Ta >0 @@ -793,14 +793,14 @@ then the macro accepts an arbitrary number of arguments. .It \&.Ft Ta \&No Ta Yes Ta n .It \&.Ic Ta Yes Ta Yes Ta >0 .It \&.In Ta \&No Ta \&No Ta n -.It \&.Li Ta Yes Ta Yes Ta >0 +.It \&.Li Ta Yes Ta Yes Ta n .It \&.Nd Ta \&No Ta \&No Ta n .It \&.Nm Ta Yes Ta Yes Ta n .It \&.Ot Ta \&No Ta \&No Ta n .It \&.Pa Ta Yes Ta Yes Ta n .It \&.Rv Ta \&No Ta \&No Ta 0 .It \&.St Ta \&No Ta Yes Ta 1 -.It \&.Va Ta Yes Ta Yes Ta >0 +.It \&.Va Ta Yes Ta Yes Ta n .It \&.Vt Ta Yes Ta Yes Ta >0 .It \&.Xr Ta Yes Ta Yes Ta >0, <3 .It \&.%A Ta \&No Ta \&No Ta >0 @@ -819,7 +819,7 @@ then the macro accepts an arbitrary number of arguments. .It \&.Bsx Ta Yes Ta Yes Ta n .It \&.Bx Ta Yes Ta Yes Ta n .It \&.Db Ta \&No Ta \&No Ta 1 -.It \&.Em Ta Yes Ta Yes Ta >0 +.It \&.Em Ta Yes Ta Yes Ta n .It \&.Fx Ta Yes Ta Yes Ta n .It \&.Ms Ta \&No Ta Yes Ta >0 .It \&.No Ta Yes Ta Yes Ta 0 diff --git a/validate.c b/validate.c index 11ea60e4..925b9ac8 100644 --- a/validate.c +++ b/validate.c @@ -1,4 +1,4 @@ -/* $Id: validate.c,v 1.89 2009/03/21 13:09:29 kristaps Exp $ */ +/* $Id: validate.c,v 1.90 2009/03/21 13:37:31 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -216,9 +216,9 @@ const struct valids mdoc_valids[MDOC_MAX] = { { NULL, NULL }, /* Ar */ { pres_cd, posts_text }, /* Cd */ { NULL, NULL }, /* Cm */ - { NULL, posts_text }, /* Dv */ + { NULL, NULL }, /* Dv */ { pres_er, posts_text }, /* Er */ - { NULL, posts_text }, /* Ev */ + { NULL, NULL }, /* Ev */ { pres_ex, posts_ex }, /* Ex */ { NULL, posts_text }, /* Fa */ { pres_fd, posts_wtext }, /* Fd */ @@ -227,7 +227,7 @@ const struct valids mdoc_valids[MDOC_MAX] = { { NULL, posts_wtext }, /* Ft */ { NULL, posts_text }, /* Ic */ { NULL, posts_in }, /* In */ - { NULL, posts_text }, /* Li */ + { NULL, NULL }, /* Li */ { NULL, posts_wtext }, /* Nd */ { NULL, posts_nm }, /* Nm */ { NULL, posts_wline }, /* Op */ @@ -235,7 +235,7 @@ const struct valids mdoc_valids[MDOC_MAX] = { { NULL, NULL }, /* Pa */ { pres_rv, posts_rv }, /* Rv */ { NULL, posts_st }, /* St */ - { NULL, posts_text }, /* Va */ + { NULL, NULL }, /* Va */ { NULL, posts_text }, /* Vt */ { NULL, posts_xr }, /* Xr */ { NULL, posts_text }, /* %A */