chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
628c89c
)
update TODO
author
Lennart Poettering
<lennart@poettering.net>
Sat, 28 Feb 2015 16:38:23 +0000
(17:38 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Sat, 28 Feb 2015 16:38:38 +0000
(17:38 +0100)
CODING_STYLE
patch
|
blob
|
history
diff --git
a/CODING_STYLE
b/CODING_STYLE
index 557401348789e0322ea45a1d699d56430da329eb..0340ff0fa31e0beb53248e5c28f957532114c304 100644
(file)
--- 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).