diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-07-31 21:54:07 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-08-11 15:52:49 -0700 |
| commit | 749f10af49022597d873d41df5c600e97e5c4a37 (patch) | |
| tree | cb6da80d28fa284bdeb7b40d26ce8de9ca9b2306 /tools/process_headers.zig | |
| parent | d625158354a02a18e9ae7975a144f30838884d5c (diff) | |
| download | zig-749f10af49022597d873d41df5c600e97e5c4a37.tar.gz zig-749f10af49022597d873d41df5c600e97e5c4a37.zip | |
std.ArrayList: make unmanaged the default
Diffstat (limited to 'tools/process_headers.zig')
| -rw-r--r-- | tools/process_headers.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/process_headers.zig b/tools/process_headers.zig index 51d4436540..4a5a03516a 100644 --- a/tools/process_headers.zig +++ b/tools/process_headers.zig @@ -130,7 +130,7 @@ pub fn main() !void { var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator); const allocator = arena.allocator(); const args = try std.process.argsAlloc(allocator); - var search_paths = std.ArrayList([]const u8).init(allocator); + var search_paths = std.array_list.Managed([]const u8).init(allocator); var opt_out_dir: ?[]const u8 = null; var opt_abi: ?[]const u8 = null; @@ -234,7 +234,7 @@ pub fn main() !void { .musl => &[_][]const u8{ search_path, libc_dir, "usr", "local", "musl", "include" }, }; const target_include_dir = try std.fs.path.join(allocator, sub_path); - var dir_stack = std.ArrayList([]const u8).init(allocator); + var dir_stack = std.array_list.Managed([]const u8).init(allocator); try dir_stack.append(target_include_dir); while (dir_stack.pop()) |full_dir_name| { @@ -323,7 +323,7 @@ pub fn main() !void { // gets their header in a separate arch directory. var path_it = path_table.iterator(); while (path_it.next()) |path_kv| { - var contents_list = std.ArrayList(*Contents).init(allocator); + var contents_list = std.array_list.Managed(*Contents).init(allocator); { var hash_it = path_kv.value_ptr.*.iterator(); while (hash_it.next()) |hash_kv| { |
