]> git.ipfire.org Git - thirdparty/coreutils.git/commit
split: refactor lines_chunk_split
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 4 Mar 2023 19:41:02 +0000 (11:41 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 4 Mar 2023 22:49:45 +0000 (14:49 -0800)
commitf749449e5c8d687468476f39c4a05cb77f0dd433
treeca17114254fb571cdf3cc63c74df3fd96a441149
parent0789451237b90324a5d1f5c1b9fbaa5099f4c072
split: refactor lines_chunk_split

* src/split.c (lines_chunk_split): Simplify by having chunk_end
point to the first byte after the chunk, rather than to the last
byte of the chunk.  This will reduce confusion once we allow
chunks to be empty.
src/split.c