summaryrefslogtreecommitdiff
path: root/a-tools.h
blob: 4a00eda31f2b1197439e3a47a9d35f0d2d72dcf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * a-tools.h:
 */


#ifndef __A_TOOLS_H
#define __A_TOOLS_H

#define KB(x) x * 1024
#define MB(x) KB(x) * 1024

#define DELETE(x) if (x != NULL) { delete x; x = NULL; }

typedef unsigned char uchar;

typedef struct abuffer {
        uchar *data;
        int length;
        int offset;
} abuffer;

#endif /* __A_TOOLS_H */