diff options
author | ru <ru@FreeBSD.org> | 2001-01-12 15:14:28 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-01-12 15:14:28 +0000 |
commit | 31260b45bc2af7097b0b7052546e7da3b6a3cd07 (patch) | |
tree | 841bcf81a7abe8248629be65acf1bad414101120 /contrib/groff | |
parent | 3657c441c5146ab2968970fff33d2d8a4ac336d1 (diff) | |
download | FreeBSD-src-31260b45bc2af7097b0b7052546e7da3b6a3cd07.zip FreeBSD-src-31260b45bc2af7097b0b7052546e7da3b6a3cd07.tar.gz |
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)
Diffstat (limited to 'contrib/groff')
-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 519778f..5f47a894 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) |