mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(check_file): Explain why we have separate if' and else'
blocks when the code in the else block could handle both cases.
This commit is contained in:
1 parent
2638bf642c
commit
7a7ef5ff5b
1 file changed
+5
@@ -238,6 +238,11 @@ check_file (const char *infile, const char *outfile)
|
||||
initbuffer (thisline);
|
||||
initbuffer (prevline);
|
||||
|
||||
/* This duplication is to distinguish the common case (in which none of the
|
||||
following options has been specified: --count, -repeated, --all-repeated,
|
||||
--unique) from the others. In the common case, we can output each new
|
||||
line right away, without waiting to see if the next one is different). */
|
||||
|
||||
if (mode == output_all && countmode == count_none)
|
||||
{
|
||||
char *prevfield IF_LINT (= NULL);
|
||||
|
||||
Reference in new issue
Block a user