[libdvbpsi-devel] README: some notes on preferred coding style
Jean-Paul Saman
git at videolan.org
Tue Feb 4 11:22:00 CET 2014
libdvbpsi | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Sun Feb 2 12:26:44 2014 +0100| [10d5278b706ef8636d9ca7c07524a74f1e398e27] | committer: Jean-Paul Saman
README: some notes on preferred coding style
> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=10d5278b706ef8636d9ca7c07524a74f1e398e27
---
README | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
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
=========
More information about the libdvbpsi-devel
mailing list