aboutsummaryrefslogtreecommitdiff
path: root/lib/std/buf_set.zig
AgeCommit message (Collapse)Author
2022-03-01std.BufSet.clone: fix key ownershipMotiejus Jakštys
This was introduced in d1a46548349a902c30057b3ba66ebad9bc25bdd2: when a BufSet clones the keys, it used to assign the new pointers to the old struct. Fix that by assigning the pointers to the correct, i.e. the new, struct. This caused double-free when using arena allocator for the new struct, also in the test case.
2022-02-28std.BufSet: add clone and cloneWithAllocatorMotiejus Jakštys
Following how ArrayList and HashMap does things. This is useful when one wants to, ahem, clone the BufSet.
2021-11-30allocgate: std Allocator interface refactorLee Cannon
2021-08-24remove redundant license headers from zig standard libraryAndrew Kelley
We already have a LICENSE file that covers the Zig Standard Library. We no longer need to remind everyone that the license is MIT in every single file. Previously this was introduced to clarify the situation for a fork of Zig that made Zig's LICENSE file harder to find, and replaced it with their own license that required annual payments to their company. However that fork now appears to be dead. So there is no need to reinforce the copyright notice in every single file.
2021-06-03Breaking hash map changes for 0.8.0Martin Wickham
- hash/eql functions moved into a Context object - *Context functions pass an explicit context - *Adapted functions pass specialized keys and contexts - new getPtr() function returns a pointer to value - remove functions renamed to fetchRemove - new remove functions return bool - removeAssertDiscard deleted, use assert(remove(...)) instead - Keys and values are stored in separate arrays - Entry is now {*K, *V}, the new KV is {K, V} - BufSet/BufMap functions renamed to match other set/map types - fixed iterating-while-modifying bug in src/link/C.zig
2021-05-08std: update usage of std.testingVeikka Tuominen
2021-02-27HashMap.put returns !void, not a !booldaurnimator
2020-12-31Year++Frank Denis
2020-09-02hash_map: rename to ArrayHashMap and add new HashMap implementationSahnvour
2020-08-20add license header to all std lib filesAndrew Kelley
add SPDX license identifier copyright ownership is zig contributors
2020-07-05update std lib to new hash map APIAndrew Kelley
2020-01-29Convert a bunch of page_allocator to testing.allocatorBenjamin Feng
2019-11-25rename std.heap.direct_allocator to std.heap.page_allocatorAndrew Kelley
std.heap.direct_allocator is still available for now but it is marked deprecated.
2019-09-25mv std/ lib/Andrew Kelley
that's all this commit does. further commits will fix cli flags and such. see #2221