From 30751aece04ba8954513bbb7aca996244e6fa684 Mon Sep 17 00:00:00 2001 From: bonmas14 Date: Sun, 28 Sep 2025 17:53:03 +0000 Subject: changes --- tests/un/allocs.c | 2 +- tests/un/math.c | 2 ++ tests/un/mathd.c | 1 + tests/un/mathf.c | 1 + tests/un/matrix.c | 1 + tests/un/strings.c | 2 +- tests/un/win_wstr.c | 3 ++- 7 files changed, 9 insertions(+), 3 deletions(-) (limited to 'tests/un') diff --git a/tests/un/allocs.c b/tests/un/allocs.c index 220c2c8..36e75fa 100644 --- a/tests/un/allocs.c +++ b/tests/un/allocs.c @@ -4,7 +4,7 @@ int main(void) { u64 i, size, *value; size = UN_KB(1); - un_alloc_temp_init(UN_KB(4)); + un_init(UN_MB(4)); { // std Allocator std = un_alloc_std_get(); diff --git a/tests/un/math.c b/tests/un/math.c index 87bea6b..94d3b11 100644 --- a/tests/un/math.c +++ b/tests/un/math.c @@ -1,6 +1,8 @@ #include int main() { + un_init(UN_MB(4)); + // Lerping { double d; diff --git a/tests/un/mathd.c b/tests/un/mathd.c index 10ef24b..879cb89 100644 --- a/tests/un/mathd.c +++ b/tests/un/mathd.c @@ -1,6 +1,7 @@ #include int main() { + un_init(UN_MB(4)); /* 2d */ { double2 a = {1.0, 2.0}; diff --git a/tests/un/mathf.c b/tests/un/mathf.c index 5b8d4c1..3d736af 100644 --- a/tests/un/mathf.c +++ b/tests/un/mathf.c @@ -1,6 +1,7 @@ #include int main() { + un_init(UN_MB(4)); /* 2d */ { float2 a = { 1.0f, 2.0f }; diff --git a/tests/un/matrix.c b/tests/un/matrix.c index 60fd9a5..d5b3e22 100644 --- a/tests/un/matrix.c +++ b/tests/un/matrix.c @@ -1,5 +1,6 @@ #include int main() { + un_init(UN_MB(4)); return 0; } diff --git a/tests/un/strings.c b/tests/un/strings.c index 72d84ad..90365b6 100644 --- a/tests/un/strings.c +++ b/tests/un/strings.c @@ -5,7 +5,7 @@ int main(void) { Allocator alloc; String result; - un_alloc_temp_init(UN_MB(4)); + un_init(UN_MB(4)); alloc = un_alloc_temp_get(); diff --git a/tests/un/win_wstr.c b/tests/un/win_wstr.c index 51fc820..1bc78bf 100644 --- a/tests/un/win_wstr.c +++ b/tests/un/win_wstr.c @@ -1,4 +1,5 @@ #include + #if !defined(OS_WINDOWS) int main(void) { return 0; @@ -11,7 +12,7 @@ int main(void) { int main(void) { wchar *caption, *text; - un_alloc_temp_init(UN_KB(4)); + un_init(UN_MB(4)); Allocator talloc = un_alloc_temp_get(); -- cgit v1.2.3-70-g09d2