diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2025-07-30 08:46:04 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2025-08-03 19:48:05 -0700 |
| commit | 0625370b7ae4f925a3d93847224c56cb5c6c9f64 (patch) | |
| tree | 8e989a337a02146ddf69a1a6028d8d7ab4b3f5b4 /scripts/git-hooks/commit-msg | |
| parent | tail: don’t output more lines than requested (diff) | |
| download | coreutils-0625370b7ae4f925a3d93847224c56cb5c6c9f64.tar.gz coreutils-0625370b7ae4f925a3d93847224c56cb5c6c9f64.zip | |
tail: prefer intmax_t to uintmax_t
Signed types let us debug better, by using -fsanitize=undefined.
* doc/local.mk (doc/constants.texi):
Adjust change from macro to enum.
* src/tail.c (COPY_TO_EOF, COPY_A_BUFFER)
(DEFAULT_MAX_N_UNCHANGED_STATS_BETWEEN_OPENS):
Now enum constants, not macros.
(COPY_TO_EOF, COPY_A_BUFFER): Now negative, not positive.
(count_t): New typedef. Use it instead of uintmax_t.
(COUNT_MAX): New macro; use it instead of UINTMAX_MAX.
(struct File_spec, max_n_unchanged_stats_between_opens)
(dump_remainder, file_lines, pipe_lines, pipe_bytes)
(start_bytes, start_lines, tail_forever, check_fspec)
(tail_forever_inotify, tail_bytes, tail_lines, tail, tail_file)
(parse_obsolete_option, parse_options, main):
Prefer count_t to uintmax_t.
Diffstat (limited to 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions
