aboutsummaryrefslogtreecommitdiff
path: root/lib/std/std.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-04-01 22:34:40 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-04-01 22:39:09 -0700
commit8ebfdc14f68521ac129ee7d2c3f4e7250e4e7418 (patch)
tree7a20ca7752b10da7e811a52927b6d1ba0869e893 /lib/std/std.zig
parentc66b48194ff83eb5b1774a1428461f5fc94dcd7d (diff)
downloadzig-8ebfdc14f68521ac129ee7d2c3f4e7250e4e7418.tar.gz
zig-8ebfdc14f68521ac129ee7d2c3f4e7250e4e7418.zip
stage2: implement structs in the frontend
New ZIR instructions: * struct_decl_packed * struct_decl_extern New TZIR instruction: struct_field_ptr Introduce `Module.Struct`. It uses `Value` to store default values and abi alignments. Implemented Sema.analyzeStructFieldPtr and zirStructDecl. Some stuff I changed from `@panic("TODO")` to `log.warn("TODO")`. It's becoming more clear that we need the lazy value mechanism soon; Type is becoming unruly, and some of these functions have too much logic given that they don't have any context for memory management or error reporting.
Diffstat (limited to 'lib/std/std.zig')
0 files changed, 0 insertions, 0 deletions