diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2025-07-29 13:22:41 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2025-08-03 19:48:05 -0700 |
| commit | d584545299fb5d7581d77e5627c6735e743d6e77 (patch) | |
| tree | 2e08e87b26a8660dd6cac476cf11ffde54db4435 /scripts/git-hooks | |
| parent | tail: optimize tail -n +2**63 (diff) | |
| download | coreutils-d584545299fb5d7581d77e5627c6735e743d6e77.tar.gz coreutils-d584545299fb5d7581d77e5627c6735e743d6e77.zip | |
tail: prettyname cleanup
* src/tail.c: Use ‘prettyname’ consistently as the identifier
for a prettified file name, as opposed to ‘pretty_filename’,
‘pretty_name’, and ‘name’. This makes the code easier to follow.
(struct File_spec): New member prettyname.
(pretty_name): Remove.
All uses of pretty_name (f) replaced by f->prettyname.
(close_fd, fremote): Accept struct File_spec, not name.
All callers changed.
(main): Initialize the new prettyname member.
This is simpler/smaller than calling pretty_name everywhere.
Diffstat (limited to 'scripts/git-hooks')
0 files changed, 0 insertions, 0 deletions
