Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-11-05 | Drop FOREACH_WORD_QUOTED | Zbigniew Jędrzejewski-Szmek | |
2016-03-03 | tests: move string related tests to test-string-util.c | Ronny Chevalier | |
2016-02-10 | tree-wide: remove Emacs lines from all files | Daniel Mack | |
This should be handled fine now by .dir-locals.el, so need to carry that stuff in every file. | |||
2016-01-13 | basic: add ascii_strcasecmp_nn() call | Lennart Poettering | |
In contrast to ascii_strcasecmp_nn() it takes two character buffers with their individual length. It will then compare the buffers up the smaller size of the two buffers, and finally the length themselves. | |||
2016-01-13 | basic: add new ascii_strcasecmp_n() call | Lennart Poettering | |
2015-11-02 | string-util: rework memory_erase() so that it cannot be optimized away | Lennart Poettering | |
memory_erase() so far just called memset(), which the compiler might optimize away under certain conditions if it feels there's benefit in it. C11 knows a new memset_s() call that is like memset(), but may not be optimized away. Ideally, we'd just use that call, but glibc currently does not support it. Hence, implement our own simplistic version of it. We use a GCC pragma to turn off optimization for this call, and also use the "volatile" keyword on the pointers to ensure that gcc will use the pointers as-is. According to a variety of internet sources, either one does the trick. However, there are also reports that at least the volatile thing isn't fully correct, hence let's add some snake oil and employ both techniques. https://news.ycombinator.com/item?id=4711346 |