1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-06-08 10:46:56 +02:00
Commit Graph

3053 Commits

Author SHA1 Message Date
Jim Meyering cc7aeee22c *** empty log message *** 2002-11-23 15:38:47 +00:00
Jim Meyering 83415a7c5f Include gettext.h instead of <libintl.h>. 2002-11-23 15:38:42 +00:00
Jim Meyering ac63441825 *** empty log message *** 2002-11-23 15:05:52 +00:00
Jim Meyering ebd76c09f4 From gnulib, by Bruno Haible
Include gettext.h instead of <libintl.h>.
2002-11-23 15:05:32 +00:00
Jim Meyering f1b9a8744c From gnulib, by Bruno Haible
* closeout.c: Include gettext.h instead of <libintl.h>.
2002-11-23 15:03:40 +00:00
Jim Meyering 98e5192525 . 2002-11-23 15:00:17 +00:00
Jim Meyering ba986c2928 Update from gnulib. 2002-11-23 14:59:39 +00:00
Jim Meyering 34c25ed945 *** empty log message *** 2002-11-23 07:10:25 +00:00
Jim Meyering 08228013af 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.
2002-11-23 07:10:19 +00:00
Jim Meyering a328e26342 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-23 07:08:50 +00:00
Jim Meyering 38ba9564d1 *** empty log message *** 2002-11-22 13:23:55 +00:00
Jim Meyering 17bbb9bcb1 From gnulib:
Don't include <sys/types.h>.  It's unnecessary.
2002-11-22 13:23:52 +00:00
Jim Meyering d81d040dea fix typo in comment 2002-11-22 11:13:32 +00:00
Jim Meyering 8aa90d8488 *** empty log message *** 2002-11-22 11:07:31 +00:00
Jim Meyering d60ce1ccab *** empty log message *** 2002-11-22 11:04:05 +00:00
Jim Meyering 3858ed5bad Remove case insensitive option matching.
(argcasematch): Remove declaration.
(ARGCASEMATCH): Remove macro.
(__xargmatch_internal): Remove case_sensitive argument.
(XARGMATCH): Update.
(XARGCASEMATCH): Remove macro.
2002-11-22 11:04:01 +00:00
Jim Meyering 13fb4290db Include gettext.h instead of <locale.h> and <libintl.h>.
Remove case insensitive option matching.
  (argmatch): Renamed from __argmatch_internal. Remove
  case_sensitive argument.
  (argcasematch): Remove function.
  (__xargmatch_internal): Remove case_sensitive argument.
  (main): Use XARGMATCH instead of XARGCASEMATCH.
2002-11-22 11:03:26 +00:00
Jim Meyering 4c9c50bf72 *** empty log message *** 2002-11-22 10:28:50 +00:00
Jim Meyering 70641e502d Change compile-time error message. Add comment about
required autoconf version.

Include gettext.h instead of <libintl.h>.
(textdomain): Remove definition.
2002-11-22 10:28:44 +00:00
Jim Meyering d09524c338 *** empty log message *** 2002-11-21 13:31:07 +00:00
Jim Meyering cae292f583 (strdup): Merge in changes from gnulib; mainly to
use memcpy rather than strcpy.
2002-11-21 13:31:03 +00:00
Jim Meyering 1a1ce790d8 *** empty log message *** 2002-11-21 13:25:31 +00:00
Jim Meyering c8a8d77816 Update from gnulib. 2002-11-21 13:25:22 +00:00
Jim Meyering 944a426ade *** empty log message *** 2002-11-21 13:18:07 +00:00
Jim Meyering 44ad4f8ed4 (str2signum): Use unsigned, not size_t. 2002-11-21 13:17:47 +00:00
Jim Meyering b38b96b80c *** empty log message *** 2002-11-21 13:16:49 +00:00
Jim Meyering 8281103ea4 Use "'s when including quotearg.h and xalloc.h, not the <...>' notation.
Include <errno.h> and declare errno if necessary.
2002-11-21 13:16:04 +00:00
Jim Meyering dcb7d1cee9 *** empty log message *** 2002-11-21 10:22:10 +00:00
Jim Meyering cb83b79ab2 *** empty log message *** 2002-11-21 10:21:01 +00:00
Jim Meyering 91d98d2baf update copyright date 2002-11-21 09:39:58 +00:00
Jim Meyering 96a2f00434 *** empty log message *** 2002-11-21 09:36:25 +00:00
Jim Meyering aca318c51e Merge argmatch cleanups from Bison. Assume C89.
Do not include <config.h> or <sys/types.h>.
Include <stddef.h> 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-21 09:35:51 +00:00
Jim Meyering 3aed4c5505 Merge argmatch cleanups from Bison. Assume C89.
Include config.h here, not in argmatch.h.
Include stdlib.h, for EXIT_FAILURE.
Always include <string.h>, since we assume C89.
(EXIT_FAILURE): Remove pre-C89 bug workaround.
2002-11-21 09:24:43 +00:00
Jim Meyering 501358c106 *** empty log message *** 2002-11-21 08:48:08 +00:00
Jim Meyering 449872c53a (quotearg_buffer_restyled): If mbrtowc returns
`(size_t) -1' (at which point it would also set errno to EILSEQ),
then restore errno to its previous value.
Reported by Phillip Jones via Tim Waugh as
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=76334.
2002-11-21 08:47:44 +00:00
Jim Meyering 9e96a0b09c sort 2002-11-21 08:46:39 +00:00
Jim Meyering c411cd6b01 *** empty log message *** 2002-11-21 08:45:10 +00:00
Jim Meyering 57263e2a95 Update from gnulib. 2002-11-21 08:45:05 +00:00
Jim Meyering 46d38d7c12 *** empty log message *** 2002-11-21 08:35:24 +00:00
Jim Meyering 6bc244f431 *** empty log message *** 2002-11-21 08:32:28 +00:00
Jim Meyering abd9a99711 *** empty log message *** 2002-11-19 08:05:34 +00:00
Jim Meyering 66943316b4 Avoid a link-time failure on some Linux systems.
(STATIC): Define to be empty (_LIBC) or `static' (otherwise).
(__mon_yday): Declare with the STATIC attribute.
(__mktime_internal): Likewise.
Based on a report from Greg Schafer.
2002-11-19 08:05:29 +00:00
Jim Meyering d421906870 . 2002-11-15 08:36:57 +00:00
Jim Meyering fcb6c411f0 *** empty log message *** 2002-11-14 14:38:23 +00:00
Jim Meyering f9362b8897 Don't include libintl.h, and don't define `_' -- they're not used. 2002-11-14 14:38:03 +00:00
Jim Meyering 99ad3e326a . 2002-11-10 11:12:13 +00:00
Jim Meyering 34ed452d0a Use a return stmt. This isn't Perl. 2002-11-10 09:51:37 +00:00
Jim Meyering a0a7aef8bd Duh. add missing semicolon
Include unistd.h.
2002-11-10 09:50:59 +00:00
Jim Meyering bd03362ebb *** empty log message *** 2002-11-10 09:44:05 +00:00
Jim Meyering bb1c17a762 . 2002-11-09 22:01:56 +00:00