diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2009-10-14 17:19:48 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2009-10-14 17:19:48 +0000 |
commit | 5b12bc258fe8c9e40a38b5d45689be67d677bb9e (patch) | |
tree | 9e0f7f43bfddd3c3f782e4ff31d6d91d1ecb59d4 /usr.bin/m4/m4.1 | |
parent | 63b309eaa3257f1ab6ca190c82bea9ab4960f18f (diff) |
Support the -P option from gnu m4, which prefixes builtins with the
string m4_. Feedback from jmc@, Tobias Ulmer, Matthew Dempsky - thanks!
ok espie@
Diffstat (limited to 'usr.bin/m4/m4.1')
-rw-r--r-- | usr.bin/m4/m4.1 | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/usr.bin/m4/m4.1 b/usr.bin/m4/m4.1 index 18d0f194f22..e191518b983 100644 --- a/usr.bin/m4/m4.1 +++ b/usr.bin/m4/m4.1 @@ -1,4 +1,4 @@ -.\" @(#) $OpenBSD: m4.1,v 1.55 2009/02/08 17:15:10 jmc Exp $ +.\" @(#) $OpenBSD: m4.1,v 1.56 2009/10/14 17:19:47 sthen Exp $ .\" .\" Copyright (c) 1989, 1993 .\" The Regents of the University of California. All rights reserved. @@ -30,7 +30,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: February 8 2009 $ +.Dd $Mdocdate: October 14 2009 $ .Dt M4 1 .Os .Sh NAME @@ -38,7 +38,7 @@ .Nd macro language processor .Sh SYNOPSIS .Nm m4 -.Op Fl gs +.Op Fl gPs .Oo .Sm off .Fl D Ar name Op No = Ar value @@ -150,6 +150,13 @@ to the include path. .It Fl o Ar filename Send trace output to .Ar filename . +.It Fl P +Prefix all built-in macros with +.Sq m4_ . +For example, instead of writing +.Ic define , +use +.Ic m4_define . .It Fl s Output line synchronization directives, suitable for .Xr cpp 1 . |