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

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

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 ================================*/