diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-04-06 17:02:22 +0200 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2025-04-11 05:22:00 -0400 |
| commit | 0132be7bf3fd02cfb8c31ffdeaddae918a76b295 (patch) | |
| tree | 91b154b7d461f5ae6be6f2ed04858f3243d9517c /lib/std/Target.zig | |
| parent | c82e1fe880629beea5660c675cfc698807205601 (diff) | |
| download | zig-0132be7bf3fd02cfb8c31ffdeaddae918a76b295.tar.gz zig-0132be7bf3fd02cfb8c31ffdeaddae918a76b295.zip | |
std.Target: Rename charSignedness() to cCharSignedness().
To be consistent with the other functions that answer C ABI questions.
Diffstat (limited to 'lib/std/Target.zig')
| -rw-r--r-- | lib/std/Target.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Target.zig b/lib/std/Target.zig index e9a973f2fd..ea7be17697 100644 --- a/lib/std/Target.zig +++ b/lib/std/Target.zig @@ -2695,7 +2695,7 @@ pub fn stackAlignment(target: Target) u16 { /// Default signedness of `char` for the native C compiler for this target /// Note that char signedness is implementation-defined and many compilers provide /// an option to override the default signedness e.g. GCC's -funsigned-char / -fsigned-char -pub fn charSignedness(target: Target) std.builtin.Signedness { +pub fn cCharSignedness(target: Target) std.builtin.Signedness { if (target.os.tag.isDarwin() or target.os.tag == .windows or target.os.tag == .uefi) return .signed; return switch (target.cpu.arch) { |
