Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Hannu E K Nevalainen" To: Subject: Reformatting C/C++/Java code (RE: proposed sync() patch) Date: Wed, 14 Apr 2004 20:29:12 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <20040414102222.GK26558@cygbert.vinschen.de> > From: Corinna Vinschen > On Apr 14 11:14, Dave Korn wrote: > > and GNU coding style would be > > > > +static int > > +sync_drive (char drive) > > > > which is probably the more appropriate here. > > GNU coding style is what we're trying to follow. > > Corinna i.e: $ indent -gnu read more: $ man indent and then type: (the typing will show up on the last line) /^COMMON STYLES and hit ENTER... Assuming you do not use strange formatting/style - the output of indent will be perfectly acceptable, I presume. Another possibility: $ astyle --style=gnu <...> $ man astyle No manual entry for astyle $ info astyle $ type -a astyle astyle is /usr/bin/astyle astyle is /bin/astyle $ astyle -h /Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E ** on a mailing list; please keep replies on that particular list ** -- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); -- --END OF MESSAGE-- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/