[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: iterating over arguments
From: |
Eric Blake |
Subject: |
Re: iterating over arguments |
Date: |
Mon, 14 Sep 2009 06:05:19 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
-----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 <address@hidden> 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 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/
iEYEARECAAYFAkquMX8ACgkQ84KuGfSFAYCZgwCfWM3Ba35S1+jZDr8sMf3MksUW
wiQAoNY1Qd0VnvoGsS6iKBu74q6nH0/u
=zQ7g
-----END PGP SIGNATURE-----
- iterating over arguments, Sam Steingold, 2009/09/11
- Re: iterating over arguments, Ralf Wildenhues, 2009/09/11
- Re: iterating over arguments, Sam Steingold, 2009/09/11
- Re: iterating over arguments,
Eric Blake <=
- Re: iterating over arguments, Eric Blake, 2009/09/11
- Re: iterating over arguments, Sam Steingold, 2009/09/12
- Re: iterating over arguments, Sam Steingold, 2009/09/13
- Re: iterating over arguments, Eric Blake, 2009/09/14
- Re: iterating over arguments, Eric Blake, 2009/09/14
- Re: iterating over arguments, Paolo Bonzini, 2009/09/14
- Re: iterating over arguments, Ralf Wildenhues, 2009/09/13
- Re: iterating over arguments, Sam Steingold, 2009/09/13
- Re: iterating over arguments, Ralf Wildenhues, 2009/09/13
- Re: iterating over arguments, Sam Steingold, 2009/09/13