Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1a 12/4/83; site rlgvax.UUCP Path: utzoo!linus!decvax!harpo!seismo!rlgvax!guy From: guy@rlgvax.UUCP (Guy Harris) Newsgroups: net.bugs,net.lang.c Subject: Re: Bug (?) in C preprocessor Message-ID: <1960@rlgvax.UUCP> Date: Wed, 30-May-84 00:34:44 EDT Article-I.D.: rlgvax.1960 Posted: Wed May 30 00:34:44 1984 Date-Received: Fri, 1-Jun-84 07:30:59 EDT References: <204@elecvax.SUN> <304@basser.SUN> Organization: CCI Office Systems Group, Reston, VA Lines: 16 > I have written a C preprocessor that adheres to the most > recent standard. The standard has these "additions": > #elif expression > and > defined(name) in #if expressions The former is very nice - I wish it were available in the Reiser "cpp" that comes with just about every UNIX under the sun. The latter is actually in the most recent standard, if the S5 man page CPP(1) is considered the most recent standard (it also documents __FILE__ and __LINE__). The parentheses are optional (shades of the "return(x)" vs. "return x" debate!) according to CPP(1). Guy Harris {seismo,ihnp4,allegra}!rlgvax!guy