summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f7bb6d1)
raw | patch | inline | side by side (parent: f7bb6d1)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 24 May 2006 09:23:50 +0000 (09:23 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 24 May 2006 09:23:50 +0000 (09:23 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1400 f882894a-f735-0410-b71e-b25c423dba1c
doc/developer-guidelines.sgml | patch | blob | history |
index 1861e956d329523d174fd851565ea91542d3c641..6d5c813c166d5a15ac1a31e23ee8629c36ea6e0c 100644 (file)
<section id="CodingGuidelines"><title>Coding guidelines</title>
<para>See <ulink url="http://www.gnu.org/prep/standards_toc.html">GNU
Coding standards</ulink> for general guidelines.</para>
- <section><title>Comments</title>
+ <section><title>C coding</title>
+
+ <para>Variables should be declared at the beginning of code blocks and
+ not inline because of portability with older compilers.</para>
+
<para>You should use /* */ for comments and not // as some compilers
do not handle the latter form.</para>
+ </section>
+
+ <section><title>Crediting sources</title>
<para>If you have copied a routine from another source, make sure the licence
from your source allows this. Add a comment referencing the ACKNOWLEDGEMENTS
file, where you can put more detail about the source.</para>