]> git.ipfire.org Git - thirdparty/coreutils.git/commit
wc: use a more adaptive wc -l implementation
authorPádraig Brady <P@draigBrady.com>
Mon, 23 Mar 2015 11:54:19 +0000 (11:54 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 24 Mar 2015 10:23:29 +0000 (10:23 +0000)
commit56ff7a67601e79d9f7bf2fb946204a5482aa9302
tree1a3e003b85b50592d134de49b7cbcf88391e1926
parent01fb984887ce6fdd71d563e57c6b59155a1f4cb7
wc: use a more adaptive wc -l implementation

* src/wc.c (wc): Allow any block to select the count implementation,
rather than just using the first 10 lines.  This also simplifies
the code from 3 loops to 2.
src/wc.c