WARNSify, fix .Nm usage, KNFify
This commit is contained in:
parent
9998247baa
commit
8d32174590
@ -1,4 +1,4 @@
|
|||||||
.\" $NetBSD: unifdef.1,v 1.4 1994/12/07 00:33:48 jtc Exp $
|
.\" $NetBSD: unifdef.1,v 1.5 1997/10/20 02:23:13 lukem Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 1985, 1991, 1993
|
.\" Copyright (c) 1985, 1991, 1993
|
||||||
.\" The Regents of the University of California. All rights reserved.
|
.\" The Regents of the University of California. All rights reserved.
|
||||||
@ -43,7 +43,7 @@
|
|||||||
.Nm unifdef
|
.Nm unifdef
|
||||||
.Nd remove ifdef'ed lines
|
.Nd remove ifdef'ed lines
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm unifdef
|
.Nm
|
||||||
.Op Fl clt
|
.Op Fl clt
|
||||||
.Oo
|
.Oo
|
||||||
.Fl D Ns Ar sym
|
.Fl D Ns Ar sym
|
||||||
@ -54,10 +54,10 @@
|
|||||||
.Ar ...
|
.Ar ...
|
||||||
.Op Ar file
|
.Op Ar file
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
.Nm Unifdef
|
.Nm
|
||||||
is useful for removing ifdef'ed lines
|
is useful for removing ifdef'ed lines
|
||||||
from a file while otherwise leaving the file alone.
|
from a file while otherwise leaving the file alone.
|
||||||
.Nm Unifdef
|
.Nm
|
||||||
acts on
|
acts on
|
||||||
#ifdef, #ifndef, #else, and #endif lines,
|
#ifdef, #ifndef, #else, and #endif lines,
|
||||||
and it knows only enough about C
|
and it knows only enough about C
|
||||||
@ -97,7 +97,7 @@ If the
|
|||||||
.Fl c
|
.Fl c
|
||||||
flag is specified,
|
flag is specified,
|
||||||
then the operation of
|
then the operation of
|
||||||
.Nm unifdef
|
.Nm
|
||||||
is complemented,
|
is complemented,
|
||||||
i.e. the lines that would have been removed or blanked
|
i.e. the lines that would have been removed or blanked
|
||||||
are retained and vice versa.
|
are retained and vice versa.
|
||||||
@ -116,7 +116,7 @@ If your C code uses ifdefs to delimit non-C lines,
|
|||||||
such as comments
|
such as comments
|
||||||
or code which is under construction,
|
or code which is under construction,
|
||||||
then you must tell
|
then you must tell
|
||||||
.Nm unifdef
|
.Nm
|
||||||
which symbols are used for that purpose so that it won't try to parse
|
which symbols are used for that purpose so that it won't try to parse
|
||||||
for quotes and comments
|
for quotes and comments
|
||||||
inside those ifdefs.
|
inside those ifdefs.
|
||||||
@ -131,7 +131,7 @@ and
|
|||||||
above.
|
above.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
.Nm Unifdef
|
.Nm
|
||||||
copies its output to
|
copies its output to
|
||||||
.Em stdout
|
.Em stdout
|
||||||
and will take its input from
|
and will take its input from
|
||||||
@ -140,7 +140,7 @@ if no
|
|||||||
.Ar file
|
.Ar file
|
||||||
argument is given.
|
argument is given.
|
||||||
.Pp
|
.Pp
|
||||||
.Nm Unifdef
|
.Nm
|
||||||
works nicely with the
|
works nicely with the
|
||||||
.Fl D Ns Ar sym
|
.Fl D Ns Ar sym
|
||||||
option added to
|
option added to
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user