diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-10-01 04:32:42 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-10-01 04:35:14 +0200 |
| commit | b569ead29ea4459d0d363bf5a878ddb53f8f14f3 (patch) | |
| tree | 15b8b739aa0dd6aa3fcb0ed479aa929de5f70c71 | |
| parent | 9bbfc864af0311403aa19538999b170dbd35b7dc (diff) | |
| download | zig-b569ead29ea4459d0d363bf5a878ddb53f8f14f3.tar.gz zig-b569ead29ea4459d0d363bf5a878ddb53f8f14f3.zip | |
std.elf: Make int() and int32() functions private.
These have no callers outside std.elf. Even if the standard library should
provide functions like these, std.elf is probably not the place, given how
general they are.
| -rw-r--r-- | lib/std/elf.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/elf.zig b/lib/std/elf.zig index 0fedffdd14..d948e8fcc5 100644 --- a/lib/std/elf.zig +++ b/lib/std/elf.zig @@ -659,7 +659,7 @@ pub fn SectionHeaderIterator(comptime ParseSource: anytype) type { }; } -pub fn int(is_64: bool, need_bswap: bool, int_32: anytype, int_64: anytype) @TypeOf(int_64) { +fn int(is_64: bool, need_bswap: bool, int_32: anytype, int_64: anytype) @TypeOf(int_64) { if (is_64) { if (need_bswap) { return @byteSwap(int_64); @@ -671,7 +671,7 @@ pub fn int(is_64: bool, need_bswap: bool, int_32: anytype, int_64: anytype) @Typ } } -pub fn int32(need_bswap: bool, int_32: anytype, comptime Int64: anytype) Int64 { +fn int32(need_bswap: bool, int_32: anytype, comptime Int64: anytype) Int64 { if (need_bswap) { return @byteSwap(int_32); } else { |
