Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!wrdis01!gatech!bloom-beacon!eru!hagbard!sunic!mcsun!cernvax!chx400!iam.unibe.ch!donald!metz From: metz@donald.iam.unibe.ch (Igor Metz) Newsgroups: comp.lang.c++ Subject: Re: Borland C++ Streams question -- beginner Keywords: c++,indent Message-ID: <1991Apr19.064108.672@iam.unibe.ch> Date: 19 Apr 91 06:41:08 GMT References: <17621@venera.isi.edu> Sender: news@iam.unibe.ch Reply-To: metz@iam.unibe.ch (Igor Metz) Distribution: comp Organization: Dept. of Computer Science, University of Berne, Switzerland Lines: 18 This is a little hack which will produce acceptable results. Only problem: class declarations do not look very nice ... It's based on a hack for cb posted by gaa@castle.ed.ac.uk this week #!/bin/sh sed -e 's/::/_XX_/g' \ -e 's/\/\/\(.*\)$/\/*_#\1#_*\//g' |\ indent -st -i2 -ncdb -nfc1 -l999 | \ sed -e 's/_XX_/::/g' \ -e 's/\/\*_#\(.*\)#_\*\/$/\/\/\1/g'\ -e 's/\/\* _#\(.*\)#_ \*\/$/\/\/\1/g' -- Igor Metz Institut fuer Informatik und angew. Mathematik, Universitaet Bern, Switzerland. domainNet: metz@iam.unibe.ch Phone: (0041) 31 65 49 90 ARPA: metz%iam.unibe.ch@relay.cs.net Fax: (0041) 31 65 39 65