Benedikt Heine
f4fb95c827
Do not make explicit NULL checks on elements
...
Most of the NULL checks are actually doubly false logic. Turning the
logic around and removing the NULL check makes the program easier to
read.
2018-07-10 13:23:12 +02:00
Benedikt Heine
554c873808
Mark constant strings as const
...
It's hard to trace back, which methods in option parser require freeing
the result and which prohibit it. Marking all non-freeable values as
const lets this problem solve the compiler.
2017-09-25 02:26:11 +02:00
Benedikt Heine
7eb99ea64d
add tests for *_get_path functions
2017-08-15 23:51:14 +02:00
Nikos Tsipinakis
d8d267e1f0
ASSERT_FALSE(expr == NULL) -> ASSERT(expr)
...
Simplify assert calls to improve code readability.
2017-02-23 20:45:09 +02:00
Nikos Tsipinakis
f34b846041
Fix memory leaks in the unit tests
...
Making valgrind complain less should help finding actual memory leaks in
the long run.
2017-01-29 15:32:36 +02:00
Nikos Tsipinakis
187d3f9ab9
Invalid boolean values should fall back to the default
...
Previously, an invalid value was always false
2016-12-15 19:13:08 +02:00
Nikos Tsipinakis
b9619a1460
Add option parser test suite
2016-12-03 19:33:40 +02:00