Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site emory.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!mhuxm!mhuxf!mhuxi!mhuhk!mhuxt!houxm!whuxl!whuxlm!akgua!emory!arnold From: arnold@emory.UUCP (Arnold D. Robbins {EUCC}) Newsgroups: net.unix,net.unix-wizards,net.lang.c,net.lang.c++ Subject: Mods to 4.2BSD /lib/cpp for #elif, // comments, posted in mod.sources Message-ID: <1627@emory.UUCP> Date: Tue, 27-May-86 15:58:21 EDT Article-I.D.: emory.1627 Posted: Tue May 27 15:58:21 1986 Date-Received: Sun, 1-Jun-86 06:47:56 EDT Distribution: net Organization: Math & Computer Science, Emory University, Atlanta Lines: 34 Xref: watmath net.unix:8009 net.unix-wizards:18229 net.lang.c:9236 net.lang.c++:229 I have just finished mailing a context diff to the mod.sources moderator containing patches to the 4.2 BSD /lib/cpp. These patches contain 1) Code from Doug Gwyn of the Ballistics Research Lab to implement the #elif construct found in very recent SV cpp's and in the ANSI C draft standard. This feature is automatic; if you install it as /lib/cpp, you get #elif. 2) Code written by me to recognize the // ..... \n style of comment used in C++. This requires a new command line option, -B, so as to not break existing C programs. (The -B is reminiscent of the old "B" programming language, C's predecessor, and the source for this style of comment.) People with C++ who install the new /lib/cpp need to change their CC shell script to add the -B flag to the cpp command line. This should fix a problem mentioned a while back in net.lang.c++ about cpp screwing up // comments that contained macro names. For all the additions, the indentation "style" pretty much matches that of cpp.c (terrible). Sorry about that. I don't write that way myself, and neither does Doug. Anyway, keep an eye on mod.sources/UNIX-SOURCES@BRL (usenet/arpanet) for the diff. Enjoy, -- Arnold Robbins CSNET: arnold@emory BITNET: arnold@emoryu1 ARPA: arnold%emory.csnet@csnet-relay.arpa UUCP: { akgua, decvax, gatech, sb1, sb6, sunatl }!emory!arnold "All this digital stuff is just a fad. Analog is the way to go." -- William M. Robbins, 1984