delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/04/10/19:09:35

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Tue, 10 Apr 2001 15:57:33 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: indent syntax
Message-ID: <20010410155733.B19509@redhat.com>
Reply-To: cygwin-developers AT cygwin DOT com
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <013c01c0c0f2$ed49a8a0$0200a8c0 AT lifelesswks> <20010409154857 DOT H956 AT cygbert DOT vinschen DOT de> <01f101c0c13f$4ae73260$0200a8c0 AT lifelesswks>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <01f101c0c13f$4ae73260$0200a8c0@lifelesswks>; from robert.collins@itdomain.com.au on Tue, Apr 10, 2001 at 07:51:53AM +1000

On Tue, Apr 10, 2001 at 07:51:53AM +1000, Robert Collins wrote:
>----- Original Message -----
>From: "Corinna Vinschen" <vinschen AT redhat DOT com>
>To: <cygwin-developers AT cygwin DOT com>
>Sent: Monday, April 09, 2001 11:48 PM
>Subject: Re: indent syntax
>
>
>> On Mon, Apr 09, 2001 at 10:45:14PM +1000, Robert Collins wrote:
>> > What indent syntax do you use for cygwin? I just noticed a huge
>change
>> > to the threads layout ..
>> >
>> > If you could let me know I'll use the same.
>>
>> We're using the GNU Coding Standard:
>>
>> http://www.gnu.org/prep/standards_toc.html
>>
>> Corinna
>>
>
>Well that leaves me confused. Indent is meant to default to the GNu
>coding standards. So why did Chris commit a change to pthread.cc,
>thread.cc, that moved every function definition to the left hand border?
>I'm indenting these files with indent foo.c (indent 2.2.5).

Because indent did not do the right thing in this case.  The GNU coding
standard says that functions and braces should start at the leftmost
border.

I don't know if there is an option to indent which accomodates c++ specifically
or not, but I suspect that indent is confused by the extern "C" {
stuff.

cgf

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019