getting rid of excess imports

since https://github.com/rust-lang/rust/issues/63562 fixed
This commit is contained in:
vms 2020-06-29 11:39:14 +03:00
parent dde3fcec49
commit 88142c9c80
2 changed files with 1 additions and 26 deletions

View File

@ -13,12 +13,7 @@ EXPORT_FUNCS = \
--export=deallocate,$\ --export=deallocate,$\
--export=invoke,$\ --export=invoke,$\
--export=load,$\ --export=load,$\
--export=store,$\ --export=store
--export=redis_allocate,$\
--export=redis_deallocate,$\
--export=redis_invoke,$\
--export=redis_load,$\
--export=redis_store
REDIS_SERVER_SRC = \ REDIS_SERVER_SRC = \
adlist.c\ adlist.c\

View File

@ -21,34 +21,18 @@ void* allocate(size_t size) {
return zmalloc(size + 1); return zmalloc(size + 1);
} }
void* redis_allocate(size_t size) {
return allocate(size);
}
void deallocate(void *ptr, int size) { void deallocate(void *ptr, int size) {
zfree(ptr); zfree(ptr);
} }
void redis_deallocate(void *ptr, int size) {
deallocate(ptr, size);
}
void store(char *ptr, unsigned char byte) { void store(char *ptr, unsigned char byte) {
*ptr = byte; *ptr = byte;
} }
void redis_store(char *ptr, unsigned char byte) {
store(ptr, byte);
}
unsigned char load(const unsigned char *ptr) { unsigned char load(const unsigned char *ptr) {
return *ptr; return *ptr;
} }
unsigned char redis_load(const unsigned char *ptr) {
return load(ptr);
}
// Cleans client output buffers to - client is blocked and // Cleans client output buffers to - client is blocked and
// doesn't receive requests until output buffer isn't empty. // doesn't receive requests until output buffer isn't empty.
void clean_client_buffer(client *c) { void clean_client_buffer(client *c) {
@ -145,7 +129,3 @@ const char *invoke(char *request, int request_size) {
return response; return response;
} }
const char *redis_invoke(char *request, int request_size) {
return invoke(request, request_size);
}