summaryrefslogtreecommitdiff
path: root/a-tools.h
diff options
context:
space:
mode:
Diffstat (limited to 'a-tools.h')
-rw-r--r--a-tools.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/a-tools.h b/a-tools.h
new file mode 100644
index 0000000..4a00eda
--- /dev/null
+++ b/a-tools.h
@@ -0,0 +1,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 */