[gnome-keyring] Clarify HACKING about function definition style.



commit d115384c5f5df3f0e66b3668b864e1f25df6103c
Author: Stef Walter <stefw collabora co uk>
Date:   Wed Sep 21 17:21:58 2011 +0200

    Clarify HACKING about function definition style.

 HACKING |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/HACKING b/HACKING
index 2f019fb..1932eee 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 */
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]