diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-21 05:30:58 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-21 05:31:07 -0300 |
| commit | ed0103e9738e3cf5a7c7a91aec5adf0be2fc409a (patch) | |
| tree | 99add792416c5827ce515e892f2de3274225ab30 /abi | |
| parent | d04f4acfb9af968caaa53d6cf10a486622c95400 (diff) | |
| download | pardes-ed0103e9738e3cf5a7c7a91aec5adf0be2fc409a.tar.gz pardes-ed0103e9738e3cf5a7c7a91aec5adf0be2fc409a.zip | |
library: a patch row's text is its line without its end, said and tested: hunks.format trims a diff line's `\r` before its `\n` (and diff.Walk.step, and each of a source's lines, so the two compare) on purpose, and nothing a consumer reads said so (toilet saw a CRLF file's rows without their `\r`); the Patch doc comment, lib_syntax's, abi/wasm.zig's record and docs/typ/building.typ (the patch view, the record's text) say it now; test/consumer: a CRLF diff stacks to the LF diff's rows with no file, and with a CRLF main.c handed in its lines still match the diff's (its declaration found above `main.c:3 *`); no code changes
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'abi')
| -rw-r--r-- | abi/wasm.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/abi/wasm.zig b/abi/wasm.zig index d2b3889a..0c67e0da 100644 --- a/abi/wasm.zig +++ b/abi/wasm.zig @@ -87,8 +87,8 @@ pub const Record = extern struct { /// Where its code starts, a byte of its text: after a label's /// `path:line` and stars. code_start: u32, - /// Its text, without its newline, and its section's path: offsets into - /// the header's `text`. + /// Its text, without its line end (`\n`, and a `\r` before it), and its + /// section's path: offsets into the header's `text`. text_offset: u32, text_len: u32, path_offset: u32, |
