Path: utzoo!attcan!uunet!aplcen!samsung!rex!wuarchive!texbell!ficc!peter From: peter@ficc.ferranti.com (Peter da Silva) Newsgroups: comp.lang.c Subject: Re: m4 problems Keywords: m4,pre-processor Message-ID: <5CL4-XC@xds13.ferranti.com> Date: 11 Jul 90 14:38:05 GMT References: <2794@aspect.UUCP> Reply-To: peter@ficc.ferranti.com (Peter da Silva) Distribution: na Organization: Xenix Support, FICC Lines: 13 In article <2794@aspect.UUCP> dave@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.