diff options
| author | 2025-03-03 12:44:40 -0500 | |
|---|---|---|
| committer | 2025-03-03 12:44:40 -0500 | |
| commit | 9d5ce056f630e15eb5e184a88f4f694a352f458d (patch) | |
| tree | a72a33456b7970726052552118b09551cbb3f26e | |
| parent | 5f80381cc8d2875d27d14288b6f11c31a72fb3cf (diff) | |
| download | libalabaster-9d5ce056f630e15eb5e184a88f4f694a352f458d.tar.gz libalabaster-9d5ce056f630e15eb5e184a88f4f694a352f458d.tar.bz2 libalabaster-9d5ce056f630e15eb5e184a88f4f694a352f458d.zip | |
wstr: wstr_to_str() -> str_from_wstr()
Signed-off-by: Andrew Opalach <andrew@akon.city>
| -rw-r--r-- | include/al/wstr.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |