autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: confused by m4_if description


From: Eric Blake
Subject: Re: confused by m4_if description
Date: Sat, 18 Apr 2009 16:55:39 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Ralf Wildenhues on 4/18/2009 10:56 AM:
> Hi Eric,

Hi Ralf,

> 
> I always confuse m4_if with m4_case, and then start to wonder why m4_if
> complains about excess arguments.

At least the complaint helps correct it ;)

>  The patch below should help me
> remember.  OK?
> 
>  @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})

This implies that you can do 3, 4, 6, 7, ... arguments.  Looks correct to
me, so go ahead and apply.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknqWmsACgkQ84KuGfSFAYCdRQCfSLL2V0cAh7giArR1so/fHLkm
4cEAn0rXR5rCFA6D4uPekYBjHzaiRcrV
=YtLr
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]