* gjavah.c (cxx_keyword_subst): Use ARRAY_SIZE.

From-SVN: r35988
This commit is contained in:
Greg McGary 2000-08-25 19:07:04 +00:00 committed by Greg McGary
parent 3144827180
commit 945745458e
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2000-08-25 Greg McGary <greg@mcgary.org>
* gjavah.c (cxx_keyword_subst): Use ARRAY_SIZE.
2000-08-24 Greg McGary <greg@mcgary.org>
* lang.c (lang_decode_option): Use ARRAY_SIZE.

View File

@ -427,7 +427,7 @@ cxx_keyword_subst (str, length)
const unsigned char *str;
int length;
{
int last = sizeof (cxx_keywords) / sizeof (const char *);
int last = ARRAY_SIZE (cxx_keywords);
int first = 0;
int mid = (last + first) / 2;
int old = -1;