authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-08-15 18:19:04-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-08-15 18:19:04-04:00
log7e75e1075e14a124706bf5f22244ca6b6e814fdb
tree3d1b0eab80f6916a9758e32bbd1e939e765be9bd
parent8b97a1aee2b161b9604d3b0c88166d0f0aef7e64
signaturelock-open Commit is signed but in an unrecognized format.

zig fmt


10 files changed, 15 insertions(+), 13 deletions(-)

std/event/loop.zig-1
......@@ -627,7 +627,6 @@ pub const Loop = struct {
627627 }
628628 }
629629
630
631630 /// call finishOneEvent when done
632631 pub fn beginOneEvent(self: *Loop) void {
633632 _ = @atomicRmw(usize, &self.pending_event_count, AtomicRmwOp.Add, 1, AtomicOrder.SeqCst);
std/hash.zig-1
......@@ -20,7 +20,6 @@ pub const SipHash128 = siphash.SipHash128;
2020pub const murmur = @import("hash/murmur.zig");
2121pub const Murmur2_32 = murmur.Murmur2_32;
2222
23
2423pub const Murmur2_64 = murmur.Murmur2_64;
2524pub const Murmur3_32 = murmur.Murmur3_32;
2625
std/os/darwin.zig+1-1
......@@ -5,4 +5,4 @@ pub const is_the_target = switch (builtin.os) {
55 else => false,
66};
77pub usingnamespace std.c;
8pub usingnamespace @import("bits.zig");
\ No newline at end of file
8pub usingnamespace @import("bits.zig");
std/os/freebsd.zig+1-1
......@@ -2,4 +2,4 @@ const std = @import("../std.zig");
22const builtin = @import("builtin");
33pub const is_the_target = builtin.os == .freebsd;
44pub usingnamespace std.c;
5pub usingnamespace @import("bits.zig");
\ No newline at end of file
5pub usingnamespace @import("bits.zig");
std/os/windows.zig-1
......@@ -875,7 +875,6 @@ pub fn unexpectedError(err: DWORD) std.os.UnexpectedError {
875875 return error.Unexpected;
876876}
877877
878
879878/// Call this when you made a windows NtDll call
880879/// and you get an unexpected status.
881880pub fn unexpectedStatus(status: NTSTATUS) std.os.UnexpectedError {
std/os/windows/bits.zig+2-2
......@@ -209,7 +209,7 @@ pub const FILE_INFORMATION_CLASS = extern enum {
209209 FileLinkInformationExBypassAccessCheck,
210210 FileStorageReserveIdInformation,
211211 FileCaseSensitiveInformationForceAccessCheck,
212 FileMaximumInformation
212 FileMaximumInformation,
213213};
214214
215215pub const OVERLAPPED = extern struct {
......@@ -731,4 +731,4 @@ pub const UNICODE_STRING = extern struct {
731731 Length: USHORT,
732732 MaximumLength: USHORT,
733733 Buffer: [*]WCHAR,
734};
\ No newline at end of file
734};
std/os/windows/ntdll.zig+8-2
......@@ -1,7 +1,13 @@
11usingnamespace @import("bits.zig");
22
33pub extern "NtDll" stdcallcc fn RtlCaptureStackBackTrace(FramesToSkip: DWORD, FramesToCapture: DWORD, BackTrace: **c_void, BackTraceHash: ?*DWORD) WORD;
4pub extern "NtDll" stdcallcc fn NtQueryInformationFile(FileHandle: HANDLE, IoStatusBlock: *IO_STATUS_BLOCK, FileInformation: *c_void, Length: ULONG, FileInformationClass: FILE_INFORMATION_CLASS,) NTSTATUS;
4pub extern "NtDll" stdcallcc fn NtQueryInformationFile(
5 FileHandle: HANDLE,
6 IoStatusBlock: *IO_STATUS_BLOCK,
7 FileInformation: *c_void,
8 Length: ULONG,
9 FileInformationClass: FILE_INFORMATION_CLASS,
10) NTSTATUS;
511pub extern "NtDll" stdcallcc fn NtCreateFile(
612 FileHandle: *HANDLE,
713 DesiredAccess: ACCESS_MASK,
......@@ -15,4 +21,4 @@ pub extern "NtDll" stdcallcc fn NtCreateFile(
1521 EaBuffer: *c_void,
1622 EaLength: ULONG,
1723) NTSTATUS;
18pub extern "NtDll" stdcallcc fn NtClose(Handle: HANDLE) NTSTATUS;
\ No newline at end of file
24pub extern "NtDll" stdcallcc fn NtClose(Handle: HANDLE) NTSTATUS;
std/os/windows/status.zig+2-2
......@@ -1,5 +1,5 @@
1/// The operation completed successfully.
1/// The operation completed successfully.
22pub const SUCCESS = 0x00000000;
33
44/// The data was too large to fit into the specified buffer.
5pub const BUFFER_OVERFLOW = 0x80000005;
\ No newline at end of file
5pub const BUFFER_OVERFLOW = 0x80000005;
std/rb.zig-1
......@@ -549,7 +549,6 @@ test "rb" {
549549 }
550550}
551551
552
553552test "inserting and looking up" {
554553 var tree: Tree = undefined;
555554 tree.init(testCompare);
test/stage1/behavior/muladd.zig+1-1
......@@ -31,4 +31,4 @@ fn testMulAdd() void {
3131 // var c: f128 = 6.25;
3232 // expect(@mulAdd(f128, a, b, c) == 20);
3333 //}
34}
\ No newline at end of file
34}