This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Coding Style
- From: Paul Brook <paul at codesourcery dot com>
- To: binutils at sourceware dot org
- Cc: Alex Bennee <kernel-hacker at bennee dot com>
- Date: Mon, 19 Mar 2007 14:55:39 +0000
- Subject: Re: Coding Style
- References: <1174315569.21350.65.camel@okra.transitives.com>
> It's not immediately obvious in the README and MAINTAINERS documents
> what the preferred coding style is. However etc/standards.info contains
> the GNU style guide. Is this is correct assumption?
Yes.
> Will there be any objection to adding an emacs local variable tag at the
> end of any files I touch?
I object. If we add magic markers for one editor we should add them
consistently, and for all common editors. This means accumulating a couple a
pages or so of crud on the start/end of each file. There are other ways to
make your editor use the right settings.
> All I really care about is the default indentation level and if tabs or
> whitespace is required.
indentation 2 spaces. Tabs 8 spaces. Hard tabs should be used.
Most of the code is formatted correctly, so following existing style is
generally a fairly good bet.
Paul