mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: fix return type for MapEqFn and add MapCloneFn, MapFreeFn (#7578)
This commit is contained in:
parent
ba48cf3238
commit
1383771423
@ -428,9 +428,6 @@ static voidptr memfreedup(voidptr ptr, voidptr src, int sz) {
|
||||
free(ptr);
|
||||
return memdup(src, sz);
|
||||
}
|
||||
|
||||
typedef uint64_t (*MapHashFn)(void*);
|
||||
typedef int (*MapEqFn)(void*, void*);
|
||||
'
|
||||
c_builtin_types = '
|
||||
//================================== builtin types ================================*/
|
||||
@ -460,6 +457,11 @@ typedef struct sync__Channel* chan;
|
||||
#define false 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
typedef u64 (*MapHashFn)(voidptr);
|
||||
typedef bool (*MapEqFn)(voidptr, voidptr);
|
||||
typedef void (*MapCloneFn)(voidptr, voidptr);
|
||||
typedef void (*MapFreeFn)(voidptr);
|
||||
'
|
||||
bare_c_headers = '
|
||||
$c_common_macros
|
||||
|
Loading…
Reference in New Issue
Block a user