library: added MAXTABLE macro to proc/procps-private.h

This macro should help the following patch be a little
less prolix. Besides, this private header could/should
do just a little more to help with our newlib efforts.

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2020-08-10 00:00:00 -05:00 committed by Craig Small
parent bb9e74c00b
commit c865b06c30

View File

@ -24,5 +24,6 @@
#define STRINGIFY_ARG(a) #a
#define STRINGIFY(a) STRINGIFY_ARG(a)
#define MAXTABLE(t) (int)(sizeof(t) / sizeof(t[0]))
#endif