diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-11-30 18:48:31 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-30 18:48:31 -0800 |
| commit | 7355a201336c8e3892427e5932fe5cdd46cf96df (patch) | |
| tree | 4ccec922634586847d02f2324d0db75f25200188 /src/libc_installation.zig | |
| parent | dd62a6d2e8de522187fd096354e7156cca1821c5 (diff) | |
| parent | 066eaa5e9cbfde172449f6d95bb884c7d86ac10c (diff) | |
| download | zig-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.zig | 8 |
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, |
