diff options
| author | Linus Groh <mail@linusgroh.de> | 2024-08-11 13:03:19 +0100 |
|---|---|---|
| committer | Linus Groh <mail@linusgroh.de> | 2024-08-12 00:36:51 +0100 |
| commit | 4ef956ef140a1c8cf606cd9b6a9606c0a85bf934 (patch) | |
| tree | 681414566bb7b57ba50e0a6182336040ef184d6b /src/Sema.zig | |
| parent | fd434fcd3802cd51778cfc44bde8e6ff83f808bd (diff) | |
| download | zig-4ef956ef140a1c8cf606cd9b6a9606c0a85bf934.tar.gz zig-4ef956ef140a1c8cf606cd9b6a9606c0a85bf934.zip | |
std.Target: Rename c_type_* functions to camel case
From https://ziglang.org/documentation/master/#Names:
> If `x` is otherwise callable, then `x` should be `camelCase`.
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index 20daa78e9a..ffc0df5ad2 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -30943,7 +30943,7 @@ fn coerceVarArgParam( .Array => return sema.fail(block, inst_src, "arrays must be passed by reference to variadic function", .{}), .Float => float: { const target = zcu.getTarget(); - const double_bits = target.c_type_bit_size(.double); + const double_bits = target.cTypeBitSize(.double); const inst_bits = uncasted_ty.floatBits(target); if (inst_bits >= double_bits) break :float inst; switch (double_bits) { @@ -30956,21 +30956,21 @@ fn coerceVarArgParam( if (!try sema.validateExternType(uncasted_ty, .param_ty)) break :int inst; const target = zcu.getTarget(); const uncasted_info = uncasted_ty.intInfo(zcu); - if (uncasted_info.bits <= target.c_type_bit_size(switch (uncasted_info.signedness) { + if (uncasted_info.bits <= target.cTypeBitSize(switch (uncasted_info.signedness) { .signed => .int, .unsigned => .uint, })) break :int try sema.coerce(block, switch (uncasted_info.signedness) { .signed => Type.c_int, .unsigned => Type.c_uint, }, inst, inst_src); - if (uncasted_info.bits <= target.c_type_bit_size(switch (uncasted_info.signedness) { + if (uncasted_info.bits <= target.cTypeBitSize(switch (uncasted_info.signedness) { .signed => .long, .unsigned => .ulong, })) break :int try sema.coerce(block, switch (uncasted_info.signedness) { .signed => Type.c_long, .unsigned => Type.c_ulong, }, inst, inst_src); - if (uncasted_info.bits <= target.c_type_bit_size(switch (uncasted_info.signedness) { + if (uncasted_info.bits <= target.cTypeBitSize(switch (uncasted_info.signedness) { .signed => .longlong, .unsigned => .ulonglong, })) break :int try sema.coerce(block, switch (uncasted_info.signedness) { |
