Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utcs!mnetor!seismo!nbires!hao!hplabs!tektronix!tekig5!tekig4!bradn From: bradn@tekig4.UUCP Newsgroups: net.sources.d Subject: Re: ifdef filter Message-ID: <811@tekig4.UUCP> Date: Sun, 20-Jul-86 14:50:55 EDT Article-I.D.: tekig4.811 Posted: Sun Jul 20 14:50:55 1986 Date-Received: Mon, 21-Jul-86 21:39:30 EDT References: <2389@brl-smoke.ARPA> Reply-To: bradn@tekig4.UUCP (Bradford Needham) Followup-To: net.sources.d Organization: Tektronix, Inc., Beaverton, OR. Lines: 19 Keywords: ifdef scpp macro Summary: check the mod.sources archive for "scpp" In article <2389@brl-smoke.ARPA> rbj@icst-cmr (Root Boy Jim) writes: >Berkeley 4.x has a program called unifdef. The RAND corparation has >a program like this on their new RAND editor tape. I might be able to >send you a copy of it if I can find a good path to you. How quickly folks forget mod.sources. The mod.sources archive contains a program I wrote called "scpp" (for "Selective C PreProcessor") -- it does exactly what you want. Unlike "unifdef" or the Rand unifdef'er, Scpp is a complete reimplementation of the functionality of Cpp -- it properly handles nasty problems like: #if defined(VAX) || BUFSIZ > 512 .... #endif Brad Needham Tektronix, Inc. ...decvax!tektronix!tekig4!bradn