Newsgroups: comp.archives Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!ox.com!msen.com!emv From: cudcv@warwick.ac.uk (Rob McMahon) Subject: [c] Re: When do you use "if ( a = b )"? Message-ID: <1991Apr18.091814.28403@ox.com> Followup-To: comp.lang.c Sender: emv@msen.com (Edward Vielmetti, MSEN) Reply-To: cudcv@warwick.ac.uk (Rob McMahon) Organization: Computing Services, Warwick University, UK References: <1991Mar30.155003.5775@cc.helsinki.fi> <10654@uwm.edu> <571@bria> <_D-_A*|@warwick.ac.uk> Date: Thu, 18 Apr 1991 09:18:14 GMT Approved: emv@msen.com (Edward Vielmetti, MSEN) X-Original-Newsgroups: comp.lang.c Archive-name: langauges/preprocessor/scpp/1991-04-11 Archive-directory: ftp.informatik.uni-dortmund.de:/pub/programming/tools/scpp/ [129.217.64.63] Original-posting-by: cudcv@warwick.ac.uk (Rob McMahon) Original-subject: Re: When do you use "if ( a = b )"? Reposted-by: emv@msen.com (Edward Vielmetti, MSEN) In article <571@bria> uunet!bria!mike writes: >Is there a flavor of preprocessor that unwinds *just* the #define's, and >leaves the rest alone? Yup, it's called `scpp'. I'm sure I got it off comp.sources.all (or was it mod.sources ...): /* * scpp.c - main processing for the selective C preprocessor, scpp. * * Copyright (c) 1985 by * Tektronix, Incorporated Beaverton, Oregon 97077 * All rights reserved. * * Permission is hereby granted for personal, non-commercial * reproduction and use of this program, provided that this * notice and all copyright notices are included in any copy. */ DESCRIPTION Scpp concatenates the input files (or reads standard-in, if no file is given), interprets all references to given mac- ros, leaving the rest of the file(s) unaltered, then writes the result to standard-out. It is helpful in removing con- ditionally compiled code or misleading macros from a file. AUTHOR Brad Needham, Tektronix, Inc. Occasionally it's very useful. Cheers, Rob -- UUCP: ...!mcsun!ukc!warwick!cudcv PHONE: +44 203 523037 JANET: cudcv@uk.ac.warwick INET: cudcv@warwick.ac.uk Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England -- comp.archives file verification ftp.informatik.uni-dortmund.de total 34 -rw-rw-r-- 1 NOT FTP NOT FTP 33819 Jan 5 1990 scpp.tar.Z found scpp ok ftp.informatik.uni-dortmund.de:/pub/programming/tools/scpp/