m4-discuss
[Top][All Lists]
Advanced

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

Re: macros defined w/different quotes than m4sugar.m4; want to use m4sug


From: Eric Blake
Subject: Re: macros defined w/different quotes than m4sugar.m4; want to use m4sugar.m4 macros
Date: Tue, 05 Nov 2013 09:53:57 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

On 11/05/2013 09:17 AM, address@hidden wrote:
> I created and use a set of shell script "code snip" macros that depend on:
> 
>   m4_changequote(`[<{', `}>]')
> 
> How might I include and use m4sugar.m4 macros without editing the quote chars 
> in m4sugar.m4?

Alas, m4 doesn't provide a push/pop stack of quotes, and m4sugar.m4 is
quite hard-coded to exactly [] as the quoting characters.  I'm afraid
you'll have to do manual translation of the macros that interest you
into your preferred quoting style.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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