From 9d5ce056f630e15eb5e184a88f4f694a352f458d Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Mon, 3 Mar 2025 12:44:40 -0500 Subject: wstr: wstr_to_str() -> str_from_wstr() Signed-off-by: Andrew Opalach --- include/al/wstr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/al/wstr.h b/include/al/wstr.h index 118a447..3eb366c 100644 --- a/include/al/wstr.h +++ b/include/al/wstr.h @@ -99,7 +99,7 @@ static inline void al_wstr_from_str(wstr *w, str *s) } // This is horrible. -static inline bool al_wstr_to_str(wstr *w, str *s) +static inline bool al_str_from_wstr(str *s, wstr *w) { // This is broken on Windows. Locale issue? #ifdef AL_HAVE_WIDE_STRING @@ -214,7 +214,7 @@ static inline bool al_wstr_tok(wstr *result, wchar_t delim) static inline s64 al_wstr_to_long(wstr *w, u32 base, bool *error) { str s; - al_wstr_to_str(w, &s); + al_str_from_wstr(&s, w); s64 num = al_str_to_long(&s, base, error); al_str_free(&s); return num; -- cgit v1.2.3-101-g0448