diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-06-06 10:50:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-06 10:50:59 +0200 |
| commit | 8389dfd050e9571cc71c96d44f6ad8e36d082383 (patch) | |
| tree | c403a6eb5e8f071760b485fa221c132dd2bbe4ef /core/sys/windows | |
| parent | e870369c972be8054ee50ac441e5713b719c99a1 (diff) | |
| parent | 4b36306674a8db103d123b079ac00d06e568d57e (diff) | |
Merge pull request #5291 from Kelimion/deprecate
Deprecate old @(deprecated) things.
Diffstat (limited to 'core/sys/windows')
| -rw-r--r-- | core/sys/windows/util.odin | 8 | ||||
| -rw-r--r-- | core/sys/windows/ws2_32.odin | 6 |
2 files changed, 0 insertions, 14 deletions
diff --git a/core/sys/windows/util.odin b/core/sys/windows/util.odin index b3eb800bc..2db55c4fe 100644 --- a/core/sys/windows/util.odin +++ b/core/sys/windows/util.odin @@ -75,14 +75,6 @@ LANGIDFROMLCID :: #force_inline proc "contextless" (lcid: LCID) -> LANGID { return LANGID(lcid) } -// this one gave me trouble as it do not mask the values. -// the _ in the name is also off comparing to the c code -// i can't find any usage in the odin repo -@(deprecated = "use MAKEWORD") -MAKE_WORD :: #force_inline proc "contextless" (x, y: WORD) -> WORD { - return x << 8 | y -} - utf8_to_utf16 :: proc(s: string, allocator := context.temp_allocator) -> []u16 { if len(s) < 1 { return nil diff --git a/core/sys/windows/ws2_32.odin b/core/sys/windows/ws2_32.odin index 0fc427728..6c68e43f3 100644 --- a/core/sys/windows/ws2_32.odin +++ b/core/sys/windows/ws2_32.odin @@ -242,10 +242,4 @@ foreign ws2_32 { ntohl :: proc(netlong: c_ulong) -> c_ulong --- // [MS-Docs](https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-ntohs) ntohs :: proc(netshort: c_ushort) -> c_ushort --- - // [MS-Docs](https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-htonl) - @(deprecated="Use endian specific integers instead, https://odin-lang.org/docs/overview/#basic-types") - htonl :: proc(hostlong: c_ulong) -> c_ulong --- - // [MS-Docs](https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-htons) - @(deprecated="Use endian specific integers instead, https://odin-lang.org/docs/overview/#basic-types") - htons :: proc(hostshort: c_ushort) -> c_ushort --- } |