This commit is contained in:
Andrew Kelley 2019-08-15 18:19:04 -04:00
parent 8b97a1aee2
commit 7e75e1075e
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
10 changed files with 15 additions and 13 deletions

View File

@ -627,7 +627,6 @@ pub const Loop = struct {
}
}
/// call finishOneEvent when done
pub fn beginOneEvent(self: *Loop) void {
_ = @atomicRmw(usize, &self.pending_event_count, AtomicRmwOp.Add, 1, AtomicOrder.SeqCst);

View File

@ -20,7 +20,6 @@ pub const SipHash128 = siphash.SipHash128;
pub const murmur = @import("hash/murmur.zig");
pub const Murmur2_32 = murmur.Murmur2_32;
pub const Murmur2_64 = murmur.Murmur2_64;
pub const Murmur3_32 = murmur.Murmur3_32;

View File

@ -5,4 +5,4 @@ pub const is_the_target = switch (builtin.os) {
else => false,
};
pub usingnamespace std.c;
pub usingnamespace @import("bits.zig");
pub usingnamespace @import("bits.zig");

View File

@ -2,4 +2,4 @@ const std = @import("../std.zig");
const builtin = @import("builtin");
pub const is_the_target = builtin.os == .freebsd;
pub usingnamespace std.c;
pub usingnamespace @import("bits.zig");
pub usingnamespace @import("bits.zig");

View File

@ -875,7 +875,6 @@ pub fn unexpectedError(err: DWORD) std.os.UnexpectedError {
return error.Unexpected;
}
/// Call this when you made a windows NtDll call
/// and you get an unexpected status.
pub fn unexpectedStatus(status: NTSTATUS) std.os.UnexpectedError {

View File

@ -209,7 +209,7 @@ pub const FILE_INFORMATION_CLASS = extern enum {
FileLinkInformationExBypassAccessCheck,
FileStorageReserveIdInformation,
FileCaseSensitiveInformationForceAccessCheck,
FileMaximumInformation
FileMaximumInformation,
};
pub const OVERLAPPED = extern struct {
@ -731,4 +731,4 @@ pub const UNICODE_STRING = extern struct {
Length: USHORT,
MaximumLength: USHORT,
Buffer: [*]WCHAR,
};
};

View File

@ -1,7 +1,13 @@
usingnamespace @import("bits.zig");
pub extern "NtDll" stdcallcc fn RtlCaptureStackBackTrace(FramesToSkip: DWORD, FramesToCapture: DWORD, BackTrace: **c_void, BackTraceHash: ?*DWORD) WORD;
pub extern "NtDll" stdcallcc fn NtQueryInformationFile(FileHandle: HANDLE, IoStatusBlock: *IO_STATUS_BLOCK, FileInformation: *c_void, Length: ULONG, FileInformationClass: FILE_INFORMATION_CLASS,) NTSTATUS;
pub extern "NtDll" stdcallcc fn NtQueryInformationFile(
FileHandle: HANDLE,
IoStatusBlock: *IO_STATUS_BLOCK,
FileInformation: *c_void,
Length: ULONG,
FileInformationClass: FILE_INFORMATION_CLASS,
) NTSTATUS;
pub extern "NtDll" stdcallcc fn NtCreateFile(
FileHandle: *HANDLE,
DesiredAccess: ACCESS_MASK,
@ -15,4 +21,4 @@ pub extern "NtDll" stdcallcc fn NtCreateFile(
EaBuffer: *c_void,
EaLength: ULONG,
) NTSTATUS;
pub extern "NtDll" stdcallcc fn NtClose(Handle: HANDLE) NTSTATUS;
pub extern "NtDll" stdcallcc fn NtClose(Handle: HANDLE) NTSTATUS;

View File

@ -1,5 +1,5 @@
/// The operation completed successfully.
/// The operation completed successfully.
pub const SUCCESS = 0x00000000;
/// The data was too large to fit into the specified buffer.
pub const BUFFER_OVERFLOW = 0x80000005;
pub const BUFFER_OVERFLOW = 0x80000005;

View File

@ -549,7 +549,6 @@ test "rb" {
}
}
test "inserting and looking up" {
var tree: Tree = undefined;
tree.init(testCompare);

View File

@ -31,4 +31,4 @@ fn testMulAdd() void {
// var c: f128 = 6.25;
// expect(@mulAdd(f128, a, b, c) == 20);
//}
}
}