From 59e7627371697a40b96dea4cb592f904f66c1648 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 8 Oct 2003 17:55:06 +0000 Subject: *** empty log message *** --- ChangeLog | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/ChangeLog | 4 +++ 2 files changed, 85 insertions(+) diff --git a/ChangeLog b/ChangeLog index a6de7d757..e72f7ed27 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,87 @@ * Use automake-1.7.8. Regenerate dependent files. +2003-09-29 Paul Eggert + + csplit cleanup. + + * doc/coreutils.texi (csplit invocation): + The regexp offset need not have a sign; POSIX requires support + for signless offets. + + Be more careful about int widths. For example, remove some + arbitrary limits by replacing 'unsigned' with 'size_t', + 'uintmax_t', etc. Use standard bool rather than a homegrown type. + * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c. + * src/csplit.c (FALSE, TRUE, boolean): Remove. All uses changed + to usage. + (struct control): offset is now intmax_t, not int. + repeat_forever is now bool, not int. + (struct cstring): len is now size_t, not unsigned int. + (struct buffer_record): bytes_alloc, bytes_used, num_lines are now + size_t, not unsigned. start_line, first_available are now + uintmax_t, not unsigned. + (hold_count, control_used): Now size_t, not unsigned. + (last_line_number, current_line, bytes_written): + Now uintmax_t, not unsigned. + (save_to_hold_area, red_input, keep_new_line, record_line_starts, + create_new_buffer, get_new_buffer, load_buffer, find_line, + process_regexp, split_file, new_control_record, extract_regexp, + get_format_width, get_format_prec, max_out): + size args, locals, and returned values are now size_t, not unsigned + or int. + (get_first_line_in_buffer, find_line, write_to_file, + handle_line_error, process_line_count, regexp_error, process_regexp, + split_file): + File line, byte, and repetition counts are now uintmax_t, not unsigned. + (check_for_offset): Don't require a sign before the offset. + Use xstrtoimax to do the real work. + (extract_regexp): Remove harmful cast of size to unsigned. + 256 -> 1< * src/chown-core.c (change_file_owner): Remove set-but-not-used local. diff --git a/lib/ChangeLog b/lib/ChangeLog index 079206c05..949abde1c 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2003-09-29 Paul Eggert + + * Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c. + 2003-10-02 Jim Meyering Don't require that the maximum length of a file name -- cgit v1.2.3-70-g09d2