aboutsummaryrefslogtreecommitdiff
path: root/src/libc_installation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-11-30 18:48:31 -0800
committerGitHub <noreply@github.com>2021-11-30 18:48:31 -0800
commit7355a201336c8e3892427e5932fe5cdd46cf96df (patch)
tree4ccec922634586847d02f2324d0db75f25200188 /src/libc_installation.zig
parentdd62a6d2e8de522187fd096354e7156cca1821c5 (diff)
parent066eaa5e9cbfde172449f6d95bb884c7d86ac10c (diff)
downloadzig-7355a201336c8e3892427e5932fe5cdd46cf96df.tar.gz
zig-7355a201336c8e3892427e5932fe5cdd46cf96df.zip
Merge pull request #10055 from leecannon/allocator_refactor
Allocgate
Diffstat (limited to 'src/libc_installation.zig')
-rw-r--r--src/libc_installation.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libc_installation.zig b/src/libc_installation.zig
index be0abe301b..4cd43c7567 100644
--- a/src/libc_installation.zig
+++ b/src/libc_installation.zig
@@ -39,7 +39,7 @@ pub const LibCInstallation = struct {
};
pub fn parse(
- allocator: *Allocator,
+ allocator: Allocator,
libc_file: []const u8,
target: std.zig.CrossTarget,
) !LibCInstallation {
@@ -175,7 +175,7 @@ pub const LibCInstallation = struct {
}
pub const FindNativeOptions = struct {
- allocator: *Allocator,
+ allocator: Allocator,
/// If enabled, will print human-friendly errors to stderr.
verbose: bool = false,
@@ -234,7 +234,7 @@ pub const LibCInstallation = struct {
}
/// Must be the same allocator passed to `parse` or `findNative`.
- pub fn deinit(self: *LibCInstallation, allocator: *Allocator) void {
+ pub fn deinit(self: *LibCInstallation, allocator: Allocator) void {
const fields = std.meta.fields(LibCInstallation);
inline for (fields) |field| {
if (@field(self, field.name)) |payload| {
@@ -562,7 +562,7 @@ pub const LibCInstallation = struct {
};
pub const CCPrintFileNameOptions = struct {
- allocator: *Allocator,
+ allocator: Allocator,
search_basename: []const u8,
want_dirname: enum { full_path, only_dir },
verbose: bool = false,