Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!caen!uflorida!gatech!usenet.ins.cwru.edu!ncoast!catfood From: catfood@NCoast.ORG (Mark W. Schumann) Newsgroups: comp.lang.c Subject: Re: trouble with macro`s Message-ID: <1991Mar16.213446.20392@NCoast.ORG> Date: 16 Mar 91 21:34:46 GMT References: <27489@netcom.COM> Organization: North Coast Public Access Un*x (ncoast) Lines: 21 In article <27489@netcom.COM> aed@netcom.COM (Andrew Davidson) writes: >I belive that ansi preprocessors are supposed to support this as >follows > >#define name2(a,b) a##b > >unfortuanly I am using a k&r compiler (I am working on a sun work >station and can not change compilers) You could try #dfine name2(a,b) a/**/b This might work, but I am not sure whether K&R compilers strip comments before or after evaluating macros. Try it. -- ============================================================ Mark W. Schumann 3111 Mapledale Avenue, Cleveland 44109 USA Domain: catfood@ncoast.org UUCP: ...!mailrus!usenet.ins.cwru.edu!ncoast!catfood