projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include "xalloc.h".
[gnulib.git]
/
lib
/
argmatch.h
diff --git
a/lib/argmatch.h
b/lib/argmatch.h
index
4b65ca4
..
deb908f
100644
(file)
--- a/
lib/argmatch.h
+++ b/
lib/argmatch.h
@@
-49,15
+49,10
@@
int argmatch (char const *arg, char const *const *arglist,
char const *vallist, size_t valsize);
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 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)'. */
/* 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 __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. */
/* 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), \
((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. */
/* Convert a value into a corresponding argument. */