diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2001-01-12 15:14:28 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2001-01-12 15:14:28 +0000 |
commit | 9fa792216e20ea64b2bc37890b5a3842941fb15a (patch) | |
tree | b25834afef441f7f6c311459bc1a4591d41989e6 | |
parent | 55d15a0439a27ff8d2fd7cbe5be7a65d847e28ff (diff) |
Make .Ft and .Vt macros accept punctuation characters as
arguments, make .Vt usable outside the SYNOPSIS section.
Obtained from: mdocNG (not yet submitted for inclusion)
Notes
Notes:
svn path=/head/; revision=70970
-rw-r--r-- | contrib/groff/tmac/tmac.doc | 97 |
1 files changed, 59 insertions, 38 deletions
diff --git a/contrib/groff/tmac/tmac.doc b/contrib/groff/tmac/tmac.doc index 519778fa130a..5f47a894af7d 100644 --- a/contrib/groff/tmac/tmac.doc +++ b/contrib/groff/tmac/tmac.doc @@ -2451,55 +2451,76 @@ .\" NS Vt macro - Variable type (for forcing old style variable declarations) .\" this is not done in the same manner as .Ot for fortrash - clean up later .de Vt -.\" if a function declaration was the last thing given, want vertical space -.if \\n(fD>0 \{\ -. Pp -. nr fD 0 +.if \\n(aC==0 \{\ +. ie \\n(.$==0 .tm Usage: .Vt Variable Type ... \\*(Pu (#\\n(.c) +. el \{\ +. ds mN Vt +. aV \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9 +. \} .\} -.\" if a subroutine was the last thing given, want vertical space -.if \\n(fZ>0 \{\ -. ie \\n(fX==0 \{\ -. Pp -. rs +.if \\n(aC>\\n(aP \{\ +. if \\n(nS>0 \{\ +. \" if a function declaration was the last thing given, want vertical space +. if \\n(fD>0 \{\ +. Pp +. nr fD 0 +. \} +. \" if a subroutine was the last thing given, want vertical space +. if \\n(fZ>0 \{\ +. ie \\n(fX==0 \{\ +. Pp +. rs +. \} +. el .br +. \} +. \} +. nr fX \\n(fX+1 +. as b1 \\*(fT +. nr aP \\n(aP+1 +. nr cF \\n(.f +. nr cZ \\n(.s +. nR +. if \\n(nS>0 \{\ +. ie \\n(oT==0 .br +. el .as b1 \&\ \& . \} -. el .br .\} -.nr fX \\n(fX+1 -.nr cF \\n(.f -.nr cZ \\n(.s -\\*(fT\&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9 -.ie \\n(oT==0 .br -.el \&\ \& -.ft \\n(cF -.fs \\n(cZ .. .\" .\" NS Ft macro - Function type .nr fZ 0 .de Ft -.if \\n(nS>0 \{\ -. if \\n(fZ>0 \{\ -. Pp -. nr fD 0 -. nr fX 0 -. \} -. if \\n(fD>0 \{\ -. Pp -. nr fD 0 -. nr fX 0 +.if \\n(aC==0 \{\ +. ie \\n(.$==0 .tm Usage: .Ft Function Type ... \\*(Pu (#\\n(.c) +. el \{\ +. ds mN Ft +. aV \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9 . \} -. if \\n(fX>0 \{\ -. Pp -. nr fX 0 +.\} +.if \\n(aC>\\n(aP \{\ +. if \\n(nS>0 \{\ +. if \\n(fZ>0 \{\ +. Pp +. nr fD 0 +. nr fX 0 +. \} +. if \\n(fD>0 \{\ +. Pp +. nr fD 0 +. nr fX 0 +. \} +. if \\n(fX>0 \{\ +. Pp +. nr fX 0 +. \} +. nr fY 1 . \} -. nr fY 1 +. as b1 \\*(fT +. nr aP \\n(aP+1 +. nr cF \\n(.f +. nr cZ \\n(.s +. nR .\} -.nr cF \\n(.f -.nr cZ \\n(.s -\&\\*(fT\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9 -.ft \\n(cF -.fs \\n(cZ -.\" .br .. .\" .\" NS Ot macro - Old Function type (fortran - no newline) |