autoconf
[Top][All Lists]
Advanced

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

Re: m4 macro whose name depends on a a variable


From: Eric Blake
Subject: Re: m4 macro whose name depends on a a variable
Date: Mon, 10 Nov 2008 06:26:47 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.5.666

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

According to Eric Blake on 11/10/2008 6:18 AM:
> 
> Underquoted - translit does not output its argument with quotes, so if $1
> happens to match a macro name, it will be re-expanded.  Also, you may want
> to consider using m4_toupper/m4_tolower instead of directly calling
> translit.  As in:
> 
> pushdef([UP], m4_toupper([[$1]], [a-z], [A-Z]))

Sorry; make that:

m4_pushdef([UP], m4_toupper([[$1]]))

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

iEYEARECAAYFAkkYNpcACgkQ84KuGfSFAYCPNwCfTWdNDnmLUBloP7q2vGxbMIT/
cXsAoLR1p+TxiUwb77pAM+QTTcz0+Mnz
=b84N
-----END PGP SIGNATURE-----




reply via email to

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