40 |
40 |
41 #ifdef __cplusplus |
41 #ifdef __cplusplus |
42 extern "C" { |
42 extern "C" { |
43 #endif |
43 #endif |
44 |
44 |
|
45 #ifndef CX_COMPARE_FUNC_DEFINED |
|
46 #define CX_COMPARE_FUNC_DEFINED |
|
47 /** |
|
48 * A comparator function comparing two collection elements. |
|
49 */ |
|
50 typedef int(*cx_compare_func)( |
|
51 void const *left, |
|
52 void const *right |
|
53 ); |
|
54 #endif // CX_COMPARE_FUNC_DEFINED |
|
55 |
45 /** |
56 /** |
46 * Compares two integers of type int. |
57 * Compares two integers of type int. |
47 * |
58 * |
48 * @param i1 pointer to integer one |
59 * @param i1 pointer to integer one |
49 * @param i2 pointer to integer two |
60 * @param i2 pointer to integer two |