From 054a617a9375b835492368c3773315b09d3851ce Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Wed, 28 Jul 2010 23:03:16 +0200 Subject: Initial commit for mandelbrot. --- common_types.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 common_types.h (limited to 'common_types.h') 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 -- cgit v1.2.3-54-g00ecf