| ... | ... | @@ -215,10 +215,7 @@ pub fn windowsFindNextFile(handle: windows.HANDLE, find_file_data: *windows.WIN3 |
| 215 | 215 | return true; |
| 216 | 216 | } |
| 217 | 217 | |
| 218 | | |
| 219 | | pub const WindowsCreateIoCompletionPortError = error { |
| 220 | | Unexpected, |
| 221 | | }; |
| 218 | pub const WindowsCreateIoCompletionPortError = error{Unexpected}; |
| 222 | 219 | |
| 223 | 220 | pub fn windowsCreateIoCompletionPort(file_handle: windows.HANDLE, existing_completion_port: ?windows.HANDLE, completion_key: usize, concurrent_thread_count: windows.DWORD) !windows.HANDLE { |
| 224 | 221 | const handle = windows.CreateIoCompletionPort(file_handle, existing_completion_port, completion_key, concurrent_thread_count) orelse { |
| ... | ... | @@ -230,9 +227,7 @@ pub fn windowsCreateIoCompletionPort(file_handle: windows.HANDLE, existing_compl |
| 230 | 227 | return handle; |
| 231 | 228 | } |
| 232 | 229 | |
| 233 | | pub const WindowsPostQueuedCompletionStatusError = error { |
| 234 | | Unexpected, |
| 235 | | }; |
| 230 | pub const WindowsPostQueuedCompletionStatusError = error{Unexpected}; |
| 236 | 231 | |
| 237 | 232 | pub fn windowsPostQueuedCompletionStatus(completion_port: windows.HANDLE, bytes_transferred_count: windows.DWORD, completion_key: usize, lpOverlapped: ?*windows.OVERLAPPED) WindowsPostQueuedCompletionStatusError!void { |
| 238 | 233 | if (windows.PostQueuedCompletionStatus(completion_port, bytes_transferred_count, completion_key, lpOverlapped) == 0) { |
| ... | ... | @@ -243,7 +238,7 @@ pub fn windowsPostQueuedCompletionStatus(completion_port: windows.HANDLE, bytes_ |
| 243 | 238 | } |
| 244 | 239 | } |
| 245 | 240 | |
| 246 | | pub const WindowsWaitResult = error { |
| 241 | pub const WindowsWaitResult = error{ |
| 247 | 242 | Normal, |
| 248 | 243 | Aborted, |
| 249 | 244 | }; |