Skip to content

Conversation

@qilme
Copy link
Contributor

@qilme qilme commented Oct 30, 2025

@alexrp alexrp requested a review from squeek502 October 30, 2025 09:55
Copy link
Member

@squeek502 squeek502 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to fully delete the functions from kernel32.zig and update any callsites to use the corresponding ntdll functions directly. Having functions in the kernel32 namespace that are actually ntdll functions is confusing more than it is helpful, and making breaking changes to kernel32.zig is fine.

@qilme qilme force-pushed the std_os_windows branch 2 times, most recently from 60f1571 to 8f09e89 Compare October 30, 2025 10:50
@qilme qilme requested a review from squeek502 October 30, 2025 11:02
kernel32.AddVectoredExceptionHandler -> ntdll.RtlAddVectoredExceptionHandler
kernel32.RemoveVectoredExceptionHandler -> ntdll.RtlRemoveVectoredExceptionHandler
kernel32.ExitProcess -> ntdll.RtlExitUserProcess
kernel32.InitializeCriticalSection -> ntdll.RtlInitializeCriticalSection
kernel32.EnterCriticalSection -> ntdll.RtlEnterCriticalSection
kernel32.LeaveCriticalSection -> ntdll.RtlLeaveCriticalSection
kernel32.DeleteCriticalSection -> ntdll.RtlDeleteCriticalSection
kernel32.TryAcquireSRWLockExclusive -> ntdll.RtlTryAcquireSRWLockExclusive
kernel32.AcquireSRWLockExclusive -> ntdll.RtlAcquireSRWLockExclusive
kernel32.ReleaseSRWLockExclusive -> ntdll.RtlReleaseSRWLockExclusive
kernel32.WakeConditionVariable -> ntdll.RtlWakeConditionVariable
kernel32.WakeAllConditionVariable -> ntdll.RtlWakeAllConditionVariable
kernel32.HeapReAlloc -> ntdll.RtlReAllocateHeap
kernel32.HeapAlloc -> ntdll.RtlAllocateHeap
kernel32.HeapFree -> ntdll.RtlFreeHeap
Copy link
Member

@squeek502 squeek502 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking this on!

@squeek502 squeek502 enabled auto-merge (squash) October 31, 2025 08:03
@qilme
Copy link
Contributor Author

qilme commented Oct 31, 2025

Sorry for i accidentally clicked update branch manually instead of letting the auto-merge run.

@squeek502
Copy link
Member

No worries!

@squeek502 squeek502 merged commit 8347791 into ziglang:master Oct 31, 2025
9 checks passed
@andrewrk
Copy link
Member

Nice change, thank you!

jedisct1 added a commit to jedisct1/zig that referenced this pull request Nov 1, 2025
* master:
  Implement threaded BLAKE3 (ziglang#25587)
  std: Skip element comparisons if `mem.order` args point to same memory
  std.Target: bump vulkan max version to 1.4.331
  std.Target: bump opencl/nvcl max version to 3.0.19
  std.Target: bump cuda max version to 13.0.2
  std.Target: bump amdhsa max version to 7.1.0
  std.Target: bump wasi max version to 0.3.0
  std.Target: bump dragonfly max version to 6.4.2
  std.Target: bump linux max version to 6.17
  std.Target: bump fuchsia max version to 28.0.0
  std.Target: bump contiki max version to 5.1.0
  test: remove some unsupported x86_64 darwin targets from llvm_targets
  std.os.windows: eliminate forwarder function in kernel32 (ziglang#25766)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants