From owner-cvs-src@FreeBSD.ORG Sat Feb 14 01:19:21 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56F0D16A4CE; Sat, 14 Feb 2004 01:19:21 -0800 (PST) Received: from admin.x.com (unknown [210.172.132.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id E917D43D2F; Sat, 14 Feb 2004 01:19:20 -0800 (PST) (envelope-from bde@freebsd.org) Received: from mail pickup service by admin.x.com with Microsoft SMTPSVC; Sat, 14 Feb 2004 18:19:20 +0900 Received: from mxforward02.ms.interq.net ([172.16.5.28]) by ex2kmail01.x.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 13 Feb 2004 01:23:37 +0900 Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) i1CGQ5Je027087 for ; Fri, 13 Feb 2004 01:26:05 +0900 (JST) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 7CB7456EF9; Thu, 12 Feb 2004 08:25:54 -0800 (PST) (envelope-from owner-cvs-all@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 9FAE716A4EF; Thu, 12 Feb 2004 08:25:52 -0800 (PST) Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A9BD16A4CE; Thu, 12 Feb 2004 08:25:13 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3616543D1F; Thu, 12 Feb 2004 08:25:13 -0800 (PST) (envelope-from bde@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i1CGPDGe020438; Thu, 12 Feb 2004 08:25:13 -0800 (PST) (envelope-from bde@repoman.freebsd.org) Received: (from bde@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i1CGPCHv020433; Thu, 12 Feb 2004 08:25:12 -0800 (PST) (envelope-from bde) Message-Id: <200402121625.i1CGPCHv020433@repoman.freebsd.org> From: Bruce Evans Date: Thu, 12 Feb 2004 08:25:12 -0800 (PST) To: src-committers@freebsd.org, cvs-src@freebsd.org, cvs-all@freebsd.org X-FreeBSD-CVS-Branch: HEAD X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Sender: owner-cvs-all@freebsd.org Errors-To: owner-cvs-all@freebsd.org X-OriginalArrivalTime: 12 Feb 2004 16:23:37.0960 (UTC) FILETIME=[91BD8680:01C3F184] Subject: cvs commit: src/usr.bin/indent indent.1 io.c X-BeenThere: cvs-src@freebsd.org List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2004 09:19:21 -0000 bde 2004/02/12 08:25:12 PST FreeBSD src repository Modified files: usr.bin/indent indent.1 io.c Log: Only indent once for continuation lines when not lining up with parentheses if the continuation indent is exactly half of the main indent. Indenting one contination indent for every level of parentheses gives bad results in most cases and is not what is done in about 90% of properly hand-formatted KNF code (sys/kern/*.c, nvi/common/*.c). The main advantage of the non-default KNF options -nlp -ci4 is that continuation lines don't accidentally line up with the next main indentation level or march to the right, and increasing their indentation defeats this. This behaviour change is limited to when the continuation indent is exactly half of the main indent to avoid adding yet another option. Revision Changes Path 1.17 +3 -2 src/usr.bin/indent/indent.1 1.13 +2 -1 src/usr.bin/indent/io.c _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"