[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fix AT_SETUP's sh-escaping
From: |
Eric Blake |
Subject: |
Re: fix AT_SETUP's sh-escaping |
Date: |
Thu, 26 Oct 2006 18:05:52 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Joel E. Denny on 10/26/2006 12:28 PM:
>
> Ok, this seemingly obvious point didn't click with me completely
> yesterday. It seems a little funny to me that anyone would (1) pass in a
> test description with macros to be expanded later and then (2) expect that
> nothing strange would happen if the expansions contained characters that
> are special to whatever the output language happens to be.
Until you realize that having macros expanding to characters that are
special in M4 is a desirable feature in autom4te, and that expanding the
macros early can mess up M4 parsing, whereas expanding them late will
work. The manual documents the problems of having a macro that expands to
"#include <stdio.h>", and expanding that early, where it is treated as an
M4 comment, vs. expanding it late for a valid C code snippet.
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFQU1g84KuGfSFAYARAgmaAJ4oPiKg3jmB3zhY98+ayv8fSH02hwCgm8dV
vfLw+6x5xZVQgFQW3Zp+dqg=
=rHQK
-----END PGP SIGNATURE-----
- Re: m4_quote [was: fix AT_SETUP's sh-escaping], (continued)
- Re: m4_quote [was: fix AT_SETUP's sh-escaping], Joel E. Denny, 2006/10/26
- Re: m4_quote [was: fix AT_SETUP's sh-escaping], Eric Blake, 2006/10/26
- Re: m4_quote, Paul Eggert, 2006/10/26
- Re: m4_quote, Joel E. Denny, 2006/10/26
- Re: m4_quote, Eric Blake, 2006/10/26
- Re: fix AT_SETUP's sh-escaping, Stepan Kasal, 2006/10/25
- Re: fix AT_SETUP's sh-escaping, Paul Eggert, 2006/10/25
- Re: fix AT_SETUP's sh-escaping, Joel E. Denny, 2006/10/26
- Re: fix AT_SETUP's sh-escaping, Stepan Kasal, 2006/10/26
- Re: fix AT_SETUP's sh-escaping, Joel E. Denny, 2006/10/26
- Re: fix AT_SETUP's sh-escaping,
Eric Blake <=
- Re: fix AT_SETUP's sh-escaping, Joel E. Denny, 2006/10/26
- Re: fix AT_SETUP's sh-escaping, Joel E. Denny, 2006/10/26
- Re: fix AT_SETUP's sh-escaping, Paul Eggert, 2006/10/27