Path: utzoo!attcan!uunet!cs.utexas.edu!mailrus!ames!ncar!boulder!gore!jacob From: jacob@gore.com (Jacob Gore) Newsgroups: comp.lang.c Subject: Concatenating with a compile-time definition in "ANSI" CPP Message-ID: <470004@gore.com> Date: 23 Sep 89 00:47:00 GMT Reply-To: jacob@gore.com (Jacob Gore) Organization: Gore Enterprises Lines: 18 Can the following be achieved with "ANSI" cpp: MtaInit() expands to SomeNameInit() where Mta=SomeName is specified at compile-time, WITHOUT enumerating every possible value of Mta in an #ifdef? I want to be able to, for example, use -DMta=Sendmail in cc's command line, and have that result in "MtaInit()" replaced with "SendmailInit()" in the code. Is there a way to do this? Jacob -- Jacob Gore Jacob@Gore.Com {boulder,nucsrl}!gore!jacob