Skip to content

Replace some Microsoft C runtime funs with Win32 equivalents#14316

Merged
straight-shoota merged 2 commits intocrystal-lang:masterfrom
HertzDevil:refactor/crt-to-win32
Feb 23, 2024
Merged

Replace some Microsoft C runtime funs with Win32 equivalents#14316
straight-shoota merged 2 commits intocrystal-lang:masterfrom
HertzDevil:refactor/crt-to-win32

Conversation

@HertzDevil
Copy link
Contributor

@HertzDevil HertzDevil commented Feb 22, 2024

Ideally we could replace the type of fd on Windows entirely, similar to how Socket#fd returns a LibC::HANDLE, in which case we could also drop _close / _dup2 / _get_osfhandle / _open_osfhandle. This isn't possible since IO::FileDescriptor#fd is public.

@HertzDevil HertzDevil added kind:refactor platform:windows Windows support based on the MSVC toolchain / Win32 API topic:stdlib:files labels Feb 22, 2024
@HertzDevil HertzDevil marked this pull request as ready for review February 22, 2024 13:52
@straight-shoota straight-shoota added this to the 1.12.0 milestone Feb 22, 2024
@straight-shoota straight-shoota merged commit 812a2bb into crystal-lang:master Feb 23, 2024
@HertzDevil HertzDevil deleted the refactor/crt-to-win32 branch February 25, 2024 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:refactor platform:windows Windows support based on the MSVC toolchain / Win32 API topic:stdlib:files topic:stdlib:system

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants