Re: iterating over arguments

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

 



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

According to Sam Steingold on 9/11/2009 3:12 PM:
> On Fri, Sep 11, 2009 at 1:34 PM, Ralf Wildenhues <Ralf.Wildenhues@xxxxxx> wrote:
>> AC_DEFUN([CL_CLISP_REQUIRE_FEATURE], [dnl
>> m4_foreach_w([cl_feat], [$1],
>> [m4_pushdef([CL_FEAT], [m4_toupper([cl_feat])])dnl
>> AC_CACHE_CHECK([for CL_FEAT in CLISP], [cl_cv_clisp_][cl_feat],
>>  [CLISP_SET([...])
>> ])
>> m4_popdef([CL_FEAT])
>> ])
>> ])
>>
> also, will it correctly substitute "ffi" for "cl_feat" inside ... let
> me count ... 4 levels of [[[[]]]]?

You are counting wrong.  It is 4 levels of ([([([([])])])]), or, 4
repetitions of 1 level of [].  Remember, the rule is one level of quoting
per macro call where you expect that the macro argument will be later
expanded, and two [[]] on the innermost call that contains literal text
that you do not want expanded later.

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

Eric Blake             ebb9@xxxxxxx
-----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/

iEYEARECAAYFAkquMX8ACgkQ84KuGfSFAYCZgwCfWM3Ba35S1+jZDr8sMf3MksUW
wiQAoNY1Qd0VnvoGsS6iKBu74q6nH0/u
=zQ7g
-----END PGP SIGNATURE-----


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux