| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| 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" <garbage_collector AT telia DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | Reformatting C/C++/Java code (RE: proposed sync() patch) |
| Date: | Wed, 14 Apr 2004 20:29:12 +0200 |
| Message-ID: | <NGBBLLIAMFLGJEOAJCCECECADKAA.garbage_collector@telia.com> |
| MIME-Version: | 1.0 |
| 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 <sourcefile(s)...>
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
<not found>
$ type -a astyle
astyle is /usr/bin/astyle
astyle is /bin/astyle
$ astyle -h
<blahblah>
/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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |