Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2024-12-11 | Avoid _get_osfhandle with clang on Windows | David Robillard | 1 | -0/+12 | |
This function crashes when called in a clang build, I'm not sure why. File locking in general isn't a realiable enough facility, and this API weirdly uses FILE* unlike anything else, adding it was probably a mistake. | |||||
2024-12-11 | Fix clang and clang-tidy warnings on Windows | David Robillard | 7 | -14/+17 | |
2024-12-11 | Remove old tree_debug.h header | David Robillard | 2 | -167/+6 | |
2024-12-11 | Fix potential null dereferences | David Robillard | 2 | -2/+4 | |
2024-12-11 | Consistently use malloc attribute for string-returning functions | David Robillard | 2 | -5/+5 | |
These function return newly allocated strings, which can't contain pointers to any other object, so the GCC "malloc" attribute applies. | |||||
2024-12-11 | Fix memory leak | David Robillard | 1 | -5/+4 | |
Also removes the last MAX_PATH buffer limit. | |||||
2024-12-11 | Handle emscripten and MinGW stubs the same way | David Robillard | 3 | -3/+8 | |
2024-12-11 | Add ZixDirEntryVisitFunc | David Robillard | 3 | -15/+20 | |
Although this type is only used once in the API, define it to avoid the complicated syntax of inline function pointer parameters, which confuses both people and clang-format. | |||||
2024-12-11 | Support building for UWP | David Robillard | 6 | -25/+94 | |
2024-12-11 | Support building for Windows with or without UNICODE | David Robillard | 8 | -43/+284 | |
2024-12-11 | Add option to build for older Windows versions | David Robillard | 7 | -36/+129 | |
Adds configuration checks for Windows API functions, and a win_ver configuration option to change the targeted API version. | |||||
2024-12-11 | Fix meson file formatting | David Robillard | 3 | -17/+20 | |
As dictated by muon. | |||||
2024-12-11 | Clean up platform C flags | David Robillard | 3 | -3/+6 | |
Remove platform flags from executable (test program) builds, since they shouldn't be needed there (that being the whole point of a portability library), and replace POSIX flags in WIndows with WIN32_LEAN_AND_MEAN. | |||||
2024-12-11 | Keep test paths within created temporary directory | David Robillard | 1 | -3/+9 | |
Creates a subdirectory for testing ".." to stay within the created test directory for compatibility with sandboxing. | |||||
2024-12-11 | Use DeleteFile() instead of remove() | David Robillard | 1 | -4/+3 | |
2024-12-11 | Use CreateDirectory() instead of _mkdir() | David Robillard | 1 | -4/+3 | |
2024-12-11 | Fix widening conversions after arithmetic | David Robillard | 4 | -11/+11 | |
2024-12-02 | Fix benchmark script | David Robillard | 1 | -3/+3 | |
2024-12-02 | Fix benchmark build on Windows | David Robillard | 1 | -10/+6 | |
Since these benchmarks depend on glib anyway (for comparison), portability hassles can be avoided here by just using glib for timing as well. | |||||
2024-12-02 | Use BenchmarkTime typedef everywhere | David Robillard | 2 | -17/+15 | |
This isolates the implementation details of benchmark time stamps from benchmark code. | |||||
2024-11-24 | Clean up and strengthen warning flags | David Robillard | 3 | -25/+25 | |
Some previously global suppressions were only actually needed in benchmarks or tests, so move them there to keep the main set as small as possible. | |||||
2024-11-24 | Clean up includes | David Robillard | 7 | -9/+9 | |
2024-11-24 | Add zix_expand_environment_strings() | David Robillard | 11 | -5/+356 | |
2024-11-24 | Improve test coverage | David Robillard | 1 | -7/+6 | |
2024-11-23 | Remove duplicate branch | David Robillard | 1 | -6/+1 | |
2024-11-23 | Use angle brackets for library includes | David Robillard | 56 | -169/+181 | |
2024-11-15 | Avoid potential memory leak in test | David Robillard | 1 | -1/+1 | |
2024-11-15 | Avoid potential open file leak in test | David Robillard | 1 | -1/+2 | |
2024-11-15 | Assert that allocation and file opening succeeds in tests | David Robillard | 3 | -0/+11 | |
This appeases GCC's static analyzer. | |||||
2024-11-15 | Improve ring documentation | David Robillard | 2 | -10/+61 | |
2024-11-15 | Update clang-format configuration | David Robillard | 29 | -372/+183 | |
2024-10-06 | Clean up test definitions | David Robillard | 1 | -45/+36 | |
2024-10-06 | Remove redundant default value for meson options | David Robillard | 1 | -8/+8 | |
2024-09-28 | Improve test allocator API | David Robillard | 8 | -18/+35 | |
Add a simple API for setting up the failing allocator to avoid manually tinkering with its members. Conveniently, this also avoids confusing cppcheck. | |||||
2024-09-28 | Fix cppcheck test on older systems | David Robillard | 1 | -1/+1 | |
This fixes the test on the lv2plugin/debian-x64 image in particular, which is based on Debian 11 with cppcheck 2.3. | |||||
2024-07-18 | Simplify logging code in tree benchmark | David Robillard | 1 | -19/+14 | |
2024-07-18 | Add missing include | David Robillard | 1 | -0/+1 | |
2024-07-18 | Suppress new warnings in clang and clang-tidy 18 | David Robillard | 4 | -4/+8 | |
2024-07-15 | Add missing pure function attributes | David Robillard | 1 | -0/+2 | |
2024-07-15 | Add missing include | David Robillard | 1 | -0/+1 | |
2024-06-26 | Improve test coverage | David Robillard | 1 | -3/+1 | |
This situation probably should be reported, but 100% line coverage is very convenient since it makes coverage regression more obvious. I don't think a test being skipped on an esoteric system configuration is worth losing that. | |||||
2024-06-26 | Add zix_string_view_equals() | David Robillard | 5 | -4/+155 | |
2024-06-23 | Skip socket file type test with absurdly long TMPDIR | David Robillard | 1 | -8/+12 | |
If TMPDIR is so long that it doesn't fit in the socket address field, then it's impossible to create a socket in the temporary directory. This is a pretty weird situation that would never happen on a normal system, so I think the test can just be skipped without the reduced coverage being a problem. | |||||
2024-06-23 | Update tested platform versions in README | David Robillard | 1 | -3/+3 | |
2024-06-23 | Fix build on POSIX systems without PATH_MAX defined | David Robillard | 2 | -4/+7 | |
2024-06-22 | Add ZIX_NODISCARD attribute to allocating, accessor, and pure API | David Robillard | 8 | -3/+19 | |
2024-06-22 | Add ZIX_NODISCARD attribute | David Robillard | 5 | -4/+9 | |
2024-06-22 | Consistently use ZIX_MALLOC_API and ZIX_MALLOC_FUNC | David Robillard | 5 | -7/+10 | |
2024-06-22 | Clean up whitespace and clang-format configuration | David Robillard | 4 | -14/+27 | |
2024-06-22 | Avoid cppcheck warning about self-assignment | David Robillard | 2 | -5/+5 | |