From owner-cvs-src-old@FreeBSD.ORG Fri Apr 2 16:07:03 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6B261065679 for ; Fri, 2 Apr 2010 16:07:03 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A52DC8FC08 for ; Fri, 2 Apr 2010 16:07:03 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o32G73Sk069807 for ; Fri, 2 Apr 2010 16:07:03 GMT (envelope-from avg@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o32G73St069806 for cvs-src-old@freebsd.org; Fri, 2 Apr 2010 16:07:03 GMT (envelope-from avg@repoman.freebsd.org) Message-Id: <201004021607.o32G73St069806@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to avg@repoman.freebsd.org using -f From: Andriy Gapon Date: Fri, 2 Apr 2010 16:06:46 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/share/examples/indent indent.pro X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2010 16:07:03 -0000 avg 2010-04-02 16:06:46 UTC FreeBSD src repository Added files: share/examples/indent indent.pro Log: SVN rev 206102 on 2010-04-02 16:06:46Z by avg add example indent.pro file believed to produce code with minimal differences from KNF This file is what bde uses! With addition of some types from queue(3) by hps. Please note that the output will not be KNF and currently it's not possible to achieve correct KNF with any combination of options. indent(1) needs to be made smarter. Some issues: o indent produces a space between a queue type macro and opening parenthesis o indent produces a tab before __packed and __aligned o indent produce a space after #define bde also notes difference in the following options between this profile and profile in /usr/src/admin/style of 4.4BSD: -cdb -ei -ip8 -nsob Also, NetBSD uses -di0 instead of -di8. Location for the profile is suggested by jh. Submitted by: Hans Petter Selasky (parts) Obtained from: bde :-) MFC after: 10 days X-ToDo: make indent able to produce proper (perfect) KNF X-Perhaps-ToDo: make KNF default output Revision Changes Path 1.1 +129 -0 src/share/examples/indent/indent.pro (new)