fwcutter/make: Avoid _DEFAULT_SOURCE warning
[b43-tools.git] / disassembler / util.h
1 #ifndef BCM43xx_DASM_UTIL_H_
2 #define BCM43xx_DASM_UTIL_H_
3
4 #include <stdlib.h>
5 #include <stdint.h>
6
7
8 #define ARRAY_SIZE(x)   (sizeof(x)/sizeof(x[0]))
9
10
11 void dump(const char *data,
12           size_t size,
13           const char *description);
14
15
16 void * xmalloc(size_t size);
17 char * xstrdup(const char *str);
18 void * xrealloc(void *in, size_t size);
19
20 typedef _Bool bool;
21
22 typedef uint32_t be32_t;
23
24 #endif /* BCM43xx_DASM_UTIL_H_ */