aboutsummaryrefslogtreecommitdiff
path: root/core/sys
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-08-05 17:46:42 +0100
committergingerBill <bill@gingerbill.org>2021-08-05 17:46:42 +0100
commit0d257c61cd28e1df7ea372e4f386483db2bf75d1 (patch)
tree16e33e209eee289936cb33c29b9907ee1d6bef6f /core/sys
parentdd8fa1d690db5a6a42a300c1a09b821806ea39e8 (diff)
Disallow `using` on an enum declaration.
Diffstat (limited to 'core/sys')
-rw-r--r--core/sys/windows/kernel32.odin14
1 files changed, 11 insertions, 3 deletions
diff --git a/core/sys/windows/kernel32.odin b/core/sys/windows/kernel32.odin
index 868d4f771..8b7df931b 100644
--- a/core/sys/windows/kernel32.odin
+++ b/core/sys/windows/kernel32.odin
@@ -474,10 +474,12 @@ foreign kernel32 {
}
-using MEMORY_RESOURCE_NOTIFICATION_TYPE :: enum c_int {
+MEMORY_RESOURCE_NOTIFICATION_TYPE :: enum c_int {
LowMemoryResourceNotification,
HighMemoryResourceNotification,
}
+LowMemoryResourceNotification :: MEMORY_RESOURCE_NOTIFICATION_TYPE.LowMemoryResourceNotification;
+HighMemoryResourceNotification :: MEMORY_RESOURCE_NOTIFICATION_TYPE.HighMemoryResourceNotification;
foreign kernel32 {
@@ -598,12 +600,16 @@ foreign kernel32 {
) -> BOOL ---;
}
-using OFFER_PRIORITY :: enum c_int {
+OFFER_PRIORITY :: enum c_int {
VmOfferPriorityVeryLow = 1,
VmOfferPriorityLow,
VmOfferPriorityBelowNormal,
VmOfferPriorityNormal,
}
+VmOfferPriorityVeryLow :: OFFER_PRIORITY.VmOfferPriorityVeryLow;
+VmOfferPriorityLow :: OFFER_PRIORITY.VmOfferPriorityLow;
+VmOfferPriorityBelowNormal :: OFFER_PRIORITY.VmOfferPriorityBelowNormal;
+VmOfferPriorityNormal :: OFFER_PRIORITY.VmOfferPriorityNormal;
foreign kernel32 {
OfferVirtualMemory :: proc(
@@ -638,9 +644,11 @@ foreign kernel32 {
) -> HANDLE ---;
}
-using WIN32_MEMORY_INFORMATION_CLASS :: enum c_int {
+WIN32_MEMORY_INFORMATION_CLASS :: enum c_int {
MemoryRegionInfo,
}
+MemoryRegionInfo :: WIN32_MEMORY_INFORMATION_CLASS.MemoryRegionInfo;
+
WIN32_MEMORY_REGION_INFORMATION :: struct {
AllocationBase: PVOID,
AllocationProtect: ULONG,