diff options
-rw-r--r-- | convert-dtsv0-lexer.l | 2 | ||||
-rw-r--r-- | dtc.h | 1 | ||||
-rw-r--r-- | util.h | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/convert-dtsv0-lexer.l b/convert-dtsv0-lexer.l index 8902648..548e719 100644 --- a/convert-dtsv0-lexer.l +++ b/convert-dtsv0-lexer.l @@ -50,8 +50,6 @@ static int saw_hyphen; /* = 0 */ static unsigned long long last_val; static char *last_name; /* = NULL */ -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) - const struct { const char *pattern; int obase, width; @@ -66,7 +66,6 @@ typedef uint32_t cell_t; #define strneq(a, b, n) (strncmp((a), (b), (n)) == 0) #define ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) /* Data blobs */ enum markertype { @@ -24,6 +24,8 @@ * USA */ +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) + static inline void __attribute__((noreturn)) die(const char *str, ...) { va_list ap; |