aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Paul Saman <jean-paul.saman@m2x.nl>2014-02-02 12:26:44 +0100
committerJean-Paul Saman <jean-paul.saman@m2x.nl>2014-02-04 10:52:03 +0100
commit10d5278b706ef8636d9ca7c07524a74f1e398e27 (patch)
tree809542290315ae65a914a7225f71ef6c7a69ad1f
parent114fa6be8909e90503195c8596402c31b3342128 (diff)
README: some notes on preferred coding style
-rw-r--r--README16
1 files changed, 16 insertions, 0 deletions
diff --git a/README b/README
index c65ba17..496658e 100644
--- a/README
+++ b/README
@@ -27,6 +27,22 @@ A mailing-list has been set up for discussion about the libdvbpsi:
libdvbpsi-devel. SVN mails are sent to this list. More information on
VideoLAN website: http://www.videolan.org/
+Coding Style
+============
+Some notes on the preferred coding style is:
+- 4 spaces indentation (no tabs)
+- indent '{' and '}' on the same column as the 'if', eg:
+ if (...)
+ {
+ ....
+ }
+- function declarations always start in the first column
+- indexes for loops should be declared in the loop declaration, eg:
+ for (int i = 0; i < max; i++)
+ {
+ ....
+ }
+
Resources
=========

Privacy Policy