[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
confused by m4_if description
From: |
Ralf Wildenhues |
Subject: |
confused by m4_if description |
Date: |
Sat, 18 Apr 2009 18:56:22 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Hi Eric,
I always confuse m4_if with m4_case, and then start to wonder why m4_if
complains about excess arguments. The patch below should help me
remember. OK?
Thanks,
Ralf
manual: clarify m4_if synopsis.
* doc/autoconf.texi (Redefined M4 Macros): Rewrite synopsis of
m4_if in the presence of more than three arguments.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 79a76da..7ec2528 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -10638,7 +10638,8 @@ This macro corresponds to @code{m4exit}.
@defmac m4_if (@var{comment})
@defmacx m4_if (@var{string-1}, @var{string-2}, @var{equal}, @ovar{not-equal})
address@hidden m4_if (@var{string-1}, @var{string-2}, @var{equal}, @dots{})
address@hidden m4_if (@var{string-1}, @var{string-2}, @var{equal-1}, @
+ @var{string-3}, @var{string-4}, @var{equal-2}, @dots{}, @ovar{not-equal})
@msindex{if}
This macro corresponds to @code{ifelse}. @var{string-1} and
@var{string-2} are compared literally, so usually one of the two
- confused by m4_if description,
Ralf Wildenhues <=