John Benediktsson
6e86910e19
std.Io: Fix GenericReader.adaptToNewApi; add DeprecatedReader.adaptToNewApi ( #24484 )
2025-07-17 11:29:22 +00:00
Andrew Kelley
c82403020d
Merge pull request #24472 from ziglang/zig-fmt
...
zig fmt: update related functionality to new I/O API
2025-07-17 12:06:40 +02:00
kcbanner
9af076615e
std.Progress: reset end when failing to flush stderr
2025-07-17 09:05:29 +02:00
Tristan Ross
5ef07302d7
std.Build.Step.ConfigHeader: add the lazy file styled input as a dependency
2025-07-17 05:20:24 +02:00
Andrew Kelley
741569d5a7
std.Ast.Render: fix conflicts with master branch
2025-07-16 17:58:06 -07:00
Andrew Kelley
70f514f1ba
std.Io.Reader: fix appendRemaining harder
...
ensure that it issues a stream call that includes the buffer to detect
the end when needed, but otherwise does not offer Reader buffer to
append directly to the list.
2025-07-16 17:20:03 -07:00
Andrew Kelley
1f93f61958
std.zig.readSourceFileToEndAlloc: add file size heuristic
2025-07-16 17:20:03 -07:00
Andrew Kelley
73cfba4d0d
std.Io.Writer: fix writeStruct
2025-07-16 17:20:03 -07:00
Andrew Kelley
e7a639967e
std.Io.Reader: fix appendRemaining
...
it calls readVec which is a higher level function than was expected in
the previous implementation
2025-07-16 17:20:03 -07:00
Andrew Kelley
c4776d66af
update compiler
2025-07-16 17:20:02 -07:00
Andrew Kelley
2d5d2ba4f5
std.zig.Render: update it and references
2025-07-16 17:20:02 -07:00
Andrew Kelley
0389b4c7b9
move a file without changing it
2025-07-16 17:20:02 -07:00
Andrew Kelley
6c4a104822
std.zig.Ast: update to new I/O API
2025-07-16 17:20:02 -07:00
Andrew Kelley
1a20b467ea
std.zig: update to new I/O API
2025-07-16 17:20:02 -07:00
Andrew Kelley
680358767e
Merge pull request #24419 from ziglang/asm-clobbers
...
inline assembly: use types for clobbers
2025-07-17 02:14:18 +02:00
Silver
d772c06272
fix splatBytesAll and writeSplatAll
2025-07-16 20:37:38 +02:00
Andrew Kelley
af084e537a
add lr register to mips
2025-07-16 10:27:40 -07:00
Andrew Kelley
8a478b4e9e
fix sparc ccr regs
2025-07-16 10:27:40 -07:00
Andrew Kelley
5aa50bcbff
fix mips clobbers
2025-07-16 10:27:40 -07:00
Andrew Kelley
8a19eeb8af
canonicalize loongarch clobbers
2025-07-16 10:27:40 -07:00
Andrew Kelley
15e5e5b2bc
fix mips inline asm
...
wtf are these dollar signs?
2025-07-16 10:27:40 -07:00
Andrew Kelley
3628137442
add clobbers for more architectures
2025-07-16 10:27:40 -07:00
Andrew Kelley
54f073377c
std.zig.render: handle legacy clobber updating more gracefully
...
"that's really easy to handle correctly" he said
2025-07-16 10:27:39 -07:00
Andrew Kelley
15f45e89a7
remove condition codes
...
LLVM always assumes these are on. Zig backends do not observe them.
If Zig backends want to start using them, they can be introduced, one
arch at a time, with proper documentation.
2025-07-16 10:27:39 -07:00
Andrew Kelley
de9c0e4580
alexrp suggestions
2025-07-16 10:27:39 -07:00
Andrew Kelley
76d04c1662
zig fmt
2025-07-16 10:27:39 -07:00
Andrew Kelley
fcafc63f3d
inline assembly: use types
...
until now these were stringly typed.
it's kinda obvious when you think about it.
2025-07-16 10:23:02 -07:00
Alex Kladov
7d63e777a4
fix memory leak
...
closes #24421
2025-07-16 18:34:34 +02:00
Andrew Kelley
dbe0e0c1bc
Merge pull request #24464 from ziglang/fixes
...
std.Io fixes, docs, and tests
2025-07-16 02:54:45 +02:00
Andrew Kelley
5f6e3245d1
std.os.windows: restore sendmsg, sendto, recvfrom
...
These regressed with 1a998886c863a1829d649f196093f1058cd9cf13
I'm not ready to tackle std.posix quite yet
2025-07-15 14:24:06 -07:00
Andrew Kelley
6d39c29564
std.Io.Writer.Allocating: fix sendFile EndOfStream
2025-07-15 11:43:55 -07:00
Andrew Kelley
c7f332a260
std.Io.Writer.Discarding: fix sendFile EndOfStream
2025-07-15 11:32:40 -07:00
Andrew Kelley
f521aa0520
std.io.Reader: add more docs for rebase
...
closes #24418
2025-07-15 10:04:45 -07:00
Andrew Kelley
0cb558ba3a
better default min versions for freebsd and netbsd
...
Without this change, by default you get a failure when trying to cross
compile for these targets.
freebsd was error: undefined symbol: __libc_start1
netbsd was warning: invalid target NetBSD libc version: 9.4.0
error: unable to build NetBSD libc shared objects: InvalidTargetLibCVersion
now they work by default
2025-07-15 15:32:18 +02:00
Andrew Kelley
a5dbb656b1
Merge pull request #24454 from ziglang/packed-struct-streams
...
std.Io: handle packed structs better
2025-07-15 13:43:08 +02:00
Travis Staloch
294db62d92
memory safety fix for Io.Writer.Allocating.toOwnedSlice*()
...
don't forget to save the list. this allows a
`testing.checkAllAllocationFailures()` test to pass in one of my
projects which newly failed since #24329 was merged.
2025-07-15 08:49:54 +02:00
Andrew Kelley
4f5fa959aa
std.Io.Reader.streamDelimiterEnding docs clarification
2025-07-14 21:01:40 -07:00
Andrew Kelley
deb9f3e88f
std.Io: handle packed structs better
...
Rather than having the endian-suffixed functions be the preferred ones
the unsuffixed ones are the preferred ones and the tricky functions get
a special suffix.
Makes packed structs read and written the same as integers.
closes #12960
2025-07-14 18:43:56 -07:00
Andrew Kelley
34d7cf075e
std.posix: skip flaky test
...
tracked by #24380
2025-07-14 18:38:50 -07:00
Andrew Kelley
e4ebbdb354
std.c: add missing netbsd and freebsd MSG flags
2025-07-14 09:35:38 -07:00
Andrew Kelley
b510482525
std.fs.File.Reader.seekTo: add missing int cast
2025-07-14 00:21:20 -07:00
Andrew Kelley
524e2e19a5
std.Io.Writer.Discarding: fix drain calculation
2025-07-14 00:18:13 -07:00
Andrew Kelley
0c0d94a6da
std.net: wasi does not have unix sockets
2025-07-14 00:16:49 -07:00
Andrew Kelley
36f356254c
align those @fieldParentPtr casts
2025-07-14 00:16:49 -07:00
Andrew Kelley
890f1fa848
make msghdr.iovlen unsigned
...
I don't care what C headers say. This value is never supposed to be
negative.
2025-07-14 00:16:49 -07:00
Andrew Kelley
9a1f4cb011
std.net: update to new I/O API
2025-07-14 00:16:49 -07:00
Andrew Kelley
5496901e71
std.Io.Reader.appendRemaining: add missing assert
2025-07-14 00:14:21 -07:00
Andrew Kelley
093fe02b75
add adaptToNewApi to std.Io.Reader as well
2025-07-14 00:14:21 -07:00
Andrew Kelley
96a4e9b866
std.crypto: fix Sha1 namespace
2025-07-14 00:14:21 -07:00
xdBronch
5a8acc9115
fix some llvm ir printer bugs
2025-07-14 08:31:54 +02:00