Clarify the wording about TABs. s/bracket/brace/ .

2006-04-28  Tor Lillqvist  <tml@novell.com>

	* HACKING: Clarify the wording about TABs. s/bracket/brace/ .
This commit is contained in:
Tor Lillqvist
2006-04-28 09:18:51 +00:00
committed by Tor Lillqvist
parent 2b15d322c8
commit db66fd2a68
2 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2006-04-28 Tor Lillqvist <tml@novell.com>
* HACKING: Clarify the wording about TABs. s/bracket/brace/ .
2006-04-27 Michael Natterer <mitch@gimp.org> 2006-04-27 Michael Natterer <mitch@gimp.org>
* app/plug-in/plug-in-locale-domain.[ch] (plug_in_locale_domains): * app/plug-in/plug-in-locale-domain.[ch] (plug_in_locale_domains):

13
HACKING
View File

@ -121,7 +121,7 @@ project. For the core components (application and libs) this coding
style is enforced. The GIMP coding style is defined as follows: style is enforced. The GIMP coding style is defined as follows:
* There's a single space between the function name and the opening * There's a single space between the function name and the opening
bracket. paren.
* Function names are lowercase, words separated by underscores. * Function names are lowercase, words separated by underscores.
@ -134,9 +134,14 @@ style is enforced. The GIMP coding style is defined as follows:
* Indentation rules are GNU coding style, in particular: * Indentation rules are GNU coding style, in particular:
- 2 characters indentation level - 2 characters indentation level
- Do not use tabs (of course your editor can use tabs, but it - Do not use tabs (of course your editor can accept the TAB key
should write them to file as 8 spaces each). as a command, typically to indent the current line properly
- Opening brackets are on a new line and indented one level. or to add spaces at the cursor until the next multiple of 8
columns, but it should not put TAB characters in the file).
- When editing files that still have TABs in them, make sure your
editor interprets the TABs correctly, that is, has tab stops
at 8 column intervals.
- Opening braces are on a new line and indented one level.
- Function header have the return type on one line, the name - Function header have the return type on one line, the name
starting in the first column of the following line. All starting in the first column of the following line. All
parameters are prototyped and there's a new line for each. parameters are prototyped and there's a new line for each.