quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
[gnulib.git] / lib / ChangeLog
index c196a1b..5256258 100644 (file)
@@ -1,5 +1,57 @@
+2002-11-22  Paul Eggert  <eggert@twinsun.com>
+
+       * quotearg.h: Allow multiple inclusion by surrounding with
+       "#ifndef QUOTEARG_H_".  Include <stddef.h>, 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  <bruno@clisp.org>
+
+       * 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  <bruno@clisp.org>
 
+       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.