summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2016-10-11 10:27:28 +0100
committerFrediano Ziglio <fziglio@redhat.com>2016-10-11 10:28:22 +0100
commit1e6bdba552e50b37833a80c34bfcb110a56b0aeb (patch)
treec998fe42f7c25c710a20967f198ac2fa78dd6f05
parent5193360594d461a015d43e7b7ca6ed51e8481035 (diff)
style: Specify function definition indentation
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
-rw-r--r--docs/spice_style.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/spice_style.txt b/docs/spice_style.txt
index 026a3540..cd874df7 100644
--- a/docs/spice_style.txt
+++ b/docs/spice_style.txt
@@ -198,7 +198,14 @@ void function(type1 arg1, type2 arg2,
type3 arg3)
----
+
-* New line is acceptable only in arguments list
+* New line is acceptable in arguments list and before function name, like
++
+[source,c]
+----
+void
+function(type1 arg1, type2 arg2,
+ type3 arg3)
+----
Branching indentation
---------------------