Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!akgua!mcnc!decvax!cca!ima!ism780!jim From: jim@ism780.UUCP Newsgroups: net.lang.c Subject: Re: Re: Forming composite tokens using / - (nf) Message-ID: <160@ism780.UUCP> Date: Fri, 11-May-84 00:02:43 EDT Article-I.D.: ism780.160 Posted: Fri May 11 00:02:43 1984 Date-Received: Sun, 13-May-84 07:08:49 EDT Lines: 23 #R:randvax:-178200:ism780:12500005:000:597 ism780!jim May 10 10:32:00 1984 > Another alternative (which is probably equally offensive): > | > |#define cat(a,b) a\ > |b > | > At least this doesn't rely on the preprocessor stripping comments. > But it is still likely to be non-portable. Due to typical AT&T brain damage, this does not work in System V, where the backslash-newline is turned into a space (idiots!). A method guaranteed to work anywhere is #define IDENT(x)x #define CAT(a,b)IDENT(a)b Be sure that you use CAT(x,y) instead of, e.g., CAT(x, y), since the white space is part of the macro argument. -- Jim Balter, Interactive Systems (ima!jim)