pub fn dupeList(lazy_paths: []const LazyPath, graph: *const Graph) []const LazyPath
Copies the slice of paths and all internal strings.
The graph parameter is only used for the global arena allocator.
graph
lazy_paths: []const LazyPath
graph: *const Graph
2380 2381 2382 2383 2384 2385
pub fn dupeList(lazy_paths: []const LazyPath, graph: *const Graph) []const LazyPath { const arena = graph.arena; const result = graph.alloc(LazyPath, lazy_paths.len); for (result, lazy_paths) |*d, s| d.* = dupeInner(s, arena); return result; }
Copies the slice of paths and all internal strings.
The
graphparameter is only used for the global arena allocator.