libzip: libzip-discuss: Re: Coding standard

Thread

Thread Index

  • Coding standard, Pierre Joye (2010/02/01 19:01:48)
    • Re: Coding standard, Thomas Klausner (2010/02/09 13:28:10)

Message

From: Thomas Klausner <tk%giga.or.at@localhost>
To: Pierre Joye <pierre.php%gmail.com@localhost>
Subject: Re: Coding standard
Date: Tue, 9 Feb 2010 14:28:10 +0100

On Mon, Feb 01, 2010 at 08:01:47PM +0100, Pierre Joye wrote:
> Would it be possible to define some coding standard for the libzip
> sources (tabs vs space, using { or not for one line true/false clause,
> etc.)? The current state makes the reading, merging, patching of the
> various branches a pain :)

Well, the code is hopefully consistent, but we don't have a written
document about it. Let us know if you find major inconsistencies.

For your specific questions:
tabs vs. spaces: default indent is 4 chars; two indents = 1 tab
one line ifs don't need braces
 Thomas

Made by MHonArc.