Mods to 4.2BSD /lib/cpp for #elif, // comments, posted in mod.sources
Arnold D. Robbins {EUCC}
arnold at emory.UUCP
Wed May 28 05:58:21 AEST 1986
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 at BRL (usenet/arpanet) for the
diff.
Enjoy,
--
Arnold Robbins
CSNET: arnold at emory BITNET: arnold at emoryu1
ARPA: arnold%emory.csnet at 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
More information about the Comp.lang.c
mailing list