zig/lib/std
Jakub Konka 26153ce73a dwarf: clean up allocations in std.dwarf module
While this code probably could do with some love and a redesign,
this commit fixes the allocations by making sure we explicitly
pass an allocator where required, and we use arenas for temporary
or narrowly-scoped objects such as a `Die` (for `Die` in particular,
not every `FormValue` will be allocated - we could duplicate, or
we can use an arena which is the proposal of this commit).
2022-04-21 00:06:52 +02:00
..
atomic allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00:00
build std.build: fix functions returning address of by value parameter 2022-03-28 13:06:11 -07:00
c std.Thread.Futex improvements (#11464) 2022-04-19 19:42:15 -05:00
compress zig fmt: remove trailing whitespace on doc comments 2022-04-05 18:08:33 +03:00
crypto crypto/x25519: implement clearCofactor() (#11355) 2022-04-07 10:46:23 +02:00
dwarf std.dwarf: implement basic DWARF 5 parsing 2022-03-15 16:53:45 -04:00
event std.event.WaitGroup: fix compilation (acquire->lock, release->unlock) 2022-04-11 03:02:41 -04:00
fmt use math/float.zig everywhere 2022-04-07 05:04:38 -06:00
fs stdlib std.os: Improve wasi-libc parity for WASI CWD emulation 2022-04-16 18:08:05 +02:00
hash deprecated TypeInfo in favor of Type 2022-03-08 20:38:12 +02:00
heap Sema: implement zirSwitchCaptureElse for error sets 2022-03-19 15:49:27 +02:00
io deprecated TypeInfo in favor of Type 2022-03-08 20:38:12 +02:00
json allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00:00
math std.math.fabs: enable f80 testing 2022-04-15 16:52:02 -06:00
mem zig fmt: remove trailing whitespace on doc comments 2022-04-05 18:08:33 +03:00
meta std.meta.trait: remove assumption about vector ABI size 2022-03-24 18:09:45 -07:00
net Check for isDarwin() instead of linked libc 2022-01-14 13:44:38 +01:00
os std.os.uefi: Add BlockIoProtocol 2022-04-19 19:51:19 -04:00
rand use math/float.zig everywhere 2022-04-07 05:04:38 -06:00
special build system: add -fstage1/-fno-stage1 to zig build 2022-04-19 14:40:27 -07:00
target update target CPU features with LLVM 13 rc1 data 2021-08-15 23:09:55 -07:00
testing allocgate: change resize to return optional instead of error 2021-11-30 23:45:01 +00:00
Thread std.Thread.Futex improvements (#11464) 2022-04-19 19:42:15 -05:00
time std.time.epoch: fix issue in documentation 2021-12-16 19:08:58 -08:00
tz Support legacy TZ format, expose header struct to a potential writer 2022-01-01 12:47:08 +00:00
unicode migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
valgrind remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
x zig fmt: remove trailing whitespace on doc comments 2022-04-05 18:08:33 +03:00
zig zig fmt: remove trailing whitespace on doc comments 2022-04-05 18:08:33 +03:00
array_hash_map.zig array hash map: fix getOrPutAdapted on Managed array hash map 2022-04-19 19:41:12 -04:00
array_list.zig std.ArrayList: use variable for local mutable state 2022-03-11 22:47:24 -07:00
ascii.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
atomic.zig std.Thread.Futex improvements (#11464) 2022-04-19 19:42:15 -05:00
base64.zig std.base64: upgrade to new function pointer semantics 2022-03-30 20:38:01 -07:00
bit_set.zig deprecated TypeInfo in favor of Type 2022-03-08 20:38:12 +02:00
bounded_array.zig std/bounded_array.zig: Add Writer interface 2022-04-14 02:56:40 -04:00
buf_map.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
buf_set.zig std.BufSet.clone: fix key ownership 2022-03-01 13:28:47 -05:00
build.zig build system: add -fstage1/-fno-stage1 to zig build 2022-04-19 14:40:27 -07:00
builtin.zig stage2: sparcv9: Register the backend in stdlib & driver 2022-04-14 22:18:06 +07:00
c.zig stage2: fix bugs preventing stage2 from building stage3 with LLVM 2022-04-15 23:32:26 +03:00
child_process.zig std.testing: add methods tmpDirPath, getTestArgs, buildExe 2022-03-27 11:43:40 +03:00
coff.zig std: Add elf.EM, coff.MachineType to Target.CPU.Arch conversions 2022-03-15 13:48:42 -04:00
compress.zig compress: add a deflate compressor 2022-01-23 19:30:06 +01:00
comptime_string_map.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
crypto.zig a small crusade against std.meta.declarations 2022-01-31 22:25:49 -07:00
cstr.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
debug.zig dwarf: clean up allocations in std.dwarf module 2022-04-21 00:06:52 +02:00
dwarf.zig dwarf: clean up allocations in std.dwarf module 2022-04-21 00:06:52 +02:00
dynamic_library.zig Pull elf magic string out to re-used constant 2022-04-04 15:33:24 +03:00
elf.zig Pull elf magic string out to re-used constant 2022-04-04 15:33:24 +03:00
enums.zig deprecated TypeInfo in favor of Type 2022-03-08 20:38:12 +02:00
event.zig std, compiler-rt: remove test names where applicable 2021-09-01 17:54:06 -07:00
fifo.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
fmt.zig Add std.unicode.replacement_character 2022-04-15 11:20:11 +03:00
fs.zig stage2: Move WASI/Zig-specific selfExePath to introspect.zig 2022-04-18 23:06:49 -07:00
hash_map.zig std.hash_map: workaround for circular dependency 2022-04-01 00:17:02 -07:00
hash.zig lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
heap.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
io.zig stage2: progress towards stage3 2022-04-14 10:12:45 -07:00
json.zig std.json: correctly handle sentinel terminated slices 2022-03-08 20:43:13 +02:00
leb128.zig I'm working on a WebAssembly interpreter in zig. WebAssembly uses LEB128 encoding throughout its specification. 2021-09-20 01:58:18 -04:00
linked_list.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
log.zig std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
macho.zig macho: set CS_LINKER_SIGNED flag in code signature generated by zld 2022-04-01 14:33:37 +02:00
math.zig std/math.zig: resolve missed optimization in rotates 2022-04-15 11:51:50 -04:00
mem.zig std.mem.zeroInit: Fix behaviour with empty initialiser 2022-03-28 14:10:36 +03:00
meta.zig std.meta: fix unit tests depending on unstable behavior 2022-03-24 17:47:39 -07:00
multi_array_list.zig std.MultiArrayList: check size of element, not pointer 2022-03-24 19:55:12 -07:00
net.zig Merge pull request #10576 from schmee/macos-resolve-ip 2022-01-15 00:47:12 +01:00
once.zig std.Thread.Mutex: change API to lock() and unlock() 2021-11-09 18:31:03 -07:00
os.zig stdlib std.os: Improve wasi-libc parity for WASI CWD emulation 2022-04-16 18:08:05 +02:00
packed_int_array.zig zig fmt: remove trailing whitespace on doc comments 2022-04-05 18:08:33 +03:00
pdb.zig Only check the file's length once in pdb.Msf.init 2021-12-21 17:29:23 -08:00
priority_dequeue.zig std.priority_dequeue: allow comparator to take a context parameter 2021-12-15 17:46:10 -08:00
priority_queue.zig Fix bug in PriorityQueue::removeIndex() 2022-04-14 02:54:41 -04:00
process.zig Avoid depending on child process execution when not supported by host OS 2022-02-06 22:21:46 -07:00
Progress.zig stage2: do not memoize calls that can mutate comptime state 2022-02-27 16:43:53 +02:00
rand.zig stage2: progress towards stage3 2022-04-14 10:12:45 -07:00
SemanticVersion.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
simd.zig zig fmt: remove trailing whitespace on doc comments 2022-04-05 18:08:33 +03:00
sort.zig std: add sort method to ArrayHashMap and MultiArrayList 2022-03-10 13:13:17 -05:00
start_windows_tls.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
start.zig start.zig: make sure macos uses full startup code 2022-04-16 12:07:34 +02:00
std.zig treap: initial implementation 2022-04-15 15:26:51 -05:00
target.zig stage2: fix @mulAdd on aarch64 Darwin 2022-04-16 12:23:47 +02:00
testing.zig stdlib std.os: Improve wasi-libc parity for WASI CWD emulation 2022-04-16 18:08:05 +02:00
Thread.zig std: rename sched_yield to yield and move it to std.Thread 2022-02-27 15:34:02 -05:00
time.zig zig fmt: remove trailing whitespace on doc comments 2022-04-05 18:08:33 +03:00
treap.zig treap: zig fmt 2022-04-15 17:01:01 -05:00
tz.zig Rename mem.bswapAllFields to byteSwapAllFields 2022-01-28 21:03:21 -05:00
unicode.zig Add std.unicode.replacement_character 2022-04-15 11:20:11 +03:00
valgrind.zig lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
wasm.zig wasm: Implement memset, and sret arguments. 2022-01-04 17:59:05 +01:00
x.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
zig.zig stage2 parser: UTF-8 encode \u{NNNNNN} escape sequences 2022-03-02 14:45:19 -05:00