summaryrefslogtreecommitdiff
path: root/HACKING
diff options
context:
space:
mode:
authorStef Walter <stefw@collabora.co.uk>2011-09-21 17:21:58 +0200
committerStef Walter <stefw@collabora.co.uk>2011-09-21 17:21:58 +0200
commitd115384c5f5df3f0e66b3668b864e1f25df6103c (patch)
tree9e1f264a5b1e202352ca50e9cdf407c59889d2ad /HACKING
parentda507d8753444252dc77aaf1757014859480cc27 (diff)
Clarify HACKING about function definition style.
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING7
1 files changed, 5 insertions, 2 deletions
diff --git a/HACKING b/HACKING
index 2f019fb9..1932eeed 100644
--- a/HACKING
+++ b/HACKING
@@ -107,10 +107,13 @@ instead of an asterisk:
}
* Braces around functions on a separate line from function name,
- return value on a separate line:
+ return value on a separate line, arguments on separate lines.
+ arguments should be indented with spaces past the column of the function
+ name.
static void
- my_special_function (int arg)
+ my_special_function (int arg1,
+ int arg2)
{
/* body of function */
}