Re: m4 macro whose name depends on a a variable

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

 



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

iEYEARECAAYFAkkYNpcACgkQ84KuGfSFAYCPNwCfTWdNDnmLUBloP7q2vGxbMIT/
cXsAoLR1p+TxiUwb77pAM+QTTcz0+Mnz
=b84N
-----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