Преглед изворни кода

Reminder of no inline variable declarations

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1400 f882894a-f735-0410-b71e-b25c423dba1c
Ton Voon пре 20 година
родитељ
комит
49f15b6bbf
1 измењених фајлова са 8 додато и 1 уклоњено
  1. 8 1
      doc/developer-guidelines.sgml

+ 8 - 1
doc/developer-guidelines.sgml

@@ -643,9 +643,16 @@ setup the tests. Run "make test" to run all the tests.
 <section id="CodingGuidelines"><title>Coding guidelines</title>
 <section id="CodingGuidelines"><title>Coding guidelines</title>
 	<para>See <ulink url="http://www.gnu.org/prep/standards_toc.html">GNU
 	<para>See <ulink url="http://www.gnu.org/prep/standards_toc.html">GNU
 	Coding standards</ulink> for general guidelines.</para>
 	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
 	<para>You should use /* */ for comments and not // as some compilers
 	do not handle the latter form.</para>
 	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
 	<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
 	from your source allows this. Add a comment referencing the ACKNOWLEDGEMENTS
 	file, where you can put more detail about the source.</para>
 	file, where you can put more detail about the source.</para>