Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2002:
[Freeciv-Dev] Re: Coding Style Guidelines
Home

[Freeciv-Dev] Re: Coding Style Guidelines

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Coding Style Guidelines
From: Jason Short <vze2zq63@xxxxxxxxxxx>
Date: Fri, 11 Jan 2002 04:33:14 -0500
Reply-to: jdorje@xxxxxxxxxxxx

Raimar Falke wrote:

On Fri, Jan 11, 2002 at 12:17:14AM -0600, Mike Kaufman wrote:

attached is what I propose to be put in CVS. Hopefully this will start
the last major thread on this subject.

Not likely...


- Spaces should go before and after operators, and after commas:

indent takes care of this.

indent covers a lot of things, but some of them should perhaps be explicitly mentioned anyway.


- Always prototype global functions in the appropriate header file.
 Local functions should always be declared as static.

Use "-Wmissing-prototypes -Wmissing-declarations" to catch these.

Shouldn't that then be "Local functions should always be declared as static and prototyped at the top of the file"?

jason



[Prev in Thread] Current Thread [Next in Thread]