X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=src%2Ftypes.h;h=bfa0516466496d5faac81b0b245883174f4a00bb;hb=HEAD;hp=99b6d2c73fe163a37b99cd1067d9f9d2f5927cbc;hpb=a78687686f5b490d99fae21f9fa8aaa9a34f1812;p=cgds.git diff --git a/src/types.h b/src/types.h index 99b6d2c..bfa0516 100644 --- a/src/types.h +++ b/src/types.h @@ -8,6 +8,7 @@ #include #include +#include /** * @brief Signed integer type. @@ -24,28 +25,20 @@ typedef uint64_t UInt; */ typedef double Real; -/** - * @brief Boolean type (prefixed with C_ to avoid some conflicts). - */ -typedef enum { - C_FALSE = 0, ///< False is mapped to 0 - C_TRUE = 1 ///< True is mapped to 1 -} Bool; - /** * @brief Enumeration for the type of buffer or heap. */ typedef enum { - MIN_T = 0, ///< Minimum element first. - MAX_T = 1 ///< Maximum element first. + MIN_T = 0, ///< Minimum element first. + MAX_T = 1 ///< Maximum element first. } OrderType; /** * @brief Generic item-value type; 'value' may correspond e.g. to distance. */ typedef struct ItemValue { - void* item; ///< Pointer to an item of any type. - Real value; ///< Value associated with the item. + void* item; ///< Pointer to an item of any type. + Real value; ///< Value associated with the item. } ItemValue; #endif