Mail Archives: djgpp/1997/04/01/04:58:21
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 -