Andrew Kelley
7da9e4b35e
std.tz: fix redundant endian handling
...
I didn't notice the check+swap before.
2025-08-28 18:30:57 -07:00
Andrew Kelley
e9a271cba3
std.tz: update to new Reader API
2025-08-28 18:30:57 -07:00
Andrew Kelley
3fc6fc6812
std.builtin.Endian: make the tags lower case
...
Let's take this breaking change opportunity to fix the style of this
enum.
2023-10-31 21:37:35 -04:00
Jacob Young
d890e81761
mem: fix ub in writeInt
...
Use inline to vastly simplify the exposed API. This allows a
comptime-known endian parameter to be propogated, making extra functions
for a specific endianness completely unnecessary.
2023-10-31 21:37:35 -04:00
mlugg
f26dda2117
all: migrate code to new cast builtin syntax
...
Most of this migration was performed automatically with `zig fmt`. There
were a few exceptions which I had to manually fix:
* `@alignCast` and `@addrSpaceCast` cannot be automatically rewritten
* `@truncate`'s fixup is incorrect for vectors
* Test cases are not formatted, and their error locations change
2023-06-24 16:56:39 -07:00
Andrew Kelley
6261c13731
update codebase to use @memset and @memcpy
2023-04-28 13:24:43 -07:00
Veikka Tuominen
a224dfceee
std.tz: fix function returning pointer to local variable
2022-06-17 21:04:21 +03:00
Veikka Tuominen
6b36774adc
std: disable failing tests, add zig2 build test-std to CI
2022-06-12 10:43:28 +03:00
John Schmidt
63ee6e6625
Rename mem.bswapAllFields to byteSwapAllFields
...
To match the renaming of `@bswap` to `@byteSwap` in
1fdb24827f .
2022-01-28 21:03:21 -05:00
Jens Goldberg
a54788ba7a
Support legacy TZ format, expose header struct to a potential writer
2022-01-01 12:47:08 +00:00
Jens Goldberg
cb06f6f984
Remove a no-op line that was left in by mistake
2021-12-31 22:57:06 +00:00
Jens Goldberg
9a56435666
tz parsing reader interface, test thicc files, and exclude tzif
2021-12-31 17:17:49 +00:00
Jens Goldberg
bc5c467755
Support parsing tz timezone data
2021-12-30 15:12:20 +00:00