diff options
author | Ron Yorston <rmy@pobox.com> | 2015-07-24 14:28:08 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-07-31 16:22:07 +0200 |
commit | 70b84be9e85969491e542cecc3ae28fa7558a7ec (patch) | |
tree | 15b5b57b0dd60215e00e0d586ad744452b819026 /scripts/showasm | |
parent | 159e032bf4cd24535e57daaf29a381b0d5163368 (diff) | |
download | busybox-70b84be9e85969491e542cecc3ae28fa7558a7ec.tar.gz |
less: rearrange detection of non-regular files
Move the code to detect non-regular files to the point where the
file is being opened. If num_lines == READING_FILE guarantees
that the file is regular.
Detect when a file becomes unreadable between it first being opened
and the call to update_num_lines. Mark the file as being non-regular
so we don't try that again.
function old new delta
reinitialize 197 245 +48
update_num_lines 159 127 -32
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 48/-32) Total: 16 bytes
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/showasm')
0 files changed, 0 insertions, 0 deletions