delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/01/04:58:21

Sender: crough45 AT amc DOT de
Message-Id: <97Apr1.104717gmt+0100.16647@internet01.amc.de>
Date: Tue, 1 Apr 1997 10:46:08 +0100
From: Chris Croughton <crough45 AT amc DOT de>
Mime-Version: 1.0
To: rob AT attic DOT demon DOT co DOT uk
Cc: djgpp AT delorie DOT com
Subject: Re: Indent and C++

Robin Crampton wrote: 

> There is a version of indent in the simtel archives that supports C++.
> If you have trouble finding it I can mail you my copy.
> The source is available - I had to tweak it to handle longish
> identifiers.

I've found it on the Coast archives (what used to be Simtel), thanks,
but I'd like your patches (what do you mean by 'longish'?).  It has a 
few bugs: it doesn't understand templates ("Array <int> x;" comes out
as "Array < int >x;"), it doesn't do anything sensible with labels
(like "public:" and "private:" in classes) and is sometimes puts the
first case in a switch against the left margin.  But it certainly 
doesn't freak out like the GNU one does.

I suspect that no-one is maintaining this version now.  It's a pity
that the FSF version decided to go with the straight C one without
the C++ extensions - anyone know who I should contact to suggest
a C++ version?  I don't have access to newsgroups...

I just built it on Unix (DEC AlphaStation under OSF/1 using gcc 2.7.2),
I'll try the DOS version tonight when I get home...

Thanks for the pointer,
    Chris

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019