README: some notes on preferred coding style
[email protected] (Jean-Paul Saman)
| Newsgroups | gmane.comp.video.videolan.libdvbpsi.devel |
|---|---|
| Message-ID | <[email protected]> |
libdvbpsi | branch: master | Jean-Paul Saman <[email protected]> | 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 ========= _______________________________________________ libdvbpsi-devel mailing list [email protected] https://mailman.videolan.org/listinfo/libdvbpsi-devel