1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

gen: add MapHashFn typedef before map struct is declared (#7541)

This commit is contained in:
Nick Treleaven 2020-12-25 17:05:53 +00:00 committed by GitHub
parent 333cd41fca
commit 17cccc7b36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -428,6 +428,9 @@ 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 ================================*/