X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2FChangeLog;h=52562580e3af8d73156fde8df01455cac784547f;hb=232b8d5dff5656b480c6dfe6294735e271477fd8;hp=72638148bc908197cc4570a4f10da5fb13f35ec5;hpb=c907565811f05a2365d1bd7eaa1c2b40b6e1d4cb;p=gnulib.git diff --git a/lib/ChangeLog b/lib/ChangeLog index 72638148b..52562580e 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,109 @@ +2002-11-22 Paul Eggert + + * quotearg.h: Allow multiple inclusion by surrounding with + "#ifndef QUOTEARG_H_". Include , for size_t, + so that we can be included first. + (PARAMS): Remove; we now assume C89 or later. All uses removed. + * quotearg.c: Include quotearg.h immediately after config.h. + No need to include stddef.h or sys/types.h any more. + Surround local include files with "", not "<>". + Assume HAVE_LIMITS_H unconditionally, as we assume C89. + Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX, + HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS. + (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC. + (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT. + (ISPRINT): Remove; no longer needed now that we assume C89. + + (clone_quoting_options, quotearg_buffer, quotearg_n_options): + Preserve errno. + + (quotearg_buffer_restyled, quotearg_n, quotearg_n_style, + quotearg_char): Use SIZE_MAX rather than + (size_t) -1 when we are talking about "infinity". + + (quotearg_buffer_restyled): Fix bug when quoting trigraphs. + +2002-11-22 Bruno Haible + + * safe-read.h: Assume C89. Add comments. + (safe_read): Change return type to size_t. + * safe-read.c (safe_read): Change return type to size_t. Handle byte + counts > SSIZE_MAX correctly. + * safe-write.h: New file. + * safe-write.c: New file. + * full-read.h: New file. + * full-read.c: New file. + * full-write.h: Assume C89. Add comments. + * full-write.c: Include safe-write.h. + (full_write): Rewritten to use safe_write. + Suggested by Jim Meyering and Paul Eggert. + +2002-11-21 Bruno Haible + + Remove case insensitive option matching. + * argmatch.h (argcasematch): Remove declaration. + (ARGCASEMATCH): Remove macro. + (__xargmatch_internal): Remove case_sensitive argument. + (XARGMATCH): Update. + (XARGCASEMATCH): Remove macro. + * argmatch.c (argmatch): Renamed from __argmatch_internal. Remove + case_sensitive argument. + (argcasematch): Remove function. + (__xargmatch_internal): Remove case_sensitive argument. + (main): Use XARGMATCH instead of XARGCASEMATCH. + + * xmalloc.c: Change compile-time error message. Add comment about + required autoconf version. + +2002-11-21 Jim Meyering + + * strdup.c (strdup): Tweak comment and initial #if/#include. + + Merge in changes from the coreutils. + + 2002-09-25 Paul Eggert + * fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include . + (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro. + (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than + int. Work more efficiently if X is the same width as uintmax_t. + Do not compare X to -1, to avoid bogus compiler warning. + (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast. + Don't assume that f_frsize and f_bsize are the same type. + + * mountlist.c: #undef MNT_IGNORE before defining it, to avoid warning + on FreeBSD. + + * makepath.c (make_path): Restore umask *before* creating the final + component. + (make_path): Minor reformatting. + + * xmalloc.c: Adjust to work with new autoconf macros, AC_FUNC_MALLOC + and AC_FUNC_REALLOC: test #ifndef HAVE_MALLOC/HAVE_REALLOC. + + * mountlist.h (ME_DUMMY): Don't count entries of type `auto' as dummy + ones. At least on GNU/Linux systems, `auto' means something else. + From Michael Stone. + +2002-11-20 Paul Eggert + + Merge argmatch cleanups from Bison. Assume C89. + + * argmatch.c: Include config.h here, not in argmatch.h. + Include stdlib.h, for EXIT_FAILURE. + Always include , since we assume C89. + (EXIT_FAILURE): Remove pre-C89 bug workaround. + * argmatch.h: Do not include or . + Include instead, since it's all we need for size_t. + (PARAMS): Remove. All uses removed. + (ARRAY_CARDINALITY): Do not bother to #undef. + (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg, + ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH): + Remove unnecessary parentheses. + (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH): + Insert necessary parentheses. + (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros. + (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT. + 2002-11-19 Bruno Haible * mbswidth.c: Include mbswidth.h right at the beginning.