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 evendocumented 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: [EMAIL PROTECTED]
( '/ Read my blog: http://blog.azazil.net
/ )= ...and my book: http://sources.redhat.com/autobook
`(_~)_
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Bug-m4 mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-m4
