Everything: Update lots of code to use B_COUNT_OF macro

* Likely not everything, but the obvious uses of B_COUNT_OF
This commit is contained in:
Alexander von Gluck IV
2014-11-09 14:52:19 -06:00
parent f2b20f8804
commit 57bc65034a
35 changed files with 56 additions and 116 deletions
@@ -24,10 +24,6 @@
#define ENABLE_DEBUG_TRACE // if defined, turns on debug output to syslog
#define ARRAY_SIZE(a) (int(sizeof(a) / sizeof(a[0]))) // get number of elements in an array
struct Benaphore {
sem_id sem;
int32 count;
@@ -24,8 +24,6 @@
#define ENABLE_DEBUG_TRACE // if defined, turns on debug output to syslog
#define ARRAY_SIZE(a) (int(sizeof(a) / sizeof(a[0]))) // get number of elements in an array
struct Benaphore {
sem_id sem;
int32 count;
@@ -22,8 +22,6 @@
#define ENABLE_DEBUG_TRACE // if defined, turns on debug output to syslog
#define ARRAY_SIZE(a) (int(sizeof(a) / sizeof(a[0]))) // get number of elements in an array
struct Benaphore {
sem_id sem;
@@ -23,8 +23,6 @@
#define ENABLE_DEBUG_TRACE // if defined, turns on debug output to syslog
#define NUM_ELEMENTS(a) ((int)(sizeof(a) / sizeof(a[0]))) // for computing number of elements in an array
struct Benaphore {
sem_id sem;
int32 count;