zig/lib/std
Andrew Kelley 6249a24e81 stage2: integer-backed packed structs
This implements #10113 for the self-hosted compiler only. It removes the
ability to override alignment of packed struct fields, and removes the
ability to put pointers and arrays inside packed structs.

After this commit, nearly all the behavior tests pass for the stage2 llvm
backend that involve packed structs.

I didn't implement the compile errors or compile error tests yet. I'm
waiting until we have stage2 building itself and then I want to rework
the compile error test harness with inspiration from Vexu's arocc test
harness. At that point it should be a much nicer dev experience to work
on compile errors.
2022-02-23 23:59:25 -07:00
..
atomic allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00:00
build Replace argvCmd with std.mem.join 2022-02-06 22:21:46 -07:00
c fix formatting in openbsd.zig 2022-02-20 11:58:42 +02:00
compress std: remove superfluous .read = true from deflate tests 2022-01-29 16:57:10 +02:00
crypto stage2: remove anytype fields from the language 2022-02-01 19:06:40 -07:00
dwarf
event allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00:00
fmt std.fmt.parseHexFloat: clean up bitwise logic 2022-01-31 20:59:32 -07:00
fs std.fs: Implement cross-platform metadata API 2022-02-13 20:56:06 +00:00
hash std: make ArrayHashMap eql function accept an additional param 2022-01-31 01:20:45 -07:00
heap stage1: deal with BPF not supporting @returnAddress() 2021-12-19 23:22:05 -08:00
io readUntilDelimiter*: read only if buffer not full 2022-01-24 17:44:26 +02:00
json allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00:00
math stage2: Implement @bitReverse and @byteSwap 2022-02-18 14:28:32 -07:00
mem std.mem.Allocator: upgrade to new function pointer semantics 2022-01-26 20:02:01 -07:00
meta std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
net Check for isDarwin() instead of linked libc 2022-01-14 13:44:38 +01:00
os stage2: integer-backed packed structs 2022-02-23 23:59:25 -07:00
rand Add argument for fillFn to Random.init 2021-10-29 19:20:31 -04:00
special Merge pull request #10976 from ziglang/x64-macos-fixes 2022-02-23 22:40:06 +01:00
target
testing allocgate: change resize to return optional instead of error 2021-11-30 23:45:01 +00:00
Thread update RwLock to use static initialization (#10838) 2022-02-08 23:35:48 -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
valgrind
x Check for isDarwin() instead of linked libc 2022-01-14 13:44:38 +01:00
zig translate-c: Add support for cast-to-union 2022-02-23 14:11:46 +02:00
array_hash_map.zig std: make ArrayHashMap eql function accept an additional param 2022-01-31 01:20:45 -07:00
array_list.zig [std.ArrayList] return explicit errors 2022-02-22 13:57:51 -05:00
ascii.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
atomic.zig
base64.zig std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
bit_set.zig std.bit_set: add setRangeValue(Range, bool) 2022-02-07 14:58:07 -05:00
bounded_array.zig Slice function of BoundedArray now returns slice based on self pointer 2022-01-16 01:37:37 -05:00
buf_map.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
buf_set.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
build.zig Merge pull request #10950 from hexops/sg/responsefiles 2022-02-23 22:54:25 +01:00
builtin.zig stage2: integer-backed packed structs 2022-02-23 23:59:25 -07:00
c.zig std: validate frame-pointer address in stack walking 2022-02-11 15:28:36 +01:00
child_process.zig Merge pull request #10813 from marler8997/windowsChildHang 2022-02-07 17:33:26 -05:00
coff.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
compress.zig compress: add a deflate compressor 2022-01-23 19:30:06 +01:00
comptime_string_map.zig
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 StackIterator should not try to check validity on freestanding 2022-02-19 15:38:56 -05:00
dwarf.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
dynamic_library.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
elf.zig Rename mem.bswapAllFields to byteSwapAllFields 2022-01-28 21:03:21 -05:00
enums.zig stage1: avoid anytype fields for type info 2022-02-01 18:10:19 -07:00
event.zig
fifo.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
fmt.zig AstGen: evaluate comptime var init expressions in a comptime context 2022-02-19 15:11:18 -07:00
fs.zig Adds Linux support for POSIX file locking with fcntl 2022-02-15 13:22:50 +02:00
hash.zig lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
hash_map.zig Fix incorrect documentation for std.HashMap.remove() 2022-02-18 13:47:38 -05:00
heap.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
io.zig std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
json.zig std.json: fix compile error for comptime fields 2022-02-13 14:33:17 +02:00
leb128.zig
linked_list.zig
log.zig std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
macho.zig macho: put LC_* consts in a typed enum(u32) LC 2021-12-15 08:59:20 +01:00
math.zig stage2: misc fixes in Sema 2022-02-23 10:40:40 +02:00
mem.zig std: Allow mem.zeroes to work at comptime with extern union 2022-02-07 11:34:20 +02:00
meta.zig stage1: avoid anytype fields for type info 2022-02-01 18:10:19 -07:00
multi_array_list.zig Revert "MultiArrayList: Fix error when struct is 0 sized" 2022-01-24 21:29:04 -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 Adds Linux support for POSIX file locking with fcntl 2022-02-15 13:22:50 +02:00
packed_int_array.zig
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 std.priority_queue: allow comparator to take a context parameter 2021-12-15 17:46:04 -08: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 std.Progress: fix suffix printing 2022-02-14 12:14:50 +02:00
rand.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
SemanticVersion.zig
sort.zig std.rand: Refactor Random interface 2021-10-27 16:07:48 -04:00
start.zig wasm: update test runner 2022-02-08 10:03:29 +01:00
start_windows_tls.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
std.zig tz parsing reader interface, test thicc files, and exclude tzif 2021-12-31 17:17:49 +00:00
target.zig stage2: add support for Nvptx target 2022-02-05 16:33:00 +02:00
testing.zig std.testing.refAllDecls: force decl to be analyzed with just @field 2022-02-18 21:21:21 +02:00
Thread.zig Merge pull request #10003 from viriuwu/nt-thread-name 2022-02-15 13:23:09 +02:00
time.zig lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
tz.zig Rename mem.bswapAllFields to byteSwapAllFields 2022-01-28 21:03:21 -05:00
unicode.zig Full response file (*.rsp) support 2022-01-30 21:27:52 +02: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
zig.zig stage2: add support for Nvptx target 2022-02-05 16:33:00 +02:00