cgen: fix return type for MapEqFn and add MapCloneFn, MapFreeFn (#7578)

pull/7591/head
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
1 changed files with 5 additions and 3 deletions

View File

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