Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!cwruecmp!hal!ncoast!allbery From: allbery@ncoast.UUCP Newsgroups: comp.sources.d Subject: Re: ANSI C preproccessor concatenate Message-ID: <4187@ncoast.UUCP> Date: Sun, 16-Aug-87 14:53:35 EDT Article-I.D.: ncoast.4187 Posted: Sun Aug 16 14:53:35 1987 Date-Received: Tue, 18-Aug-87 00:37:54 EDT References: <1449@cullvax.UUCP> Reply-To: allbery@ncoast.UUCP (Brandon Allbery) Followup-To: comp.sources.d Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 23 Summary: Ack! Phpphpht! As quoted from <1449@cullvax.UUCP> by drw@cullvax.UUCP (Dale Worley): +--------------- | allbery@ncoast.UUCP (Brandon S. Allbery) writes: | [Under ANSI C he writes:] | | - #define DEFUN(fn,proto) fn##proto | | You'll lose big if you try this! The reason is that the ## operator | concatenates the character representation of the two surrounding | tokens to form what must be the character representation of a token. | Calling DEFUN(func,(a,b)) tries to concatenate the two tokens "func" | and "(", which together don't form a token. +--------------- Ack, Phphhftht!!! Any votes for sanity? Orthogonality? (No, we vote for supporting TRSDOS 1.2)-; -- Brandon S. Allbery, moderator of comp.sources.misc and comp.binaries.ibm.pc {{harvard,mit-eddie}!necntc,well!hoptoad,sun!mandrill!hal}!ncoast!allbery ARPA: necntc!ncoast!allbery@harvard.harvard.edu Fido: 157/502 MCI: BALLBERY <> ** Site "cwruecmp" is changing its name to "mandrill". Please re-address ** *** all mail to ncoast to pass through "mandrill" instead of "cwruecmp". ***