autoconf-patches
[Top][All Lists]
Advanced

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

Re: faster AS_IF,AS_CASE


From: Eric Blake
Subject: Re: faster AS_IF,AS_CASE
Date: Thu, 14 Aug 2008 22:22:11 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666

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

According to Ralf Wildenhues on 8/14/2008 12:39 PM:
>> For example, is my new macro m4_foreach_pair worth documenting as a 
>> supported 
>> interface, or should I leave it undocumented?
> 
> How about documenting it after 2.63, so we can change it until the next
> version if we find issues with it?

Sure.

> 
>> Also, should it be named slightly differently since it behaves more
>> like m4_map than m4_foreach?
> 
> m4_map_pair maybe?

I went with the name m4_transform_pair, since it turned out to be very
easy to add m4_transform with similar semantics but visiting one argument
at a time.  In terms of macro invocations,

m4_transform([func], [arg1], ...)

is more efficient (and less typing) than the identical output of

m4_foreach([var], [[arg1], ...], [func(m4_defn([var]))])

- --
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

iEYEARECAAYFAkilBHMACgkQ84KuGfSFAYAK0ACfXKT4AcEo1vz9Pt11zzNoTZSu
RiYAoNGJnTF+WhtSeVBM7kL5dG2Q1+QG
=41Xh
-----END PGP SIGNATURE-----




reply via email to

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