summaryrefslogtreecommitdiffstats
path: root/disassembler/util.h
blob: 72dedf46b48a9961071f351ce8009668413fe0ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef BCM43xx_DASM_UTIL_H_
#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,
	  size_t size,
	  const char *description);


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_ */
bues.ch cgit interface