* libiberty.h (ARRAY_SIZE): New macro.

From-SVN: r35947
This commit is contained in:
Greg McGary 2000-08-24 20:28:15 +00:00 committed by Greg McGary
parent 7ec09bf79b
commit 672a59e0ad
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2000-08-24 Greg McGary <greg@mcgary.org>
* libiberty.h (ARRAY_SIZE): New macro.
2000-06-21 Alex Samuel <samuel@codesourcery.com>
* dyn-string.h (dyn_string_init, dyn_string_new,

View File

@ -200,6 +200,8 @@ extern int asprintf PARAMS ((char **, const char *, ...)) ATTRIBUTE_PRINTF_2;
extern int vasprintf PARAMS ((char **, const char *, va_list))
ATTRIBUTE_PRINTF(2,0);
#define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
#ifdef __cplusplus
}
#endif