Jim Meyering [Thu, 6 Nov 2003 09:36:50 +0000 (09:36 +0000)]
*** empty log message ***
Jim Meyering [Thu, 6 Nov 2003 09:32:25 +0000 (09:32 +0000)]
*** empty log message ***
Jim Meyering [Thu, 6 Nov 2003 09:28:45 +0000 (09:28 +0000)]
*** empty log message ***
Jim Meyering [Thu, 6 Nov 2003 09:28:40 +0000 (09:28 +0000)]
(who): Free `utmp_buf' so there is no confusion about
whether it's leaked or not.
Jim Meyering [Thu, 6 Nov 2003 09:28:13 +0000 (09:28 +0000)]
(main): Free `fstatus' so there is no confusion about
whether it's leaked or not.
Jim Meyering [Thu, 6 Nov 2003 08:37:55 +0000 (08:37 +0000)]
Fix 'cut' problems with size_t overflow and unsigned int.
More generally, resize integer variables to fit use more precisely.
(ADD_RANGE_PAIR): Remove unnecessary parens.
(struct range_pair): Make members to be of type size_t, not unsigned.
(max_range_endpoint, eol_range_start): Now size_t, not unsigned.
(suppress_non_delimited, output_delimiter_specified,
have_read_stdin, print_kth, set_fields): Now bool, nt int.
(delim): Now unsigned char, not int.
(mark_printable_field, is_printable_field, is_range_start_index,
set_fields, set_fields, cut_bytes, cut_fields):
Use size_t, not unsigned, for field and byte counts.
(hash_int): Use uintptr_t, not unsigned, for pointers converted
to integers. This squeezes more info out of them.
(set_fields, cut_bytes, cut_fields, main):
Use bool, not int, for booleans.
(set_fields): Allocate zeroed byte array with xzalloc, not xcalloc.
Jim Meyering [Thu, 6 Nov 2003 08:37:17 +0000 (08:37 +0000)]
*** empty log message ***
Jim Meyering [Thu, 6 Nov 2003 08:37:13 +0000 (08:37 +0000)]
*** empty log message ***
Jim Meyering [Thu, 6 Nov 2003 08:37:09 +0000 (08:37 +0000)]
(jm_CHECK_ALL_TYPES): Check for uintptr_t.
Jim Meyering [Thu, 6 Nov 2003 08:06:58 +0000 (08:06 +0000)]
.
Jim Meyering [Thu, 6 Nov 2003 08:03:33 +0000 (08:03 +0000)]
*** empty log message ***
Jim Meyering [Thu, 6 Nov 2003 08:03:27 +0000 (08:03 +0000)]
(check-programs-vs-x):
Work even if $(programs) contains '$'.
Work even if 'missing=1' in environment.
Don't report an error simply because $(programs) outputs nothing.
Jim Meyering [Thu, 6 Nov 2003 06:08:07 +0000 (06:08 +0000)]
New file. From gnulib.
Jim Meyering [Thu, 6 Nov 2003 06:07:44 +0000 (06:07 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Nov 2003 22:47:44 +0000 (22:47 +0000)]
(jm_MACROS): Require gl_FUNC_FREE.
Jim Meyering [Wed, 5 Nov 2003 22:47:37 +0000 (22:47 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Nov 2003 21:56:05 +0000 (21:56 +0000)]
Update from gnulib.
Jim Meyering [Wed, 5 Nov 2003 21:47:00 +0000 (21:47 +0000)]
Update from gnulib.
Jim Meyering [Wed, 5 Nov 2003 21:44:14 +0000 (21:44 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Nov 2003 21:44:10 +0000 (21:44 +0000)]
(jm_MACROS): Require autoconf-2.58.
(AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
Jim Meyering [Wed, 5 Nov 2003 21:42:49 +0000 (21:42 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Nov 2003 14:55:33 +0000 (14:55 +0000)]
.
Jim Meyering [Wed, 5 Nov 2003 03:55:48 +0000 (03:55 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Nov 2003 03:53:25 +0000 (03:53 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Nov 2003 03:53:19 +0000 (03:53 +0000)]
Cast NULL to `(char *)' in call to variadic function,
parse_long_options, so that it works even on systems for which
sizeof char* != sizeof int.
Jim Meyering [Wed, 5 Nov 2003 03:49:44 +0000 (03:49 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Nov 2003 03:49:29 +0000 (03:49 +0000)]
(spec_init): Fix typo in last change.
Jim Meyering [Wed, 5 Nov 2003 03:43:30 +0000 (03:43 +0000)]
(main): Cast NULL to `(char *)' in
call to variadic version_etc function, so that it works even on systems
for which sizeof char* != sizeof int.
Jim Meyering [Wed, 5 Nov 2003 03:43:22 +0000 (03:43 +0000)]
(case_GETOPT_VERSION_CHAR): Cast NULL to `(char *)' in
call to variadic version_etc function, so that it works even on systems
for which sizeof char* != sizeof int.
Jim Meyering [Wed, 5 Nov 2003 03:34:15 +0000 (03:34 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Nov 2003 03:34:09 +0000 (03:34 +0000)]
Document _POSIX2_VERSION.
Jim Meyering [Wed, 5 Nov 2003 03:19:14 +0000 (03:19 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Nov 2003 03:15:21 +0000 (03:15 +0000)]
(users): Free `utmp_buf' explicitly so that people
don't mistake this for a real leak.
Jim Meyering [Wed, 5 Nov 2003 03:14:28 +0000 (03:14 +0000)]
*** empty log message ***
Jim Meyering [Tue, 4 Nov 2003 14:42:54 +0000 (14:42 +0000)]
.
Jim Meyering [Tue, 4 Nov 2003 14:42:09 +0000 (14:42 +0000)]
*** empty log message ***
Jim Meyering [Tue, 4 Nov 2003 14:42:05 +0000 (14:42 +0000)]
(ADD_FIELD, initseq, getseq): Use x2nrealloc rather than xrealloc.
Jim Meyering [Tue, 4 Nov 2003 10:27:24 +0000 (10:27 +0000)]
(fold_file): Use x2nrealloc rather than xrealloc.
Jim Meyering [Tue, 4 Nov 2003 09:32:16 +0000 (09:32 +0000)]
(store_char): Use x2nrealloc rather than xrealloc.
Jim Meyering [Tue, 4 Nov 2003 09:31:08 +0000 (09:31 +0000)]
(memrchr): Remove #if-0'd function.
(tac_stdin_to_mem): Clean up #if-0'd code.
Jim Meyering [Tue, 4 Nov 2003 09:28:28 +0000 (09:28 +0000)]
(new_key): Use xzalloc, not xcalloc.
Jim Meyering [Tue, 4 Nov 2003 09:27:54 +0000 (09:27 +0000)]
(show_date): Use x2nrealloc rather than xrealloc.
Jim Meyering [Tue, 4 Nov 2003 09:27:19 +0000 (09:27 +0000)]
(decode_format_string): Remove unnecessary casts.
Use more maintainable `sizeof *var'.
(main): Call decode_format_string rather than decode_one_format,
now that `spec' may be NULL.
Jim Meyering [Tue, 4 Nov 2003 06:32:51 +0000 (06:32 +0000)]
(decode_format_string, dump_strings): Use x2nrealloc rather than xrealloc.
Jim Meyering [Tue, 4 Nov 2003 06:28:01 +0000 (06:28 +0000)]
(ADD_RANGE_PAIR): Use x2nrealloc rather than xrealloc,
to avoid potential overflow in pointer arithmetic.
(set_fields): Use not `1', but rather `sizeof *printable_field' as
second argument to xcalloc.
Jim Meyering [Tue, 4 Nov 2003 06:25:45 +0000 (06:25 +0000)]
(next_file_name): Use `sizeof *var' rather than
hard-coding `sizeof size_t'.
Jim Meyering [Tue, 4 Nov 2003 06:21:03 +0000 (06:21 +0000)]
(AUTHORS): Add my name.
Jim Meyering [Tue, 4 Nov 2003 06:13:55 +0000 (06:13 +0000)]
(main): Use `sizeof *var' rather than `sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.
Jim Meyering [Tue, 4 Nov 2003 06:07:01 +0000 (06:07 +0000)]
(initseq, add_field, make_blank): Use `sizeof *var' rather
than `sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.
Jim Meyering [Mon, 3 Nov 2003 16:11:14 +0000 (16:11 +0000)]
*** empty log message ***
Jim Meyering [Mon, 3 Nov 2003 16:11:06 +0000 (16:11 +0000)]
(TESTS_ENVIRONMENT): Define PACKAGE_VERSION.
Jim Meyering [Mon, 3 Nov 2003 16:10:58 +0000 (16:10 +0000)]
Fail the test immediately if we're not running
the expected version of fold.
Jim Meyering [Mon, 3 Nov 2003 15:08:50 +0000 (15:08 +0000)]
.
Jim Meyering [Mon, 3 Nov 2003 14:57:41 +0000 (14:57 +0000)]
wrap long copyright line
Jim Meyering [Mon, 3 Nov 2003 12:42:58 +0000 (12:42 +0000)]
.
Jim Meyering [Sun, 2 Nov 2003 20:39:40 +0000 (20:39 +0000)]
*** empty log message ***
Jim Meyering [Sun, 2 Nov 2003 20:39:26 +0000 (20:39 +0000)]
(alloc_and_compile_regex, main): Use `sizeof *var' rather
than `sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.
Jim Meyering [Sun, 2 Nov 2003 20:24:14 +0000 (20:24 +0000)]
(new_item, record_relation): Use `sizeof *var' rather
than `sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.
Jim Meyering [Sun, 2 Nov 2003 20:22:54 +0000 (20:22 +0000)]
(add_fs_type, add_excluded_fs_type, main): Use `sizeof *var' rather
than `sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.
(main): Also remove anachronistic cast of xmalloc return value.
Jim Meyering [Sun, 2 Nov 2003 20:17:46 +0000 (20:17 +0000)]
(make_path_private): Use `sizeof *var' rather than `sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.
Jim Meyering [Sun, 2 Nov 2003 20:17:04 +0000 (20:17 +0000)]
(copy_internal): Use `sizeof *var' rather than `sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.
Jim Meyering [Sun, 2 Nov 2003 20:16:19 +0000 (20:16 +0000)]
(inittables): Use `sizeof *var' rather than `sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.
(sort): Split a long line.
Jim Meyering [Sun, 2 Nov 2003 19:54:01 +0000 (19:54 +0000)]
*** empty log message ***
Jim Meyering [Sun, 2 Nov 2003 19:50:48 +0000 (19:50 +0000)]
(append_normal_char, append_range, append_char_class)
(append_repeated_char, append_equiv_class, spec_init): Use more maintainable
and usually-shorter `sizeof *var' rather than `sizeof EXPLICIT_TYPE'.
Jim Meyering [Sat, 1 Nov 2003 08:54:59 +0000 (08:54 +0000)]
*** empty log message ***
Jim Meyering [Sat, 1 Nov 2003 08:54:54 +0000 (08:54 +0000)]
(SIZE_MAX): Define if not defined already.
(read_filesystem_list): Set and use me_type_malloced.
Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
whatever the type happens to be), for brevity and consistency.
Check for size calculation overflow on Alphas running OSF/1.
Jim Meyering [Sat, 1 Nov 2003 08:54:35 +0000 (08:54 +0000)]
(struct mount_entry.me_type_malloced): New member.
Jim Meyering [Fri, 31 Oct 2003 14:07:10 +0000 (14:07 +0000)]
*** empty log message ***
Jim Meyering [Fri, 31 Oct 2003 14:06:04 +0000 (14:06 +0000)]
*** empty log message ***
Jim Meyering [Fri, 31 Oct 2003 14:05:55 +0000 (14:05 +0000)]
Include "xalloc.h".
Jim Meyering [Fri, 31 Oct 2003 14:04:40 +0000 (14:04 +0000)]
*** empty log message ***
Jim Meyering [Fri, 31 Oct 2003 14:00:18 +0000 (14:00 +0000)]
Update from gnulib.
Jim Meyering [Fri, 31 Oct 2003 13:50:17 +0000 (13:50 +0000)]
*** empty log message ***
Jim Meyering [Fri, 31 Oct 2003 13:50:11 +0000 (13:50 +0000)]
Include <string.h> for declaration of memset.
Jim Meyering [Fri, 31 Oct 2003 13:48:19 +0000 (13:48 +0000)]
*** empty log message ***
Jim Meyering [Fri, 31 Oct 2003 13:48:07 +0000 (13:48 +0000)]
Update from gnulib.
Jim Meyering [Fri, 31 Oct 2003 13:47:27 +0000 (13:47 +0000)]
*** empty log message ***
Jim Meyering [Fri, 31 Oct 2003 13:47:11 +0000 (13:47 +0000)]
Update from gnulib.
Jim Meyering [Fri, 31 Oct 2003 13:46:37 +0000 (13:46 +0000)]
*** empty log message ***
Jim Meyering [Fri, 31 Oct 2003 13:46:26 +0000 (13:46 +0000)]
Update from gnulib.
Jim Meyering [Fri, 31 Oct 2003 13:44:41 +0000 (13:44 +0000)]
*** empty log message ***
Jim Meyering [Fri, 31 Oct 2003 13:44:24 +0000 (13:44 +0000)]
Update from gnulib.
Jim Meyering [Fri, 31 Oct 2003 13:43:55 +0000 (13:43 +0000)]
Update from gnulib.
Jim Meyering [Fri, 31 Oct 2003 13:42:15 +0000 (13:42 +0000)]
Update from gnulib.
Jim Meyering [Fri, 31 Oct 2003 13:41:44 +0000 (13:41 +0000)]
Update from gnulib.
Jim Meyering [Fri, 31 Oct 2003 13:41:08 +0000 (13:41 +0000)]
from gnulib -- merely increment serial number
Jim Meyering [Fri, 31 Oct 2003 13:39:58 +0000 (13:39 +0000)]
Update from gnulib.
Jim Meyering [Sat, 25 Oct 2003 15:34:12 +0000 (15:34 +0000)]
*** empty log message ***
Jim Meyering [Sat, 25 Oct 2003 15:34:01 +0000 (15:34 +0000)]
(triple_hash, triple_hash_no_name): Adjust to reflect
type changes (unsigned int -> size_t) in hash.c.
Jim Meyering [Sat, 25 Oct 2003 15:33:43 +0000 (15:33 +0000)]
(src_to_dest_hash): Adjust to reflect
type changes (unsigned int -> size_t) in hash.c.
Jim Meyering [Sat, 25 Oct 2003 15:33:28 +0000 (15:33 +0000)]
(hash_int): Adjust to reflect
type changes (unsigned int -> size_t) in hash.c.
Jim Meyering [Sat, 25 Oct 2003 15:33:05 +0000 (15:33 +0000)]
(entry_hash): Adjust to reflect
type changes (unsigned int -> size_t) in hash.c.
Jim Meyering [Sat, 25 Oct 2003 15:32:07 +0000 (15:32 +0000)]
(dev_ino_hash): Adjust to reflect
type changes (unsigned int -> size_t) in hash.c.
Jim Meyering [Sat, 25 Oct 2003 15:31:02 +0000 (15:31 +0000)]
*** empty log message ***
Jim Meyering [Sat, 25 Oct 2003 15:29:56 +0000 (15:29 +0000)]
Update from gnulib.
Jim Meyering [Sat, 25 Oct 2003 15:28:42 +0000 (15:28 +0000)]
*** empty log message ***
Jim Meyering [Sat, 25 Oct 2003 15:28:09 +0000 (15:28 +0000)]
Update from gnulib, plus filter through cppi.
Jim Meyering [Sat, 25 Oct 2003 15:27:19 +0000 (15:27 +0000)]
Update from gnulib.
Jim Meyering [Sat, 25 Oct 2003 15:24:12 +0000 (15:24 +0000)]
*** empty log message ***
Jim Meyering [Sat, 25 Oct 2003 15:24:07 +0000 (15:24 +0000)]
Include <features.h> only if _LIBC.
[!_LIBC]: Define-away __THROW, __BEGIN_DECLS, __END_DECLS.