diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2025-01-15 17:53:05 +0000 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2025-01-16 12:46:29 +0000 |
| commit | d00e05f18609921c1a051a637c24e47cfa304243 (patch) | |
| tree | ddeaafcc089671286dff4a7722667fb1e13dba53 /lib/std/Build/Step/ConfigHeader.zig | |
| parent | af6bad46cd132113e7b8497829a660a79e101742 (diff) | |
| download | zig-d00e05f18609921c1a051a637c24e47cfa304243.tar.gz zig-d00e05f18609921c1a051a637c24e47cfa304243.zip | |
all: update to `std.builtin.Type.Pointer.Size` field renames
This was done by regex substitution with `sed`. I then manually went
over the entire diff and fixed any incorrect changes.
This diff also changes a lot of `callconv(.C)` to `callconv(.c)`, since
my regex happened to also trigger here. I opted to leave these changes
in, since they *are* a correct migration, even if they're not the one I
was trying to do!
Diffstat (limited to 'lib/std/Build/Step/ConfigHeader.zig')
| -rw-r--r-- | lib/std/Build/Step/ConfigHeader.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/Build/Step/ConfigHeader.zig b/lib/std/Build/Step/ConfigHeader.zig index 895f50f5d0..fe16532dc3 100644 --- a/lib/std/Build/Step/ConfigHeader.zig +++ b/lib/std/Build/Step/ConfigHeader.zig @@ -144,13 +144,13 @@ fn putValue(config_header: *ConfigHeader, field_name: []const u8, comptime T: ty .pointer => |ptr| { switch (@typeInfo(ptr.child)) { .array => |array| { - if (ptr.size == .One and array.child == u8) { + if (ptr.size == .one and array.child == u8) { try config_header.values.put(field_name, .{ .string = v }); return; } }, .int => { - if (ptr.size == .Slice and ptr.child == u8) { + if (ptr.size == .slice and ptr.child == u8) { try config_header.values.put(field_name, .{ .string = v }); return; } |
