Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Concatenating with a compile-time definition in "ANSI" CPP Message-ID: <11212@smoke.BRL.MIL> Date: 3 Oct 89 19:35:31 GMT References: <470004@gore.com> <29351@watmath.waterloo.edu> <17936@pasteur.Berkeley.EDU> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9 In article <17936@pasteur.Berkeley.EDU> hunt@ernie.Berkeley.EDU.UUCP (Jim Hunt) writes: >You can do this in non ANSI environments (at least Sun) with >#define MyInit(arg) arg/**/Init >which is an ugly hack on the preprocessor, that is also defined >in the ANSI C preprocessor! What are you talking about? That's two tokens, not one spliced one, in both Standard C and K&R C. It was the UNIX (Reiser) cpp that was responsible for this misimplementation becoming widespread.