ANSI C preprocessor

Tony L. Hansen hansen at pegasus.UUCP
Sun Oct 6 07:55:39 AEST 1985


In article <201 at rtp47.UUCP> meissner at rtp47.UUCP (Michael Meissner) writes:
< In article <858 at lll-crg.UUCP> brooks at lll-crg.UUCP (Eugene D. Brooks III) writes:
< >Has anyone out there in netland implemented the #elif preprocessor
< >directive of the proposed ANSI standard in Reiser's preprocessor?
< 
< The System V.2 preprocessor has the #elif construct (which is where it came
< from).

When the #elif construct was officially accepted by the AT&T C Standards
committee, it was too late to get it into the System Vr2 UNIX which was
going onto Vaxen and 3B-20's.  It was then added to the Vr2 C compiler which
came out later on the 3B-2's and 3B-5's.  I don't know about its existence
on other Vr2 ports, except the Amdahl, which does not have it.

Since it was already a part of AT&T's C standard by the time the ANSI
committee started up, it was added with almost no comment.

The ideas of #elifdef and #elifndef were also debated and rejected by AT&T's
committee.  (#elifdef was defeated mostly because of strong objections to
the four-word contraction in #elifndef, and the feeling that if one came in,
then both should come in.)

					Tony Hansen
					ihnp4!pegasus!hansen



More information about the Comp.lang.c mailing list