Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site decvax.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!houxm!whuxl!whuxlm!akgua!mcnc!decvax!minow From: minow@decvax.UUCP (Martin Minow) Newsgroups: net.lang.c Subject: Re: ANSI proposal for preprocessor strings Message-ID: <50@decvax.UUCP> Date: Sun, 3-Mar-85 21:27:30 EST Article-I.D.: decvax.50 Posted: Sun Mar 3 21:27:30 1985 Date-Received: Sun, 10-Mar-85 05:19:01 EST References: <8768@brl-tgr.ARPA> Lines: 17 Gwyn@brl-tgr.arpa points out that some compilers perform the "cpp" functions as part of the general lexical analysis, and therefore need a tokenizing preprocessor. Thus the string replacement and concatenation techniques in the Reiser cpp don't work. Actually, they can be made to work fairly easily. Just consider the string as a series of tokens: "foo bar" becomes "foo" " " "bar" and do further processing on any token that looks like a formal parameter. Token concatenation using /**/ is just about as easy. On the other hand, the draft standard is probably more understandable and a bit easier to implement. Martin Minow decvax!minow