summaryrefslogtreecommitdiff
path: root/CODING_STYLE
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-02-28 17:38:23 +0100
committerLennart Poettering <lennart@poettering.net>2015-02-28 17:38:38 +0100
commitddb64d82708da0cdd0a88fa433260d2e60bffb64 (patch)
treee3bd8a192b36c7cba7dd5935393a6ca7f2a49135 /CODING_STYLE
parent628c89cc68ab96fce2de7ebba5933725d147aecc (diff)
downloadsystemd-ddb64d82708da0cdd0a88fa433260d2e60bffb64.tar.gz
update TODO
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).