38 |
38 |
39 /** Major UCX version as integer constant. */ |
39 /** Major UCX version as integer constant. */ |
40 #define UCX_VERSION_MAJOR 0 |
40 #define UCX_VERSION_MAJOR 0 |
41 |
41 |
42 /** Minor UCX version as integer constant. */ |
42 /** Minor UCX version as integer constant. */ |
43 #define UCX_VERSION_MINOR 11 |
43 #define UCX_VERSION_MINOR 12 |
44 |
44 |
45 #include <stdlib.h> |
45 #include <stdlib.h> |
|
46 #include <stdint.h> |
46 |
47 |
47 #ifdef _WIN32 |
48 #ifdef _WIN32 |
48 #if !(defined __ssize_t_defined || defined _SSIZE_T_) |
49 #if !(defined __ssize_t_defined || defined _SSIZE_T_) |
49 #include <BaseTsd.h> |
50 #include <BaseTsd.h> |
50 typedef SSIZE_T ssize_t; |
51 typedef SSIZE_T ssize_t; |
87 * <code>NULL</code>, it shall be ignored. |
88 * <code>NULL</code>, it shall be ignored. |
88 */ |
89 */ |
89 typedef int(*cmp_func)(void*,void*,void*); |
90 typedef int(*cmp_func)(void*,void*,void*); |
90 |
91 |
91 /** |
92 /** |
|
93 * Function pointer to a distance function. |
|
94 * |
|
95 * The distance function shall take three arguments: the two values for which |
|
96 * the distance shall be computed and optional additional data. |
|
97 * The function shall then return the signed distance as integer value. |
|
98 */ |
|
99 typedef intmax_t(*distance_func)(void*,void*,void*); |
|
100 |
|
101 /** |
92 * Function pointer to a copy function. |
102 * Function pointer to a copy function. |
93 * |
103 * |
94 * The copy function shall create a copy of the first argument and may use |
104 * The copy function shall create a copy of the first argument and may use |
95 * additional data provided by the second argument. If the second argument is |
105 * additional data provided by the second argument. If the second argument is |
96 * <code>NULL</code>, it shall be ignored. |
106 * <code>NULL</code>, it shall be ignored. |