m4 problems
Peter da Silva
peter at ficc.ferranti.com
Thu Jul 12 00:38:05 AEST 1990
In article <2794 at aspect.UUCP> dave at aspect.UUCP (Dave Corcoran) writes:
> I thought that m4 was the cat's meow in pre-processors until I tried
> to use the "include" key-word for a quick and dirty include facility
> in the make(1) process.
[macro preprocessing on the included file caused problems]
> Comments anyone? Commiseration welcome
define(`include',`define(`include',``include'')sinclude($1)undefine(`include')')
This is probably the biggest problem in M4. I did an implementation of it
for preprocessing RATFOR under RSX-11 once, and I made all the M4 keywords
begin with a dollar sign ($include(filename)...).
--
Peter da Silva. `-_-'
+1 713 274 5180.
<peter at ficc.ferranti.com>
More information about the Comp.lang.c
mailing list