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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user