[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: more fun with m4_expand
From: |
Eric Blake |
Subject: |
Re: more fun with m4_expand |
Date: |
Tue, 25 Nov 2008 07:27:56 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Paolo Bonzini on 11/25/2008 7:15 AM:
> Yes, it's things like this (especially the
> diversion-during-argument-collection wart) that make me wonder if it
> *could* ever work at all.
M4 1.6 will enhance the divert builtin:
divert(diversion, [text])
where text, if specified, is dumped into diversion regardless of argument
collection. But we want to work with m4 1.4.x for some time, still...
>
> The expand-twice trick in my previous email seems worth pursuing...
But with:
AC_FOO(m4_expand([AC_BAR]))
it is not just the m4_expand that needs to happen twice, but AC_FOO. In
other words, it seems like m4_expand needs to have the magic which informs
the enclosing m4_defun'd function that m4_expand encountered an
m4_require, so emit the required functions, then restart AC_FOO from
scratch. Maybe I can make something happen from that idea.
- --
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
iEYEARECAAYFAkksC2wACgkQ84KuGfSFAYBTqwCgqF8+J3m+64T+V4LI3lyvwzbs
FtQAoMMWTz/mQ6w9wMQv6tzfj31KnzI7
=0eHk
-----END PGP SIGNATURE-----