Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com Message-Id: <4.3.1.2.20011112203853.02231448@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Mon, 12 Nov 2001 20:55:22 -0500 To: "Robert Collins" , From: "Larry Hall (RFK Partners, Inc)" Subject: Re: looking for c++ indent In-Reply-To: <03df01c16be2$b45ded80$0200a8c0@lifelesswks> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 08:29 PM 11/12/2001, Robert Collins wrote: >The standard gnu indent is doing horrible things.. > >i.e. > >@@ -97,7 +102,8 @@ auth_retry: > > if (code < 200 || code >= 300) > { >- delete c; >+ delete >+ c; > return; > } > >Now, I'm of the opinion that second guessing your indent tool is a waste >of time - may as well not have one. > >However, I'm quite happy to use a different indent tool, that stays with >GNU indenting rules, but understands c++ well enough not to do the sort >of idiocy show above. > >I don't have the time to research a replacement just now, or to fix >indent itself, and it's a low priority - indent is consistent in what it >does, not random, so diffs should be small from now on in. > >If someone here can suggest a better indent.. I'll take a look. >Alternatively (preferred actually, but I don't wish to impinge on other >folks time) if someone wanted to hack indent to be c++ aware (ideally >including making things like headers with >#ifdef __cplusplus >extern "C" { >#endif >not indent the exported stuff.. that would be great. There was a discussion on the main Cygwin list about alternatives to indent (for C++) some time ago. A number of possibilities were brought up. Unfortunately, I can only find the thread that makes mention of the one alternative I had (bcpp). The thread in question is "indent-2.2.5 and ed-0.2". Not sure where all the good pointers were that I recall (or maybe I'm just hearing voices in my head... ;-) ) Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX