1
0
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:
Nick Treleaven 2020-12-26 20:14:31 +00:00 committed by GitHub
parent ba48cf3238
commit 1383771423
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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