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 */