diff options
author | fanf <fanf@FreeBSD.org> | 2003-01-20 12:41:41 +0000 |
---|---|---|
committer | fanf <fanf@FreeBSD.org> | 2003-01-20 12:41:41 +0000 |
commit | d707a4320db2fa86d34e3eb17eb2780b92c9930e (patch) | |
tree | a64f180e864037a5027e56b50cf24216f4837cd4 /usr.bin/unifdef/unifdef.1 | |
parent | b222781a3d7a2ebc9d8dadaf47aecae9a8582200 (diff) | |
download | FreeBSD-src-d707a4320db2fa86d34e3eb17eb2780b92c9930e.zip FreeBSD-src-d707a4320db2fa86d34e3eb17eb2780b92c9930e.tar.gz |
Sync with upstream again:
* Be less strict about multi-line preprocessor directives (e.g. those
with comments hanging off the right-hand end) since they're more
of a problem in practise than I expected. Prompted by phk.
* Fix the handling of "ignore" symbols.
* Style pedantry from OpenBSD and Ted Unangst <tedu@stanford.edu>,
including some whitespace fixes and removal of strcpy()
(and not including excessively strict KNF enforcement).
* Fix some typos and terminological inconsistencies.
Diffstat (limited to 'usr.bin/unifdef/unifdef.1')
-rw-r--r-- | usr.bin/unifdef/unifdef.1 | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/usr.bin/unifdef/unifdef.1 b/usr.bin/unifdef/unifdef.1 index 6bc771c..fd76e14 100644 --- a/usr.bin/unifdef/unifdef.1 +++ b/usr.bin/unifdef/unifdef.1 @@ -33,7 +33,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)unifdef.1 8.2 (Berkeley) 4/1/94 -.\" $dotat: things/unifdef.1,v 1.40 2002/12/13 11:33:34 fanf2 Exp $ +.\" $dotat: things/unifdef.1,v 1.43 2003/01/20 11:36:12 fanf2 Exp $ .\" $FreeBSD$ .\" .Dd September 24, 2002 @@ -44,7 +44,7 @@ .Nd remove preprocessor conditionals from code .Sh SYNOPSIS .Nm -.Op Fl cklst +.Op Fl ceklst .Oo .Fl I Ns Ar path .Fl D Ns Ar sym Ns Op = Ns Ar val @@ -157,6 +157,24 @@ is complemented, i.e., the lines that would have been removed or blanked are retained and vice versa. .Pp +.It Fl e +Because +.Nm +processes its input one line at a time, +it cannot remove preprocessor directives that span more than one line. +The most common example of this is a directive with a multi-line +comment hanging off its right hand end. +By default, +if +.Nm +has to process such a directive, +it will complain that the line is too obfuscated. +The +.Fl e +option changes the behaviour so that, +where possible, +such lines are left unprocessed instead of reporting an error. +.Pp .It Fl k Process .Ic #if @@ -285,7 +303,7 @@ Expression evaluation is very limited. .Pp Preprocessor control lines split across more than one physical line (because of comments or backslash-newline) -cannot be handled. +cannot be handled in every situation. .Pp Trigraphs are not recognized. .Pp |