X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=CODING_STYLE;h=0340ff0fa31e0beb53248e5c28f957532114c304;hp=557401348789e0322ea45a1d699d56430da329eb;hb=adfe5671ef794099068038dfccbf1eb5134433c8;hpb=eef46c372f64f40dd75415b2c504c73138719c8d diff --git a/CODING_STYLE b/CODING_STYLE index 557401348..0340ff0fa 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).