diff --git a/src/Makefile_wasm b/src/Makefile_wasm index ef8802a2..e6c9b81c 100644 --- a/src/Makefile_wasm +++ b/src/Makefile_wasm @@ -13,12 +13,7 @@ EXPORT_FUNCS = \ --export=deallocate,$\ --export=invoke,$\ --export=load,$\ - --export=store,$\ - --export=redis_allocate,$\ - --export=redis_deallocate,$\ - --export=redis_invoke,$\ - --export=redis_load,$\ - --export=redis_store + --export=store REDIS_SERVER_SRC = \ adlist.c\ diff --git a/src/wrapper.c b/src/wrapper.c index da169125..a710ca30 100644 --- a/src/wrapper.c +++ b/src/wrapper.c @@ -21,34 +21,18 @@ void* allocate(size_t size) { return zmalloc(size + 1); } -void* redis_allocate(size_t size) { - return allocate(size); -} - void deallocate(void *ptr, int size) { zfree(ptr); } -void redis_deallocate(void *ptr, int size) { - deallocate(ptr, size); -} - void store(char *ptr, unsigned char byte) { *ptr = byte; } -void redis_store(char *ptr, unsigned char byte) { - store(ptr, byte); -} - unsigned char load(const unsigned char *ptr) { return *ptr; } -unsigned char redis_load(const unsigned char *ptr) { - return load(ptr); -} - // Cleans client output buffers to - client is blocked and // doesn't receive requests until output buffer isn't empty. void clean_client_buffer(client *c) { @@ -145,7 +129,3 @@ const char *invoke(char *request, int request_size) { return response; } - -const char *redis_invoke(char *request, int request_size) { - return invoke(request, request_size); -}