Paul Eggert
2d0c5eefd0
Sync from gnulib.
2005-09-22 06:05:39 +00:00
Jim Meyering
116e6fb244
Update FSF postal mail address.
2005-05-14 07:58:06 +00:00
Jim Meyering
3cb5dca5ce
(argmatch): Clarify comment: null-terminated -> NULL-terminated.
2005-03-27 16:40:02 +00:00
Paul Eggert
1cc46fbf53
Sync from gnulib, to remove dependencies of other modules on unlocked-io.
2004-10-04 20:18:43 +00:00
Paul Eggert
e55016b54d
(enum backuptype): Rename none -> no_backups,
...
simple -> simple_backups, numbered_existing ->
numbered_existing_backups, numbered -> numbered_backups
to avoid shadowing problems. All uses changed.
2004-09-13 12:10:30 +00:00
Paul Eggert
3ed11627ff
(argmatch, __xargmatch_internal, argmatch_invalid):
...
Use ptrdiff_t, not int, when counting arguments, to allow more
than INT_MAX arguments.
Use bool when appropriate.
2004-08-02 17:24:00 +00:00
Jim Meyering
dfc3aad38f
(ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
...
Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
2004-01-21 22:34:58 +00:00
Jim Meyering
6335f4404f
Update from gnulib.
2003-09-13 22:12:21 +00:00
Jim Meyering
3da69c62ed
Include exit.h.
...
(EXIT_FAILURE): Remove; now done by exit.h
2003-09-13 10:19:33 +00:00
Jim Meyering
c7cb614727
(EXIT_FAILURE): Define if the system doesn't.
...
Reported by Bruce Becker; see:
http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
2003-03-11 10:07:17 +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
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
3eb2a22131
Include unlocked-io.h.
2001-11-17 13:29:42 +00:00
Jim Meyering
b729ec75ca
(argmatch_invalid): Use quotearg_n_style (0, ...
...
and quote_n (1, ... to avoid clobbering a buffer.
2001-10-11 15:52:17 +00:00
Jim Meyering
908a517100
Include "quote.h".
...
(argmatch_invalid): Remove explicit `' quotes. Instead, use the
quote function. Reported by Gran Uddeborg.
2001-05-24 06:12:00 +00:00
Jim Meyering
51b6b653a2
back out Copyright date changes for files with no changes year
2000-08-07 15:48:18 +00:00
Jim Meyering
fde850f7ad
update copyright date
2000-07-09 07:22:43 +00:00
Jim Meyering
843d60096e
(ARGMATCH_QUOTING_STYLE):
...
Change from escape_quoting_style to locale_quoting_style.
(argmatch_invalid): Use new quotearg_style primitive for simplicity.
Also, use ARGMATCH_QUOTING_STYLE to quote, instead of quoting ourselves.
1999-08-10 11:00:12 +00:00
Jim Meyering
2b9e4c6914
(program_name): Remove dcl.
...
Include error.h.
(argmatch_invalid): Use error rather than fprintf.
1999-01-25 14:08:04 +00:00
Jim Meyering
7316f85aaa
(ARGMATCH_DIE_DECL): Use it.
1999-01-16 17:18:01 +00:00
Jim Meyering
c94e186b91
s/argmatch_exit_failure/argmatch_die/
1999-01-16 15:21:52 +00:00
Jim Meyering
e42efa6866
(EXIT_FAILURE): Define.
...
(ARGMATCH_DIE): Use it.
1999-01-16 15:17:48 +00:00
Jim Meyering
f22e54a579
(ARGMATCH_DIE): Provide default.
...
(__xargmatch_internal): New function.
s/rogram_name/program_name.
From Akim Demaille.
1999-01-16 15:06:41 +00:00
Jim Meyering
db0dadb263
(ARGMATCH_QUOTING_STYLE): Change from c_quoting_style to escape_quoting_style.
...
(argmatch_invalid): Now that the quoted quantity is no longer double
quoted, remove the code that removed leading and trailing double quotes.
1999-01-11 03:10:19 +00:00
Jim Meyering
7b36cfca74
(argmatch_invalid): Remove double quotes from the
...
offending quoted argument before using it in explanatory diagnostic.
Use a single fprintf stmt.
1999-01-02 20:35:06 +00:00
Jim Meyering
fa7427c2ea
(__xargmatch_internal): Remove now-unused function.
...
(argmatch_to_argument): Add `const' attribute to first parameter.
1999-01-02 18:32:50 +00:00
Jim Meyering
b311b41561
Remove definition of setlocale.
...
Remove definitions of bindtextdomain and textdomain.
1999-01-02 05:30:07 +00:00
Jim Meyering
8782f7a817
(strncasecmp): Move to a separate file.
...
Add curly braces around some one-stmt-but-multiline blocks.
1998-12-31 18:07:23 +00:00
Jim Meyering
44538bbbd8
remove trailing blanks
1998-12-31 16:19:31 +00:00
Jim Meyering
392902344a
lots of changes from Akim Demaille.
1998-12-31 16:18:13 +00:00
Jim Meyering
f7d4fc0e38
(invalid_arg): Use a single fprintf and whole
...
format statements to ease translation.
Convert from K&R to ANSI function dcls.
1997-12-29 12:02:43 +00:00
Jim Meyering
168eb7758e
Update from FSF via patch-2.2.93.
1997-05-27 09:39:25 +00:00
Jim Meyering
59b9296742
.
1996-09-28 18:09:13 +00:00
Jim Meyering
e8b07e3796
update FSF address in copyright
1996-07-15 03:36:16 +00:00
Jim Meyering
8cff7ef2b9
(argmatch): Add const attribute to parameters.
...
(invalid_arg): Add const attribute to parameters.
1995-12-22 05:17:31 +00:00
Jim Meyering
e5be6fdf8a
(argmatch): Include sys/types.h and declare length argument with type size_t.
1995-05-13 12:55:49 +00:00
Jim Meyering
14fd34b788
Initial revision
1992-10-31 20:42:48 +00:00