🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: demon.ip.developers
Article #164

Re: Snews (+jlw): developer alert, src compatibility gone

#164
From: Chris Croughton
Date: Sun, 11 Oct 1998 00:00
26 lines
2147 bytes
In article <907952455.3572.0.nnrp-02.c30b3753@news.demon.co.uk>
           fanf@demon.net "Tony Finch" wrote:

>GNU indent is the canonical C reformatter -- a lot of people specify
>that part of their coding standards with a collection of flags for
>indent.

The problem is that it doesn't handle C++, which SNEWS now is (was it
always?).  In fact it might handle all of the SNews source, it doesn't (as
I recall) use C++ constructs like classes which are the main things which
break indent.

If anyone knows of a C++ beautifier (or a version of indent which has been
hacked to handle C++) I would be very very interested - I've been
threatening to write my own for ages but not gotten round to it.

But you're right, that was my first thought - GNU indent not only handles
indentation (tabs or spaces) but can do other conversions, like the
position of braces (K&R where the opening { is on the same line as the
controlling if/for/while etc., indented to the same position as the
enclosed code, the same as the controlling statement wit the code inside
indented, etc.).  It's an invaluable program for anyone who 'inherits'
code with weird formatting, or who writes code and then finds that it
needs to be in a 'house' style, and me 'at's orf to the authors of it.

Chris C
Technical Details
Message-ID: <Snews.981011.102949.chris.11139@keris.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <907755188snz@wash.demon.co.uk> <907936362snz@wash.demon.co.uk> <907947532snz@fokker.demon.nl> <907952455.3572.0.nnrp-02.c30b3753@news.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bb05,fbda994e5188adb5
X-Google-Attributes: gid10bb05,public
X-Google-Thread: fb525,fbda994e5188adb5
X-Google-Attributes: gidfb525,public
From: chris@keris.demon.co.uk (Chris Croughton)
Subject: Re: Snews (+jlw): developer alert, src compatibility gone
Date: 1998/10/11
Message-ID: <Snews.981011.102949.chris.11139@keris.demon.co.uk>
X-Deja-AN: 399906230
X-Mail2News-Path: news.demon.net!keris.ul.bawue.de
References: <907755188snz@wash.demon.co.uk> <907936362snz@wash.demon.co.uk> <907947532snz@fokker.demon.nl> <907952455.3572.0.nnrp-02.c30b3753@news.demon.co.uk>
X-Trace: mail2news.demon.co.uk 908105019 mail2news:23663 mail2news mail2news.demon.co.uk
Organization: Keristor Systems
Newsgroups: demon.ip.developers,demon.ip.support.pc
X-Complaints-To: abuse@demon.net