diff options
author | Jim Meyering <jim@meyering.net> | 2002-11-22 11:04:01 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-11-22 11:04:01 +0000 |
commit | 3858ed5bad6b1a9a06cedae983de9b78631d455d (patch) | |
tree | 1dc71d7a5a4853f5b46b03f6291cb80106f313a3 /lib | |
parent | 13fb4290db2ddb1e188646d4afbf8b892c683c77 (diff) | |
download | coreutils-3858ed5bad6b1a9a06cedae983de9b78631d455d.tar.xz |
Remove case insensitive option matching.
(argcasematch): Remove declaration.
(ARGCASEMATCH): Remove macro.
(__xargmatch_internal): Remove case_sensitive argument.
(XARGMATCH): Update.
(XARGCASEMATCH): Remove macro.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/argmatch.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/lib/argmatch.h b/lib/argmatch.h index 5595ee436..deb908fb9 100644 --- a/lib/argmatch.h +++ b/lib/argmatch.h @@ -30,7 +30,7 @@ /* Assert there are as many real arguments as there are values (argument list ends with a NULL guard). ARGMATCH_VERIFY is - preferred, since it is guaranteed to be chedk at compile-time. + preferred, since it is guaranteed to be checked at compile-time. ARGMATCH_ASSERT is for backward compatibility only. */ # define ARGMATCH_VERIFY(Arglist, Vallist) \ @@ -49,15 +49,10 @@ int argmatch (char const *arg, char const *const *arglist, char const *vallist, size_t valsize); -int argcasematch (char const *arg, char const *const *arglist, - char const *vallist, size_t valsize); # define ARGMATCH(Arg, Arglist, Vallist) \ argmatch (Arg, Arglist, (char const *) (Vallist), sizeof *(Vallist)) -# define ARGCASEMATCH(Arg, Arglist, Vallist) \ - argcasematch (Arg, Arglist, (char const *) (Vallist), sizeof *(Vallist)) - /* xargmatch calls this function when it fails. This function should not return. By default, this is a function that calls ARGMATCH_DIE which in turn defaults to `exit (EXIT_FAILURE)'. */ @@ -91,7 +86,7 @@ void argmatch_valid (char const *const *arglist, int __xargmatch_internal (char const *context, char const *arg, char const *const *arglist, char const *vallist, size_t valsize, - int case_sensitive, argmatch_exit_fn exit_fn); + argmatch_exit_fn exit_fn); /* Programmer friendly interface to __xargmatch_internal. */ @@ -99,13 +94,7 @@ int __xargmatch_internal (char const *context, ((Vallist) [__xargmatch_internal (Context, Arg, Arglist, \ (char const *) (Vallist), \ sizeof *(Vallist), \ - 1, argmatch_die)]) - -# define XARGCASEMATCH(Context, Arg, Arglist, Vallist) \ - ((Vallist) [__xargmatch_internal (Context, Arg, Arglist, \ - (char const *) (Vallist), \ - sizeof *(Vallist), \ - 0, argmatch_die)]) + argmatch_die)]) /* Convert a value into a corresponding argument. */ |