projects
/
cgds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some fixes + improvements (Vector) + code reformatting
[cgds.git]
/
src
/
types.h
diff --git
a/src/types.h
b/src/types.h
index
99b6d2c
..
bfa0516
100644
(file)
--- a/
src/types.h
+++ b/
src/types.h
@@
-8,6
+8,7
@@
#include <stdlib.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdint.h>
+#include <stdbool.h>
/**
* @brief Signed integer type.
/**
* @brief Signed integer type.
@@
-24,28
+25,20
@@
typedef uint64_t UInt;
*/
typedef double Real;
*/
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 {
/**
* @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 {
} 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
} ItemValue;
#endif