summaryrefslogtreecommitdiff
path: root/docs/ACE-guidelines.html
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-01-11 04:07:46 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-01-11 04:07:46 +0000
commit312e1c48cd1840a556e2b52243a00301d38b5aa6 (patch)
tree2c1acc238d7c9fcf326c37b1bb9527e5961c99c1 /docs/ACE-guidelines.html
parentb78e81582a21f29a7710b4f8c8dcde0d776c7738 (diff)
downloadATCD-312e1c48cd1840a556e2b52243a00301d38b5aa6.tar.gz
added guidelines for boolean types and function return values
Diffstat (limited to 'docs/ACE-guidelines.html')
-rw-r--r--docs/ACE-guidelines.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/ACE-guidelines.html b/docs/ACE-guidelines.html
index 873a1527073..12fb1c2afc8 100644
--- a/docs/ACE-guidelines.html
+++ b/docs/ACE-guidelines.html
@@ -480,6 +480,13 @@ bgcolor="#ffffff">
<code>ACE_UNIMPLEMENTED_FUNC</code> can be used with non-template
classes as well. Though for consistency and maximum safety, it
should be avoided for non-template classes.<p>
+
+ <li>Never use <code>bool</code>, <code>BOOL</code>, or similar
+ types. (CORBA::Boolean is acceptable). Use <code>int</code>
+ or <code>u_int</code> instead for boolean types.<p>
+
+ <li>Functions should always return -1 to indicate failure, and
+ 0 or greater to indicate success.<p>
</ul>
<li><strong>I/O</strong><p>