Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2022-09-01 | Simplify thread and semaphore status codes | David Robillard | 2 | -3/+3 | |
2022-08-19 | Avoid unused parameter warning | David Robillard | 1 | -0/+1 | |
2022-08-19 | Simplify errno handling | David Robillard | 1 | -3/+3 | |
2022-08-19 | Move sem implementation out of header | David Robillard | 1 | -1/+1 | |
This avoids having platform conditionals in public headers, which causes build problems for dependants. | |||||
2022-08-18 | Relax test timing | David Robillard | 1 | -1/+1 | |
2022-08-18 | Add zix_sem_timed_wait() | David Robillard | 1 | -0/+14 | |
2022-08-18 | Fix semaphore error handling | David Robillard | 2 | -4/+17 | |
Note that existing code which uses zix_sem_try_wait() may still compile against this change, but be incorrect! | |||||
2022-08-18 | Fix thread function attributes on Windows | David Robillard | 3 | -10/+5 | |
2022-08-18 | Reduce tree test complexity | David Robillard | 1 | -104/+77 | |
2022-08-18 | Improve test coverage | David Robillard | 2 | -4/+96 | |
2022-08-18 | Fix or remove non-portable features in thread API | David Robillard | 3 | -12/+57 | |
Thread function return values are inconsistent between nearly every threading API out there. So, just ignore them entirely, and provide a typedef and sentinel value so user code can be portable. | |||||
2022-08-18 | Factor out converting errno codes to ZixStatus | David Robillard | 1 | -2/+31 | |
2022-08-18 | Use conventional test executable names | David Robillard | 9 | -1/+5 | |
2022-07-13 | Suppress new warnings in clang and clang-tidy 14 | David Robillard | 1 | -0/+2 | |
2022-06-28 | Simplify clang-tidy configuration | David Robillard | 1 | -2/+0 | |
2022-06-28 | Use uppercase integer literal suffixes | David Robillard | 9 | -80/+78 | |
I give in. | |||||
2022-06-28 | Simplify dep5 file by adding license headers where possible | David Robillard | 1 | -0/+3 | |
2022-06-28 | Fix build as C with MSVC | David Robillard | 1 | -1/+1 | |
2022-06-28 | Clean up build configuration | David Robillard | 1 | -3/+0 | |
2022-06-28 | Remove redundant includes | David Robillard | 1 | -1/+0 | |
This is implicitly included by <inttypes.h>. | |||||
2022-03-14 | Reduce default BTree test time | David Robillard | 1 | -1/+1 | |
2021-12-17 | Suppress new warnings in clang-tidy 13 | David Robillard | 2 | -3/+4 | |
2021-09-18 | Use assertions in Bitset test | David Robillard | 1 | -52/+14 | |
2021-09-16 | Add a simple bump pointer allocator | David Robillard | 2 | -1/+60 | |
2021-09-14 | Replace shared library malloc shim with explicit allocation testing | David Robillard | 4 | -177/+124 | |
The old approach was generally annoying to deal with sometimes, and not particularly portable. This replaces it by using the new custom allocator interface with unit tests that specifically check that failed allocation is handled properly. | |||||
2021-09-14 | Add aligned allocation interface and use it in ZixBTree | David Robillard | 2 | -0/+33 | |
2021-09-14 | Make ZixAllocator a single flat struct | David Robillard | 4 | -44/+48 | |
I can never decide between these two patterns for polymorphic objects in C, but this one seems more appropriate here since it's more conducive to inheritance. | |||||
2021-09-13 | Remove unused include | David Robillard | 1 | -1/+0 | |
2021-09-10 | Avoid GCC recommending a const main | David Robillard | 1 | -8/+4 | |
These warnings are useful in general, but are pointless with main functions and annoying to avoid. Arbitrarily print something to make it go away. | |||||
2021-09-10 | Fix function attribute warnings | David Robillard | 2 | -0/+3 | |
2021-09-10 | Adopt REUSE machine-readable licensing standard | David Robillard | 14 | -210/+28 | |
2021-09-10 | Add test for zix_strerror() | David Robillard | 1 | -0/+47 | |
2021-09-10 | Use assert in Sem test | David Robillard | 1 | -13/+7 | |
2021-09-10 | Use assert in Ring test | David Robillard | 1 | -91/+26 | |
2021-09-10 | Test failed Ring allocation | David Robillard | 3 | -18/+178 | |
2021-09-10 | Add custom allocator support | David Robillard | 5 | -12/+78 | |
2021-09-10 | Add nullability annotations | David Robillard | 1 | -0/+3 | |
This allows clang to issue warnings at compile time when null is passed to a non-null parameter. For public entry points, also add assertions to catch such issues when the compiler does not support this. | |||||
2021-09-10 | Move attribute definitions to a separate header | David Robillard | 6 | -3/+6 | |
2021-09-10 | Rewrite ZixHash as a flat table with open addressing | David Robillard | 2 | -80/+235 | |
2021-09-10 | Replace CRC32 digest with more modern and appropriate algorithms | David Robillard | 2 | -41/+92 | |
This makes the hassle of platform-specific code go away, and instead uses portable implementations of relatively standard modern hash algorithms. CRC32 is not great as a hash function anyway, though it is very fast when hardware accelerated. | |||||
2021-09-10 | Add a user handle to destroy callback | David Robillard | 2 | -12/+14 | |
2021-09-10 | Add test that covers more BTree removal cases | David Robillard | 1 | -0/+39 | |
2021-09-10 | Add test for reinserting a value that is a BTree node split pivot | David Robillard | 1 | -0/+20 | |
2021-09-10 | Add test for BTree iterator comparison | David Robillard | 1 | -0/+44 | |
2021-09-10 | Simplify BTree implementation | David Robillard | 1 | -3/+3 | |
2021-09-10 | Avoid inserting wildcards as values in BTree test | David Robillard | 1 | -8/+8 | |
2021-09-10 | Allow ZixBTreeIter to be allocated on the stack | David Robillard | 1 | -49/+8 | |
2021-09-10 | Remove destroy field of BTree and add zix_btree_clear() | David Robillard | 1 | -10/+53 | |
If this is used, it is only when clearing or freeing a tree. Allowing it to be given as a parameter directly there is clearer and avoids bloating the tree itself with information that isn't needed. | |||||
2021-09-10 | Suppress new warnings in clang-tidy 12 | David Robillard | 1 | -0/+3 | |
2021-09-10 | Be explicit about the sign of defined integer constants | David Robillard | 2 | -6/+6 | |