summaryrefslogtreecommitdiff
path: root/lib/argmatch.c
AgeCommit message (Collapse)Author
2005-05-14Update FSF postal mail address.Jim Meyering
2005-03-27(argmatch): Clarify comment: null-terminated -> NULL-terminated.Jim Meyering
2004-10-04Sync from gnulib, to remove dependencies of other modules on unlocked-io.Paul Eggert
2004-09-13(enum backuptype): Rename none -> no_backups,Paul Eggert
simple -> simple_backups, numbered_existing -> numbered_existing_backups, numbered -> numbered_backups to avoid shadowing problems. All uses changed.
2004-08-02(argmatch, __xargmatch_internal, argmatch_invalid):Paul Eggert
Use ptrdiff_t, not int, when counting arguments, to allow more than INT_MAX arguments. Use bool when appropriate.
2004-01-21(ARGMATCH_DIE) [! defined ARGMATCH_DIE]:Jim Meyering
Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
2003-09-13Update from gnulib.Jim Meyering
2003-09-13Include exit.h.Jim Meyering
(EXIT_FAILURE): Remove; now done by exit.h
2003-03-11(EXIT_FAILURE): Define if the system doesn't.Jim Meyering
Reported by Bruce Becker; see: http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
2002-11-22Include gettext.h instead of <locale.h> and <libintl.h>.Jim Meyering
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-21Merge argmatch cleanups from Bison. Assume C89.Jim Meyering
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.
2001-11-17Include unlocked-io.h.Jim Meyering
2001-10-11(argmatch_invalid): Use quotearg_n_style (0, ...Jim Meyering
and quote_n (1, ... to avoid clobbering a buffer.
2001-05-24Include "quote.h".Jim Meyering
(argmatch_invalid): Remove explicit `' quotes. Instead, use the quote function. Reported by Göran Uddeborg.
2000-08-07back out Copyright date changes for files with no changes yearJim Meyering
2000-07-09update copyright dateJim Meyering
1999-08-10(ARGMATCH_QUOTING_STYLE):Jim Meyering
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-01-25(program_name): Remove dcl.Jim Meyering
Include error.h. (argmatch_invalid): Use error rather than fprintf.
1999-01-16(ARGMATCH_DIE_DECL): Use it.Jim Meyering
1999-01-16s/argmatch_exit_failure/argmatch_die/Jim Meyering
1999-01-16(EXIT_FAILURE): Define.Jim Meyering
(ARGMATCH_DIE): Use it.
1999-01-16(ARGMATCH_DIE): Provide default.Jim Meyering
(__xargmatch_internal): New function. s/rogram_name/program_name. From Akim Demaille.
1999-01-11(ARGMATCH_QUOTING_STYLE): Change from c_quoting_style to escape_quoting_style.Jim Meyering
(argmatch_invalid): Now that the quoted quantity is no longer double quoted, remove the code that removed leading and trailing double quotes.
1999-01-02(argmatch_invalid): Remove double quotes from theJim Meyering
offending quoted argument before using it in explanatory diagnostic. Use a single fprintf stmt.
1999-01-02(__xargmatch_internal): Remove now-unused function.Jim Meyering
(argmatch_to_argument): Add `const' attribute to first parameter.
1999-01-02Remove definition of setlocale.Jim Meyering
Remove definitions of bindtextdomain and textdomain.
1998-12-31(strncasecmp): Move to a separate file.Jim Meyering
Add curly braces around some one-stmt-but-multiline blocks.
1998-12-31remove trailing blanksJim Meyering
1998-12-31lots of changes from Akim Demaille.Jim Meyering
1997-12-29(invalid_arg): Use a single fprintf and wholeJim Meyering
format statements to ease translation. Convert from K&R to ANSI function dcls.
1997-05-27Update from FSF via patch-2.2.93.Jim Meyering
1996-09-28.Jim Meyering
1996-07-15update FSF address in copyrightJim Meyering
1995-12-22(argmatch): Add const attribute to parameters.Jim Meyering
(invalid_arg): Add const attribute to parameters.
1995-05-13(argmatch): Include sys/types.h and declare length argument with type size_t.Jim Meyering
1992-10-31Initial revisionJim Meyering