rename none to null

This commit is contained in:
2026-07-21 22:59:51 +02:00
parent 1619ea98a3
commit 402871ef7a
44 changed files with 3771 additions and 3767 deletions
@@ -11,9 +11,9 @@ TaskList :: struct {
task_list_init func(allocator mem.Allocator) TaskList {
return TaskList {
ids = none,
priorities = none,
durations = none,
ids = null,
priorities = null,
durations = null,
len = 0,
capacity = 0,
allocator = allocator,
@@ -27,7 +27,7 @@ alloc_i32s func(allocator mem.Allocator, count usize) ?[]mut i32 {
failed = true
yield (&fallback).ptr[..0]
}
if (failed) return none
if (failed) return null
return values
}
@@ -144,9 +144,9 @@ task_list_deinit func(list @mut TaskList) void {
free_i32s(list.allocator, list.ids)
free_i32s(list.allocator, list.priorities)
free_i32s(list.allocator, list.durations)
list.ids = none
list.priorities = none
list.durations = none
list.ids = null
list.priorities = null
list.durations = null
list.len = 0
list.capacity = 0
}