[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Having Trouble with m4 Input (m4 version 1.4.13)
From: |
Tom Browder |
Subject: |
Re: Having Trouble with m4 Input (m4 version 1.4.13) |
Date: |
Fri, 3 Sep 2010 11:17:26 -0500 |
On Fri, Sep 3, 2010 at 11:05, Eric Blake <address@hidden> wrote:
> On 09/03/2010 09:56 AM, Tom Browder wrote:
...
>> Is the '#' stopping it?
...
>> If so, how can I get the line I want.
...
> or by using proper quoting (so that hashdef no longer expands to a comment
> character, but a quoted string that happens to contain #):
>
> define(`hashdef', ``#'define')dnl
That doesn't work...
> Also, to be robust to non-GNU m4, you should probably also double-quote
> define, or use other tricks to ensure that you don't inadvertently end up
> expanding the define built-in with zero arguments (GNU m4 explicitly
> documents that the define built-in when invoked with zero arguments expands
> to it's own name, as if it hadn't been a macro, but POSIX leaves that bit
> unspecified):
>
> define(`hashdef', ``#define'')dnl
But that does! So that is the recommended form for portability, no?
Thanks so much, Eric. I'll probably have more questions before it's over.
Regards,
-Tom
Thomas M. Browder, Jr.
Niceville, Florida
USA
- Having Trouble with m4 Input (m4 version 1.4.13), Tom Browder, 2010/09/03
- Re: Having Trouble with m4 Input (m4 version 1.4.13), Eric Blake, 2010/09/03
- Re: Having Trouble with m4 Input (m4 version 1.4.13),
Tom Browder <=
- Re: Having Trouble with m4 Input (m4 version 1.4.13), Jack J. Woehr, 2010/09/03
- Re: Having Trouble with m4 Input (m4 version 1.4.13), Tom Browder, 2010/09/03
- Re: Having Trouble with m4 Input (m4 version 1.4.13), Eric Blake, 2010/09/03
- Re: Having Trouble with m4 Input (m4 version 1.4.13), Gary V. Vaughan, 2010/09/07
- Re: Having Trouble with m4 Input (m4 version 1.4.13), Tom Browder, 2010/09/07
- Re: Having Trouble with m4 Input (m4 version 1.4.13), Tom Browder, 2010/09/07
- Re: Having Trouble with m4 Input (m4 version 1.4.13), Tom Browder, 2010/09/07