Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JqvPg-0005K6-1d for mharc-grub-devel@gnu.org; Tue, 29 Apr 2008 15:22:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JqvPd-0005Ii-5b for grub-devel@gnu.org; Tue, 29 Apr 2008 15:22:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JqvPT-0005EQ-RY for grub-devel@gnu.org; Tue, 29 Apr 2008 15:22:48 -0400 Received: from [199.232.76.173] (port=48010 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqvPT-0005EL-HR for grub-devel@gnu.org; Tue, 29 Apr 2008 15:22:39 -0400 Received: from gateway07.websitewelcome.com ([69.56.142.25]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JqvPS-00048S-CD for grub-devel@gnu.org; Tue, 29 Apr 2008 15:22:39 -0400 Received: (qmail 9654 invoked from network); 29 Apr 2008 19:26:58 -0000 Received: from gator297.hostgator.com (74.53.228.114) by gateway07.websitewelcome.com with SMTP; 29 Apr 2008 19:26:58 -0000 Received: from [146.187.185.172] (port=45870 helo=localhost) by gator297.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1JqvP7-0004mZ-Mc for grub-devel@gnu.org; Tue, 29 Apr 2008 14:22:17 -0500 Date: Tue, 29 Apr 2008 12:22:18 -0700 From: Colin D Bennett To: grub-devel@gnu.org Message-ID: <20080429122218.3b2f66b7@gibibit.com> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator297.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gibibit.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Coding style / indent options X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2008 19:22:49 -0000 Does anyone have a set of GNU indent (or astyle) options that correspond to the proper format for GRUB source code? I want to make sure I'm using the correct style so that I don't produce spurious changes when files I'm editing are reformatted. I tried using GNU indent (with the default GNU style) on a few GRUB 2 source files to see what differences resulted, and I observed the following differences: GRUB GNU ==== === (1) Space after unary '!' operator Yes No (2) Space between macro name and open paren No Yes (3) Max line length >=80 <80 (4) Space between __attribute__ and parens No Yes (5) Keep indenting spaces on blank lines Yes No I did notice, however, that in some places (e.g., normal/functions.c lines 84-87) the space/TAB usage is inconsistent). I assume that replacing 8 spaces with TAB characters is the desired usage (as GNU style suggests). I just want to keep the code I modify and produce as clean and uniform as possible, and produce clean patches. Thanks, Colin