src/cx/hash_key.h

changeset 1448
0f0fe7311b76
parent 1426
3a89b31f0724
equal deleted inserted replaced
1447:aaf85b3e9601 1448:0f0fe7311b76
225 #endif // __cplusplus 225 #endif // __cplusplus
226 226
227 /** 227 /**
228 * Compare function for hash keys. 228 * Compare function for hash keys.
229 * 229 *
230 * @param left the first key 230 * The pointers are untyped to be compatible with the cx_compare_func signature.
231 * @param right the second key 231 *
232 * @param left (@c CxHashKey*) the first key
233 * @param right (@c CxHashKey*) the second key
232 * @return zero when the keys equal, non-zero when they differ 234 * @return zero when the keys equal, non-zero when they differ
233 */ 235 */
234 cx_attr_nodiscard cx_attr_nonnull 236 cx_attr_nodiscard cx_attr_nonnull
235 CX_EXPORT int cx_hash_key_cmp(const CxHashKey *left, const CxHashKey *right); 237 CX_EXPORT int cx_hash_key_cmp(const void *left, const void *right);
236 238
237 #ifdef __cplusplus 239 #ifdef __cplusplus
238 } // extern "C" 240 } // extern "C"
239 241
240 // ---------------------------------------------------------- 242 // ----------------------------------------------------------

mercurial