From: Paul Eggert Date: Thu, 21 Nov 2002 07:20:15 +0000 (+0000) Subject: Merge argmatch cleanups from Bison. Assume C89. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77896715f933bbd5484f3af9a6876da9e7ed481b;p=pspp Merge argmatch cleanups from Bison. Assume C89. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 72638148bc..93504bf2de 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,23 @@ +2002-11-20 Paul Eggert + + Merge argmatch cleanups from Bison. Assume C89. + + * argmatch.c: Include config.h here, not in argmatch.h. + Include stdlib.h, for EXIT_FAILURE. + Always include , since we assume C89. + (EXIT_FAILURE): Remove pre-C89 bug workaround. + * argmatch.h: Do not include or . + Include 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. + 2002-11-19 Bruno Haible * mbswidth.c: Include mbswidth.h right at the beginning.