summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--include/zix/filesystem.h4
2 files changed, 4 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index f94ba76..d2dc31b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,8 +1,9 @@
zix (0.4.3) unstable; urgency=medium
* Avoid fdatasync() on Darwin
+ * Fix nullability annotations for zix_canonical_path() and friends
- -- David Robillard <d@drobilla.net> Fri, 17 Nov 2023 19:36:00 +0000
+ -- David Robillard <d@drobilla.net> Fri, 15 Dec 2023 20:40:18 +0000
zix (0.4.2) stable; urgency=medium
diff --git a/include/zix/filesystem.h b/include/zix/filesystem.h
index e07b579..9abafe1 100644
--- a/include/zix/filesystem.h
+++ b/include/zix/filesystem.h
@@ -147,7 +147,7 @@ zix_create_directory_symlink(const char* ZIX_NONNULL target_path,
@return The path of the created directory, or null.
*/
ZIX_API
-char* ZIX_ALLOCATED
+char* ZIX_NULLABLE
zix_create_temporary_directory(ZixAllocator* ZIX_NULLABLE allocator,
const char* ZIX_NONNULL path_pattern);
@@ -228,7 +228,7 @@ zix_file_equals(ZixAllocator* ZIX_NULLABLE allocator,
@return A new canonical version of `path`, or null if it doesn't exist.
*/
ZIX_API
-char* ZIX_ALLOCATED
+char* ZIX_NULLABLE
zix_canonical_path(ZixAllocator* ZIX_NULLABLE allocator,
const char* ZIX_NULLABLE path);