Merge argmatch cleanups from Bison. Assume C89.
authorJim Meyering <jim@meyering.net>
Thu, 21 Nov 2002 09:35:51 +0000 (09:35 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 21 Nov 2002 09:35:51 +0000 (09:35 +0000)
commitaca318c51e10b67493d1456bc244f7cf91e87ec7
tree24a9b823d8e4d543871846c0310465da63dd81f0
parent3aed4c550503a0565591a723580081f5111c0f6c
Merge argmatch cleanups from Bison.  Assume C89.

Do not include <config.h> or <sys/types.h>.
Include <stddef.h> instead, since it's all we need for size_t.
(PARAMS): Remove.  All uses removed.
(ARRAY_CARDINALITY): Do not bother to #undef.
(ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
Remove unnecessary parentheses.
(ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
Insert necessary parentheses.
(ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
(ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
lib/argmatch.h