cgen: fix return type for MapEqFn and add MapCloneFn, MapFreeFn (#7578)
parent
ba48cf3238
commit
1383771423
|
@ -428,9 +428,6 @@ static voidptr memfreedup(voidptr ptr, voidptr src, int sz) {
|
||||||
free(ptr);
|
free(ptr);
|
||||||
return memdup(src, sz);
|
return memdup(src, sz);
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef uint64_t (*MapHashFn)(void*);
|
|
||||||
typedef int (*MapEqFn)(void*, void*);
|
|
||||||
'
|
'
|
||||||
c_builtin_types = '
|
c_builtin_types = '
|
||||||
//================================== builtin types ================================*/
|
//================================== builtin types ================================*/
|
||||||
|
@ -460,6 +457,11 @@ typedef struct sync__Channel* chan;
|
||||||
#define false 0
|
#define false 0
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
typedef u64 (*MapHashFn)(voidptr);
|
||||||
|
typedef bool (*MapEqFn)(voidptr, voidptr);
|
||||||
|
typedef void (*MapCloneFn)(voidptr, voidptr);
|
||||||
|
typedef void (*MapFreeFn)(voidptr);
|
||||||
'
|
'
|
||||||
bare_c_headers = '
|
bare_c_headers = '
|
||||||
$c_common_macros
|
$c_common_macros
|
||||||
|
|
Loading…
Reference in New Issue