From: espie Date: Thu, 21 Aug 2008 21:02:28 +0000 (+0000) Subject: Document new gnu extensions, okay jmc@, otto@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3fac242924088dd5090d4a75f573bb4461dcce82;p=openbsd Document new gnu extensions, okay jmc@, otto@ --- diff --git a/usr.bin/m4/m4.1 b/usr.bin/m4/m4.1 index 45e7803677c..46c99d0d424 100644 --- a/usr.bin/m4/m4.1 +++ b/usr.bin/m4/m4.1 @@ -1,4 +1,4 @@ -.\" @(#) $OpenBSD: m4.1,v 1.52 2008/08/16 12:26:07 espie Exp $ +.\" @(#) $OpenBSD: m4.1,v 1.53 2008/08/21 21:02:28 espie 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: August 16 2008 $ +.Dd $Mdocdate: August 21 2008 $ .Dt M4 1 .Os .Sh NAME @@ -138,7 +138,11 @@ Activate GNU-m4 compatibility mode. In this mode, translit handles simple character ranges (e.g., a-z), regular expressions mimic emacs behavior, multiple m4wrap calls are handled as a stack, -and the number of diversions is unlimited. +the number of diversions is unlimited, +empty names for macro definitions are allowed, +and eval understands +.Sq 0rbase:value +numbers. .It Fl I Ar "dirname" Add directory .Ar dirname @@ -268,9 +272,10 @@ with escape sequences substituted with .Fa arg1 and following arguments, in a way similar to .Xr printf 3 . -This built-in is only available in GNU-m4 compatibility mode, and the -left-padding flag, an optional field width and the %s data type -are the only supported parameters. +This built-in is only available in GNU-m4 compatibility mode, and the only +parameters implemented are there for autoconf compatibility: +left-padding flag, an optional field width, a maximum field width, +*-specified field widths, and the %s and %c data type. .It Fn ifdef name yes no If the macro named by the first argument is defined then return the second argument, otherwise the third.