From 120dac0d67cba1b39a7aedc1bf4493e1ef2cb5c4 Mon Sep 17 00:00:00 2001 From: dam Date: Mon, 30 Dec 2024 02:38:33 +0000 Subject: Update code to comply with compiler beta 0.2.004. --- TUI/unix.jai | 3 +-- TUI/windows.jai | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'TUI') diff --git a/TUI/unix.jai b/TUI/unix.jai index 99cc61d..9208e4b 100644 --- a/TUI/unix.jai +++ b/TUI/unix.jai @@ -207,8 +207,7 @@ //////////////////////////////////////////////////////////////////////////////// resize_handler :: (signal_code : s32) #c_call { - new_context : Context; - push_context new_context { + push_context { if signal_code != SIGWINCH then return; atomic_swap(*was_resized, true); } diff --git a/TUI/windows.jai b/TUI/windows.jai index f8d8bc8..8105f61 100644 --- a/TUI/windows.jai +++ b/TUI/windows.jai @@ -292,7 +292,7 @@ OS_read_input :: (buffer: *u8, bytes_to_read: s64) -> bytes_read: s64, success : return 0, false; } - result:, success = wide_to_utf8_new(widechar_view.data, xx widechar_view.count); + result:, success = wide_to_utf8(widechar_view.data, xx widechar_view.count); if success == false { error_code, error_string := get_error_value_and_string(); log_tui_error("Failed to convert from wide to UTF8: code %, %", error_code, error_string); -- cgit v1.2.3