port SQLite fork to wasm

This commit is contained in:
vms
2019-07-19 15:12:49 +03:00
parent bff864a802
commit 0d38bd3a72
13 changed files with 516 additions and 0 deletions

13
sdk/allocator.c Normal file
View File

@ -0,0 +1,13 @@
#include "allocator.h"
#include <stdlib.h>
#define UNUSED(x) (void)(x)
void *allocate(size_t size) {
return malloc(size);
}
void deallocate(void *ptr, size_t size) {
UNUSED(size);
free(ptr);
}