From 72e9311c97417402d7eec75a87e634b4dcf16a44 Mon Sep 17 00:00:00 2001 From: vms Date: Wed, 29 Apr 2020 00:24:20 +0300 Subject: [PATCH] getting rid of excess imports since https://github.com/rust-lang/rust/issues/63562 fixed --- Makefile | 10 ++-------- src/wrapper.c | 20 -------------------- 2 files changed, 2 insertions(+), 28 deletions(-) diff --git a/Makefile b/Makefile index 54cdb67..2869651 100644 --- a/Makefile +++ b/Makefile @@ -9,12 +9,7 @@ EXPORT_FUNCS = \ --export=deallocate,$\ --export=invoke,$\ --export=load,$\ - --export=store,$\ - --export=sqlite_allocate,$\ - --export=sqlite_deallocate,$\ - --export=sqlite_invoke,$\ - --export=sqlite_load,$\ - --export=sqlite_store + --export=store SQLITE_SRC = \ src/alter.c\ src/analyze.c\ @@ -128,8 +123,7 @@ SQLITE_FLAGS = \ -DSQLITE_ENABLE_OFFSET_SQL_FUNC\ -DSQLITE_ENABLE_DESERIALIZE\ -DSQLITE_INTROSPECTION_PRAGMAS\ - -DSQLITE_OMIT_POPEN\ - -DLOG_ENABLED + -DSQLITE_OMIT_POPEN .PHONY: default all clean diff --git a/src/wrapper.c b/src/wrapper.c index 26f971f..4d9bf1b 100644 --- a/src/wrapper.c +++ b/src/wrapper.c @@ -19,34 +19,18 @@ void store(char *ptr, unsigned char byte) { *ptr = byte; } -void sqlite_store(char *ptr, unsigned char byte) { - store(ptr, byte); -} - unsigned char load(const unsigned char *ptr) { return *ptr; } -unsigned char sqlite_load(const unsigned char *ptr) { - return load(ptr); -} - void* allocate(size_t size) { return malloc(size + 1); } -void* sqlite_allocate(size_t size) { - return allocate(size); -} - void deallocate(void *ptr, int size) { free(ptr); } -void sqlite_deallocate(void *ptr, int size) { - deallocate(ptr, size); -} - char *write_response(char *response, int response_size) { char *result_response = allocate(response_size + 4); @@ -173,7 +157,3 @@ const char *invoke(char *request, int request_size) { return response; } - -const char *sqlite_invoke(char *request, int request_size) { - return invoke(request, request_size); -}