Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/3/84; site teddy.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!teddy!wjm From: wjm@teddy.UUCP Newsgroups: net.lang.c Subject: Re: Style filters Message-ID: <1970@teddy.UUCP> Date: Wed, 22-Jan-86 09:39:31 EST Article-I.D.: teddy.1970 Posted: Wed Jan 22 09:39:31 1986 Date-Received: Fri, 24-Jan-86 21:35:51 EST References: <1748@brl-tgr.ARPA> Reply-To: wjm@teddy.UUCP (William J. Masek) Organization: GenRad, Inc., Concord, Mass. Lines: 43 Summary: In article <1748@brl-tgr.ARPA> chris@maryland.arpa (Chris Torek) writes: >4.3BSD will come with a program called `indent', which is a rewrite 4.2BSD already comes with the indent program. >of James Gosling's rewrite of the program from the University of >Illinois. The program has an amazing number of options to control >its output (48, to be exact, though one of those is not output >control); default plus two options and it emits `Joy normal form' >code (4.2/4.3 kernel style). > >As most people seem to be concerned with brace style, I will describe >indent's treatment of braces. It currently handles the following two >styles: > > if (...) > { > code > } > >or > > if (...) { > code > } > > >It does not do > > if (...) > { > code > } > >which is somewhat unfortunate; I almost added it but gave up since >I myself do not use it, and since that particular translation can >be accomplished with a `sed' script in emergencies. I have modified indent to support the third bracket/indentation style. I have posted a copy of the diff's to indent to net.sources. Enjoy bill masek