From c3f747c90e1cc36f4214d014b3220dd1518cf609 Mon Sep 17 00:00:00 2001 From: sthen Date: Thu, 24 Apr 2014 21:22:05 +0000 Subject: [PATCH] Re-add rcsid, and switch back to our previous descriptions for -iDsym[=value] and -iUsym which jmc and I find a bit easier to understand. ok jmc --- usr.bin/unifdef/unifdef.1 | 42 +++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/usr.bin/unifdef/unifdef.1 b/usr.bin/unifdef/unifdef.1 index 6bb86ef00b8..1e305be603a 100644 --- a/usr.bin/unifdef/unifdef.1 +++ b/usr.bin/unifdef/unifdef.1 @@ -1,3 +1,4 @@ +.\" $OpenBSD: unifdef.1,v 1.20 2014/04/24 21:22:05 sthen Exp $ .\" Copyright (c) 1985, 1991, 1993 .\" The Regents of the University of California. All rights reserved. .\" Copyright (c) 2002 - 2013 Tony Finch . All rights reserved. @@ -29,7 +30,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: April 18 2014 $ +.Dd $Mdocdate: April 24 2014 $ .Dt UNIFDEF 1 .Os .Sh NAME @@ -192,17 +193,38 @@ Specify that a macro is undefined. If the same macro appears in more than one argument, the last occurrence dominates. .Pp -.It Fl iD Ns Ar sym Ns Op = Ns Ar val +.Sm off +.It Xo +.Fl iD Ar sym +.Op = Ar val +.Xc +.Sm on .It Fl iU Ns Ar sym -C strings, comments, -and line continuations -are ignored within -.Ic #ifdef +Ignore +.Ic #ifdef Ns s . +If your C code uses +.Ic #ifdef Ns s +to delimit non-C lines, +such as comments +or code which is under construction, +then you must tell +.Nm +which symbols are used for that purpose so that it will not try to parse +comments and line continuations +inside those +.Ic #ifdef Ns s . +One specifies ignored symbols with +.Sm off +.Fl iD Ar sym Op = Ar val +.Sm on and -.Ic #ifndef -blocks -controlled by macros -specified with these options. +.Fl iU Ns Ar sym , +similar to +.Sm off +.Fl D Ar sym Op = Ar val +.Sm on +and +.Fl U Ns Ar sym . .Pp .It Fl f Ar defile The file -- 2.20.1