From 86b096259c0fbe73017ef1569c4dffa69f7b4595 Mon Sep 17 00:00:00 2001 From: Jason McIntyre Date: Sat, 24 Jan 2004 21:55:09 +0000 Subject: .Vt is not just a FORTRAN thing; noted by Jared Yanvovich; sadly, our .Vt does not respect punctuation... ok deraadt@ --- share/man/man7/mdoc.7 | 4 ++-- share/man/man7/mdoc.samples.7 | 24 ++++++++++++++++++++---- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/share/man/man7/mdoc.7 b/share/man/man7/mdoc.7 index 9619992ee6b..c87876acd47 100644 --- a/share/man/man7/mdoc.7 +++ b/share/man/man7/mdoc.7 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mdoc.7,v 1.29 2003/09/02 19:08:21 jmc Exp $ +.\" $OpenBSD: mdoc.7,v 1.30 2004/01/24 21:55:08 jmc Exp $ .\" .\" Copyright (c) 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -314,7 +314,7 @@ Produces .It Li \&Pa Ta Yes Ta Yes Ta "Pathname or file name." .It Li \&St Ta Yes Ta Yes Ta "Standards (see below)." .It Li \&Va Ta Yes Ta Yes Ta "Variable name." -.It Li \&Vt Ta Yes Ta Yes Ta "Variable type (Fortran only)." +.It Li \&Vt Ta Yes Ta Yes Ta "Variable type." .It Li \&Xr Ta Yes Ta Yes Ta "Manual Page Cross Reference." .El .Pp diff --git a/share/man/man7/mdoc.samples.7 b/share/man/man7/mdoc.samples.7 index eec8d73cde3..b48ea59e1f8 100644 --- a/share/man/man7/mdoc.samples.7 +++ b/share/man/man7/mdoc.samples.7 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mdoc.samples.7,v 1.48 2003/12/20 11:36:33 jmc Exp $ +.\" $OpenBSD: mdoc.samples.7,v 1.49 2004/01/24 21:55:08 jmc Exp $ .\" $NetBSD: mdoc.samples.7,v 1.5 1996/04/03 20:17:34 jtc Exp $ .\" .\" Copyright (c) 1990, 1993 @@ -1475,6 +1475,22 @@ are: .It Li "-susv3" .St -susv3 .El +.Ss Variable Types +The +.Sq .Vt +macro may be used whenever a type is referenced. +In the +.Sx SYNOPSIS +section, it causes a line break +.Pq useful for old-style variable declarations . +.Pp +.Dl Usage: .Vt Ao type Ac ... +.Bl -tag -width ".Vt extern char *optarg;" -compact -offset 14n +.It Li \&.Vt extern char *optarg; +.Vt extern char *optarg; +.It Li \&.Vt FILE * +.Vt FILE * +.El .Ss Variables Generic variable reference: .Pp @@ -2087,9 +2103,6 @@ Toggles spacing on or off. .It \&.Ud Prints .Dq currently under development. -.It \&.Vt -Variable type -.Pq Fortran only . .El .Sh PAGE STRUCTURE DOMAIN .Ss Section Headers @@ -3268,6 +3281,9 @@ The list and display macros do not do any keeps and certainly should be able to. .Pp Section 3f has not been added to the header routines. +.Pp +.Sq .Vt +does not respect punctuation. .\" Note what happens if the parameter list overlaps a newline .\" boundary. .\" to make sure a line boundary is crossed: -- cgit v1.2.3