lib/argmatch.c


Log

Author Commit Date CI Message
Bruno Haible 9fbb5dcb 2007-02-18T21:08:06 exit.h is replaced with stdlib.h.
Paul Eggert 0632e115 2006-09-13T22:38:14 * _fpending.c: Include <config.h> unconditionally, since we no longer worry about uses that don't define HAVE_CONFIG_H. * acl.c, alloca.c, argmatch.c, atexit.c, backupfile.c: * basename.c, c-stack.c, c-strtod.c, calloc.c, canon-host.c: * canonicalize.c, chdir-long.c, chdir-safer.c, chown.c: * cloexec.c, close-stream.c, closeout.c, creat-safer.c: * cycle-check.c, diacrit.c, dirchownmod.c, dirfd.c, dirname.c: * dup-safer.c, dup2.c, error.c, euidaccess.c, exclude.c: * exitfail.c, fchmodat.c, fchown-stub.c, fd-safer.c: * file-type.c, fileblocks.c, filemode.c, filenamecat.c: * fnmatch.c, fopen-safer.c, fprintftime.c, free.c, fsusage.c: * ftruncate.c, fts-cycle.c, fts.c, full-write.c, gai_strerror.c: * getcwd.c, getdate.y, getdomainname.c, getgroups.c: * gethostname.c, gethrxtime.c, getloadavg.c, getlogin_r.c: * getndelim2.c, getnline.c, getopt.c, getopt1.c, getpass.c: * gettime.c, gettimeofday.c, getugroups.c, getusershell.c: * glob.c, group-member.c, hard-locale.c, hash-pjw.c, hash.c: * human.c, idcache.c, inet_ntop.c, inet_pton.c, inttostr.c: * isdir.c, lchown.c, linebuffer.c, long-options.c, lstat.c: * malloc.c, md5.c, memcasecmp.c, memchr.c, memcmp.c, memcoll.c: * memcpy.c, memmove.c, memrchr.c, mkancesdirs.c, mkdir-p.c: * mkdir.c, mkdirat.c, mkstemp-safer.c, mkstemp.c, modechange.c: * mountlist.c, nanosleep.c, obstack.c, open-safer.c: * openat-die.c, openat.c, pagealign_alloc.c, physmem.c: * pipe-safer.c, posixtm.c, posixver.c, putenv.c, quote.c: * quotearg.c, raise.c, readtokens.c, readtokens0.c, readutmp.c: * realloc.c, regex.c, rename.c, rmdir.c, rpmatch.c, safe-read.c: * same.c, save-cwd.c, savedir.c, setenv.c, settime.c, sha1.c: * sig2str.c, snprintf.c, strdup.c, strerror.c, strftime.c: * stripslash.c, strndup.c, strnlen.c, strpbrk.c, strtod.c: * strtoimax.c, strtol.c, strverscmp.c, tempname.c, time_r.c: * timegm.c, tmpfile-safer.c, unlinkdir.c, userspec.c, utime.c: * utimecmp.c, utimens.c, version-etc-fsf.c, version-etc.c: * xalloc-die.c, xgetcwd.c, xgethostname.c, xmalloc.c: * xmemcoll.c, xnanosleep.c, xreadlink.c, xstrtod.c: * xstrtoimax.c, xstrtol.c, xstrtoumax.c, yesno.c: Likewise.
Paul Eggert 222b0486 2005-09-19T17:28:14 Use a consistent style for including <config.h>. * __fpending.c, acl.c, argmatch.c, argp-help.c, argp-parse.c, argp-pvh.c, backupfile.c, basename.c, c-stack.c, calloc.c, check-version.c, cloexec.c, closeout.c, copy-file.c, creat-safer.c, cycle-check.c, dirfd.c, dirname.c, dup-safer.c, dup2.c, euidaccess.c, exclude.c, exitfail.c, fatal-signal.c, fd-safer.c, file-type.c, fileblocks.c, filemode.c, filenamecat.c, findprog.c, fnmatch.c, fopen-safer.c, free.c, fsusage.c, ftruncate.c, full-write.c, fwriteerror.c, getaddrinfo.c, getcwd.c, getdelim.c, getline.c, getlogin_r.c, getndelim2.c, getnline.c, getopt1.c, getpass.c, group-member.c, hard-locale.c, hash-pjw.c, hash.c, human.c, idcache.c, inet_ntop.c, isdir.c, long-options.c, malloc.c, memcasecmp.c, memcmp.c, memcoll.c, memcpy.c, memmove.c, mkdir-p.c, modechange.c, mountlist.c, open-safer.c, physmem.c, pipe-safer.c, pipe.c, poll.c, posixver.c, progname.c, progreloc.c, putenv.c, quote.c, quotearg.c, readline.c, readlink.c, realloc.c, regex.c, rename.c, rmdir.c, rpmatch.c, safe-read.c, same.c, save-cwd.c, savedir.c, sig2str.c, strcspn.c, strerror.c, stripslash.c, strncasecmp.c, strndup.c, strnlen.c, strnlen1.c, strsep.c, strstr.c, strtod.c, strtoimax.c, strtol.c, strverscmp.c, tempname.c, time_r.c, userspec.c, utimecmp.c, version-etc-fsf.c, version-etc.c, wait-process.c, xalloc-die.c, xgetcwd.c, xmalloc.c, xmemcoll.c, xnanosleep.c, xreadlink.c, xsetenv.c, xstrndup.c, xstrtoimax.c, xstrtol.c, xstrtoumax.c, yesno.c: Standardize inclusion of config.h. * __fpending.h, dirfd.h, getdate.h, human.h, inttostr.h: Removed inclusion of config.h from header files. * inttostr.c: Adjusted in-tree users. * timespec.h: Remove superfluous warning to include config.h. * atexit.c, chdir-long.c chown.c, fchown-stub.c, getgroups.c, gettimeofday.c, lchown.c, lstat.c, mkdir.c, mkstemp.c, nanosleep.c, openat.c, raise.c, readtokens0.c, readutmp.c, unlinkdir.c: Guard inclusion of config.h with HAVE_CONFIG_H.
Paul Eggert 267a39ba 2005-05-14T06:03:57 *** empty log message ***
Jim Meyering 6d31dc52 2005-03-27T16:39:26 (argmatch): Clarify comment: null-terminated -> NULL-terminated.
Paul Eggert 917752ad 2004-10-04T20:17:39 Remove dependencies on unlocked-io.
Paul Eggert dd9099e7 2004-10-04T04:27:58 (enum backuptype): Rename none -> no_backups, simple -> simple_backups, numbered_existing -> numbered_existing_backups, numbered -> numbered_backups to avoid shadowing problems. All uses changed.
Paul Eggert a3dc3313 2004-08-06T23:04:38 Merge from coreutils.
Paul Eggert e8939084 2004-01-24T07:22:33 Exit-status fixes from coreutils.
Paul Eggert 1d31a1e7 2003-09-12T20:14:10 Use "exit.h" rather than rolling EXIT_FAILURE ourselves in each module.
Paul Eggert 14ab035d 2003-09-12T18:28:18 (getenv): Remove decl.
Paul Eggert cea0f17a 2003-03-10T07:31:50 (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
Bruno Haible c44a7e41 2002-11-21T20:15:39 Remove case insensitive option matching.
Bruno Haible c778cfa6 2002-11-21T15:02:25 Comment tweak.
Paul Eggert 807cacc0 2002-11-21T07:19:33 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.
Bruno Haible f9fa25dc 2002-11-05T21:45:29 Include gettext.h instead of <libintl.h> with #ifdefs.
Jim Meyering 92f1833a 2001-11-17T13:29:42 Include unlocked-io.h.
Jim Meyering bb880dfe 2001-10-11T15:52:17 (argmatch_invalid): Use quotearg_n_style (0, ... and quote_n (1, ... to avoid clobbering a buffer.
Jim Meyering cb9041da 2001-05-24T06:12:00 Include "quote.h". (argmatch_invalid): Remove explicit `' quotes. Instead, use the quote function. Reported by Göran Uddeborg.
Jim Meyering 89f2b489 2000-08-07T15:48:18 back out Copyright date changes for files with no changes year
Jim Meyering d349992d 2000-07-09T07:22:43 update copyright date
Jim Meyering 5c363a56 1999-08-10T11:00:12 (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.
Jim Meyering d853588f 1999-01-25T14:08:04 (program_name): Remove dcl. Include error.h. (argmatch_invalid): Use error rather than fprintf.
Jim Meyering 1b622d65 1999-01-16T17:18:01 (ARGMATCH_DIE_DECL): Use it.
Jim Meyering 0bee47ab 1999-01-16T15:21:52 s/argmatch_exit_failure/argmatch_die/
Jim Meyering d614f5fa 1999-01-16T15:17:48 (EXIT_FAILURE): Define. (ARGMATCH_DIE): Use it.
Jim Meyering d904f22e 1999-01-16T15:06:41 (ARGMATCH_DIE): Provide default. (__xargmatch_internal): New function. s/rogram_name/program_name. From Akim Demaille.
Jim Meyering 5318db51 1999-01-11T03:10:19 (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.
Jim Meyering 2c6d91f6 1999-01-02T20:35:06 (argmatch_invalid): Remove double quotes from the offending quoted argument before using it in explanatory diagnostic. Use a single fprintf stmt.
Jim Meyering c2acb5f2 1999-01-02T18:32:50 (__xargmatch_internal): Remove now-unused function. (argmatch_to_argument): Add `const' attribute to first parameter.
Jim Meyering 38cd3179 1999-01-02T05:30:07 Remove definition of setlocale. Remove definitions of bindtextdomain and textdomain.
Jim Meyering 901de69f 1998-12-31T18:07:23 (strncasecmp): Move to a separate file. Add curly braces around some one-stmt-but-multiline blocks.
Jim Meyering ccb03e92 1998-12-31T16:19:31 remove trailing blanks
Jim Meyering bcd35974 1998-12-31T16:18:13 lots of changes from Akim Demaille.
Jim Meyering 17c2b29a 1997-12-29T12:02:43 (invalid_arg): Use a single fprintf and whole format statements to ease translation. Convert from K&R to ANSI function dcls.
Jim Meyering 56a7a671 1997-05-27T09:39:25 Update from FSF via patch-2.2.93.
Jim Meyering 0d2b8572 1996-09-28T18:08:03 .
Jim Meyering 6d8337bf 1996-07-15T03:36:16 update FSF address in copyright
Jim Meyering d75cc45b 1995-12-22T05:17:31 (argmatch): Add const attribute to parameters. (invalid_arg): Add const attribute to parameters.
Jim Meyering 3af578d2 1995-05-13T12:55:49 (argmatch): Include sys/types.h and declare length argument with type size_t.
Jim Meyering d87c3946 1992-10-31T20:42:48 Initial revision