From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 11 15:20:34 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E11216A4CE for ; Fri, 11 Jun 2004 15:20:34 +0000 (GMT) Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5A5A43D41 for ; Fri, 11 Jun 2004 15:20:33 +0000 (GMT) (envelope-from schweikh@schweikhardt.net) Received: by bremen.shuttle.de (Postfix, from userid 10) id BF1D83BBA7; Fri, 11 Jun 2004 17:20:14 +0200 (CEST) Received: from hal9000.schweikhardt.net (localhost [127.0.0.1]) i5BFKJXo005346; Fri, 11 Jun 2004 17:20:19 +0200 (CEST) (envelope-from schweikh@hal9000.schweikhardt.net) Received: (from schweikh@localhost)i5BFKJqc005345; Fri, 11 Jun 2004 17:20:19 +0200 (CEST) (envelope-from schweikh) Date: Fri, 11 Jun 2004 17:20:19 +0200 From: Jens Schweikhardt To: Luigi Rizzo Message-ID: <20040611152019.GA5028@schweikhardt.net> References: <20040611025307.GG17367@teleri.net> <20040611140740.GA3355@schweikhardt.net> <20040611072615.A96657@xorpc.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040611072615.A96657@xorpc.icir.org> User-Agent: Mutt/1.5.6i cc: Chip Norkus cc: hackers@freebsd.org Subject: Re: indent bugfix / added features X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jun 2004 15:20:34 -0000 On Fri, Jun 11, 2004 at 07:26:15AM -0700, Luigi Rizzo wrote: # On Fri, Jun 11, 2004 at 04:07:40PM +0200, Jens Schweikhardt wrote: # > On Thu, Jun 10, 2004 at 09:53:07PM -0500, Chip Norkus wrote: # ... # > # normalize the code a bit. In doing so I discovered a few deficencies in # > # the stock FreeBSD (5.2-CURRENT) indent and decided to fix them, I # > # thought these might be fairly common wishes (and one of them is a # > # bugfix) and have attached a patch which does the following: # ... # > # I don't know if anyone would be interested in committing the bugfix (I # > # believe it is correct) or added features, but I hope someone else finds # > # this useful. # ... # > I'm willing to commit this if you could demonstrate that it will not # > produce different output in the default case than it does now. Say, # > run the old an new versions against the FreeBSD src tree and make a diff # > which should vanish apart from the bug-fixing effects. If you want to # > make yourself known as a quality software engineer, do the same for # > various sets of indent options :-) # # ?? this sounds like an absurd request, please... Sigh. A request for a little bit of QA and an emoticon as well and I'm criticised. I remember when I was not yet a committer that the better I could demonstrate that the code has no ill-effect the more chances some committer would bring it in the tree. # First, for a small patch like this you are much better off looking # at the source code diffs rather than checking the output in a # necessarily small set of test cases. I've looked at too many "innocous" patches that performed unexpectedly when run, to not let myself get away with this. Of course this may be because I'm not a good C programmer. # Second, either you trust the author (in which case his statement # "I believe is correct" is all you need), or you don't, in which # case you'd have to check the patch yourself in whatever way you # believe suitable. Either way, I don't see how the additional # tests you are asking for would change your behaviour. They'd improve my confidence of not having to backout someone else's patch. I was making my proposal on the premise that doing this test would not be very difficult or time consuming, and that the author, who apparently used indent a lot, would know better where potential pitfalls are (like option combos). If I can get any other committer's opinion saying "go ahead, commit", that's fine and I'll get to it ASAP. No hard feelings, Luigi :-) Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped)