From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10439 invoked by alias); 18 Jan 2008 01:31:10 -0000 Received: (qmail 10420 invoked by uid 22791); 18 Jan 2008 01:31:06 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 18 Jan 2008 01:30:41 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 39CFE98297; Fri, 18 Jan 2008 01:30:39 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 043349801D; Fri, 18 Jan 2008 01:30:38 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1JFg46-0002pe-5x; Thu, 17 Jan 2008 20:30:38 -0500 Date: Fri, 18 Jan 2008 01:31:00 -0000 From: Daniel Jacobowitz To: Jim Blandy Cc: Rob Quill , msnyder@specifix.com, gdb-patches@sourceware.org Subject: Re: New scope checking patch Message-ID: <20080118013038.GA10468@caradoc.them.org> Mail-Followup-To: Jim Blandy , Rob Quill , msnyder@specifix.com, gdb-patches@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00466.txt.bz2 On Thu, Jan 17, 2008 at 01:57:58PM -0800, Jim Blandy wrote: > I'm told Open Source projects avoid tabs, but it seems that GDB > permits them, with tab stops every 8 columns. The GNU coding > standards don't say much about tab use or width, beyond saying that > error messages that include line and column numbers should assume tab > stops every 8 columns when computing column numbers. GDB in fact requires them. Leading eight spaces should always be tabs. Remaining spaces should be spaces and tabs in the middle of lines are generally frowned upon. This is, not coincidentally, what Emacs does. You can use the gdb_indent.sh script, but if the file has not previously been indented it may make a mess. That just runs GNU Indent with some magic options. -- Daniel Jacobowitz CodeSourcery