Code

Added hint to avoid using the boolean type in C as discussed on the devel list
authorMatthias Eble <psychotrahe@users.sourceforge.net>
Fri, 6 Jul 2007 23:03:39 +0000 (23:03 +0000)
committerMatthias Eble <psychotrahe@users.sourceforge.net>
Fri, 6 Jul 2007 23:03:39 +0000 (23:03 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1748 f882894a-f735-0410-b71e-b25c423dba1c

doc/developer-guidelines.sgml

index 44fca2437f9a0e1e1280cc70c6131c80fb25dae1..7bfcc732ae175f846d238254d26e1e22b6b3b946 100644 (file)
@@ -731,6 +731,10 @@ setup the tests. Run "make test" to run all the tests.
 
        <para>You should use /* */ for comments and not // as some compilers
        do not handle the latter form.</para>
+
+       <para>You should also avoid using the type "bool" and its values
+       "true" and "false". Instead use the "int" type and the plugins' own
+       "TRUE"/"FALSE" values to keep the code uniformly.</para>
        </section>
 
        <section><title>Crediting sources</title>