aboutsummaryrefslogtreecommitdiff
path: root/lib/std/pdb.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-08-28 17:56:53 +0100
committermlugg <mlugg@mlugg.co.uk>2024-08-29 20:39:11 +0100
commit4330c405963ad7db2bfdb639c556e04793d386a1 (patch)
treec29d9a3e800815062540ab6f3ab3768200bf8646 /lib/std/pdb.zig
parent401910a2ca8e4b9689180c63d0b8e190adcf7cfa (diff)
downloadzig-4330c405963ad7db2bfdb639c556e04793d386a1.tar.gz
zig-4330c405963ad7db2bfdb639c556e04793d386a1.zip
std: avoid field/decl name conflicts
Most of these changes seem like improvements. The PDB thing had a TODO saying it used to crash; I anticipate it works now, we'll see what CI does. The `std.os.uefi` field renames are a notable breaking change.
Diffstat (limited to 'lib/std/pdb.zig')
-rw-r--r--lib/std/pdb.zig7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/std/pdb.zig b/lib/std/pdb.zig
index 31ad02e945..c30a963a9a 100644
--- a/lib/std/pdb.zig
+++ b/lib/std/pdb.zig
@@ -399,17 +399,14 @@ pub const LineBlockFragmentHeader = extern struct {
pub const LineNumberEntry = extern struct {
/// Offset to start of code bytes for line number
Offset: u32,
- Flags: u32,
-
- /// TODO runtime crash when I make the actual type of Flags this
- pub const Flags = packed struct {
+ Flags: packed struct(u32) {
/// Start line number
Start: u24,
/// Delta of lines to the end of the expression. Still unclear.
// TODO figure out the point of this field.
End: u7,
IsStatement: bool,
- };
+ },
};
pub const ColumnNumberEntry = extern struct {