Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site arizona.UUCP Path: utzoo!linus!decvax!ucbvax!arizona!whm From: whm@arizona.UUCP (Bill Mitchell) Newsgroups: net.lang.c Subject: Preprocessor Trickery Message-ID: <12361@arizona.UUCP> Date: Tue, 26-Jun-84 01:25:14 EDT Article-I.D.: arizona.12361 Posted: Tue Jun 26 01:25:14 1984 Date-Received: Wed, 27-Jun-84 03:46:21 EDT Organization: Dept of CS, U of Arizona, Tucson Lines: 19 I need a way to form variable names using cpp macros. For example, I'd like a macro X(y), which might expand X(foo) into Xfoo. It so happens that #define X(y) X/**/y X(foo) works on 4.xbsd and on V7. This apparently because cpp considers int z/**/z; to be int zz; Is there some proper way to achieve the same effect without relying on this "feature" of cpp and thus retain some hope of portability? Thanks, Bill Mitchell whm.arizona@csnet-relay {noao,mcnc,utah-cs}!arizona!whm