Skip to content

Commit ac096c2

Browse files
committedJul 12, 2018
zig fmt
1 parent 69e60e3 commit ac096c2

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed
 

‎std/os/windows/index.zig

-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ pub extern "kernel32" stdcallcc fn CreateSymbolicLinkA(
5959
dwFlags: DWORD,
6060
) BOOLEAN;
6161

62-
6362
pub extern "kernel32" stdcallcc fn CreateIoCompletionPort(FileHandle: HANDLE, ExistingCompletionPort: ?HANDLE, CompletionKey: ULONG_PTR, NumberOfConcurrentThreads: DWORD) ?HANDLE;
6463

6564
pub extern "kernel32" stdcallcc fn CreateThread(lpThreadAttributes: ?LPSECURITY_ATTRIBUTES, dwStackSize: SIZE_T, lpStartAddress: LPTHREAD_START_ROUTINE, lpParameter: ?LPVOID, dwCreationFlags: DWORD, lpThreadId: ?LPDWORD) ?HANDLE;
@@ -134,7 +133,6 @@ pub extern "kernel32" stdcallcc fn MoveFileExA(
134133
dwFlags: DWORD,
135134
) BOOL;
136135

137-
138136
pub extern "kernel32" stdcallcc fn PostQueuedCompletionStatus(CompletionPort: HANDLE, dwNumberOfBytesTransferred: DWORD, dwCompletionKey: ULONG_PTR, lpOverlapped: ?*OVERLAPPED) BOOL;
139137

140138
pub extern "kernel32" stdcallcc fn QueryPerformanceCounter(lpPerformanceCount: *LARGE_INTEGER) BOOL;

‎std/os/windows/util.zig

+3-8
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,7 @@ pub fn windowsFindNextFile(handle: windows.HANDLE, find_file_data: *windows.WIN3
215215
return true;
216216
}
217217

218-
219-
pub const WindowsCreateIoCompletionPortError = error {
220-
Unexpected,
221-
};
218+
pub const WindowsCreateIoCompletionPortError = error{Unexpected};
222219

223220
pub fn windowsCreateIoCompletionPort(file_handle: windows.HANDLE, existing_completion_port: ?windows.HANDLE, completion_key: usize, concurrent_thread_count: windows.DWORD) !windows.HANDLE {
224221
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
230227
return handle;
231228
}
232229

233-
pub const WindowsPostQueuedCompletionStatusError = error {
234-
Unexpected,
235-
};
230+
pub const WindowsPostQueuedCompletionStatusError = error{Unexpected};
236231

237232
pub fn windowsPostQueuedCompletionStatus(completion_port: windows.HANDLE, bytes_transferred_count: windows.DWORD, completion_key: usize, lpOverlapped: ?*windows.OVERLAPPED) WindowsPostQueuedCompletionStatusError!void {
238233
if (windows.PostQueuedCompletionStatus(completion_port, bytes_transferred_count, completion_key, lpOverlapped) == 0) {
@@ -243,7 +238,7 @@ pub fn windowsPostQueuedCompletionStatus(completion_port: windows.HANDLE, bytes_
243238
}
244239
}
245240

246-
pub const WindowsWaitResult = error {
241+
pub const WindowsWaitResult = error{
247242
Normal,
248243
Aborted,
249244
};

0 commit comments

Comments
 (0)
Please sign in to comment.