diff options
author | bonmas14 <bonmas14@gmail.com> | 2025-09-25 14:17:07 +0300 |
---|---|---|
committer | bonmas14 <bonmas14@gmail.com> | 2025-09-25 14:17:07 +0300 |
commit | 166877cf15f6afa89c9f8a61e267d485868d0ee1 (patch) | |
tree | 9f080314edc4fb293f91227cdc1c01cfec8d7bae /tests/un/win_wstr.c | |
parent | 8ebdc95621bc61fdf3c98cd7ae4ddca67398df23 (diff) | |
download | ungrateful-166877cf15f6afa89c9f8a61e267d485868d0ee1.tar.gz ungrateful-166877cf15f6afa89c9f8a61e267d485868d0ee1.zip |
+disgrace and rework of ungrateful.h
Diffstat (limited to 'tests/un/win_wstr.c')
-rw-r--r-- | tests/un/win_wstr.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/un/win_wstr.c b/tests/un/win_wstr.c index 55cec57..51fc820 100644 --- a/tests/un/win_wstr.c +++ b/tests/un/win_wstr.c @@ -10,11 +10,13 @@ int main(void) { int main(void) { wchar *caption, *text; - Allocator talloc = un_allocator_get_temporary(); + un_alloc_temp_init(UN_KB(4)); - caption = un_wstring_from_cstring(UN_CSTR "Внимание", talloc); - text = un_wstring_from_cstring(UN_CSTR "Тестовое сообщение", talloc); + Allocator talloc = un_alloc_temp_get(); + + caption = un_wstring_from_cstring((u8 *)"Внимание", talloc); + text = un_wstring_from_cstring((u8 *)"Тестовое сообщение", talloc); assert(caption != NULL); |