dasm: Move some definitions around.
[b43-tools.git] / disassembler / util.h
index 843d34708be84c89ba51a2b9fb76f42d87c20926..72dedf46b48a9961071f351ce8009668413fe0ba 100644 (file)
@@ -2,6 +2,10 @@
 #define BCM43xx_DASM_UTIL_H_
 
 #include <stdlib.h>
+#include <stdint.h>
+
+
+#define ARRAY_SIZE(x)  (sizeof(x)/sizeof(x[0]))
 
 
 void dump(const char *data,
@@ -13,4 +17,8 @@ void * xmalloc(size_t size);
 char * xstrdup(const char *str);
 void * xrealloc(void *in, size_t size);
 
+typedef _Bool bool;
+
+typedef uint32_t be32_t;
+
 #endif /* BCM43xx_DASM_UTIL_H_ */