[GRASS-dev] Tabs and spaces in C code

Vaclav Petras wenzeslaus at gmail.com
Thu Aug 21 10:47:53 PDT 2014

On Thu, Aug 21, 2014 at 11:21 AM, Glynn Clements <glynn at gclements.plus.com>

> Vaclav Petras wrote:
> > In other words, if there is some rule there should be some reasoning
> behind
> > it. Four spaces for first level and one tab for second level does not
> make
> > any sense to me. If old files cannot be changed, let's at least not
> > introduce bad practice to new files.
> The "rules" are that indentation in multiples of 4 columns, and we
> don't care whether that indentation is acheived through spaces or
> tabs.

So, since we are providing a script and standard for indentation, let's use
only spaces* in this script (rather then enforcing mixing of tabs and
spaces when there is no reason for it).

First level: 4 spaces = 4 columns
Second level: 8 spaces = 8 columns
Second level: 12 spaces = 12 columns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20140821/0a2ad665/attachment.html>

More information about the grass-dev mailing list