summaryrefslogtreecommitdiff
path: root/CODING_STYLE
diff options
context:
space:
mode:
Diffstat (limited to 'CODING_STYLE')
-rw-r--r--CODING_STYLE4
1 files changed, 4 insertions, 0 deletions
diff --git a/CODING_STYLE b/CODING_STYLE
index 5574013487..0340ff0fa3 100644
--- a/CODING_STYLE
+++ b/CODING_STYLE
@@ -208,3 +208,7 @@
is needed. Everytime you need that please immediately undefine
basename(), and add a comment about it, so that no code ever ends up
using the XDG version!
+
+- Use the bool type for booleans, not integers. One exception: in public
+ headers (i.e those in src/systemd/sd-*.h) use integers after all, as "bool"
+ is C99 and in our public APIs we try to stick to C89 (with a few extension).