summaryrefslogtreecommitdiff
path: root/common_types.h
diff options
context:
space:
mode:
authorKevin Chabowski <der.pc222@googlemail.com>2010-07-28 23:03:16 +0200
committerKevin Chabowski <der.pc222@googlemail.com>2010-07-28 23:03:16 +0200
commit054a617a9375b835492368c3773315b09d3851ce (patch)
tree231d5e4a57e994e3cc3c0b005fea6fe2a4a9fcc9 /common_types.h
downloadAnother-mandelbrot-viewer-054a617a9375b835492368c3773315b09d3851ce.tar.gz
Another-mandelbrot-viewer-054a617a9375b835492368c3773315b09d3851ce.tar.bz2
Another-mandelbrot-viewer-054a617a9375b835492368c3773315b09d3851ce.zip
Initial commit for mandelbrot.
Diffstat (limited to 'common_types.h')
-rw-r--r--common_types.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/common_types.h b/common_types.h
new file mode 100644
index 0000000..12bd174
--- /dev/null
+++ b/common_types.h
@@ -0,0 +1,40 @@
+#ifndef _common_types_h_
+#define _common_types_h_
+
+/**
+ * @file common_types.h
+ *
+ * This header file contains some typedefs to make programming easier.
+ */
+
+typedef unsigned char uint_8; /**< Unsigned 8-bit variable.*/
+typedef unsigned short int uint_16; /**< Unsigned 16-bit variable.*/
+typedef unsigned int uint_32; /**< Unsigned 32-bit variable.*/
+typedef unsigned long long int uint_64; /**< Unsigned 64-bit variable.*/
+
+typedef char int_8; /**< Signed 8-bit variable.*/
+typedef short int int_16; /**< Signed 16-bit variable.*/
+typedef int int_32; /**< Signed 32-bit variable.*/
+typedef long long int int_64; /**< Signed 64-bit variable.*/
+
+#ifndef BOOL
+/**
+ * Macro to define a boolean type in C.
+ */
+#define BOOL uint_8
+#endif
+#ifndef FALSE
+/**
+ * Macro for the boolean value false.
+ */
+#define FALSE 0
+#endif
+#ifndef TRUE
+/**
+ * Macro for the boolean value true.
+ */
+#define TRUE 1
+
+#endif
+
+#endif