Elektra  0.8.18
Definition of bool

Issue

Inconsistent use of bool in various parts of Elektra.

Constraints

Assumptions

Considered Alternatives

Decision

Use, depending on what your default should be:

Example:

if ( strcmp(keyString(k), "0")) {/*true*/} else {/*false*/}
if (!strcmp(keyString(k), "1")) {/*true*/} else {/*false*/}

In the documentation it should mention that a bool is used and which is the default.

The type checker plugin should allow

The convenience plugin should transform (it might be combined with a plugin that transforms everything lower-case):

Argument

Implications

Related decisions

Notes

See here