bug-m4
[Top][All Lists]
Advanced

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

Re: format as a keyword


From: Gary V. Vaughan
Subject: Re: format as a keyword
Date: Thu, 20 Mar 2008 22:45:23 -0400


On 20 Mar 2008, at 20:22, Eric Blake wrote:
| What I would like to do is STOP m4 from recognizing these 3 words as
| internal macros. They get in the way of programs and SQL and ...
|
| I am going to try "undefine" but I doubt it will work for internal macros.

Why do you doubt?  undefine(`format') works just fine.  It's even
documented in the manual, with an example of undefining the builtin undefine:
http://www.gnu.org/software/m4/manual/m4.html#Undefine
http://www.gnu.org/software/m4/manual/m4.html#Defn

Or disable it at the command line:
m4 -Uformat

Or, you could disable GNU extensions altogether:
m4 -G


Or you could use the -P option to rename all builtins to start with m4_, which would allow you to access the substr and index macros as m4_substr and m4_index respectively.

Or you could manually rename just the macros you want to rename using:

define(`myprefix_substr', defn(`substr'))undefine(`substr')dnl

Cheers,
        Gary
--
  ())_.              Email me: address@hidden
  ( '/           Read my blog: http://blog.azazil.net
  / )=         ...and my book: http://sources.redhat.com/autobook
`(_~)_




Attachment: PGP.sig
Description: This is a digitally signed message part


reply via email to

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