getting rid of excess imports

since https://github.com/rust-lang/rust/issues/63562 fixed
This commit is contained in:
vms 2020-04-29 00:24:20 +03:00
parent 8960e72d3b
commit 72e9311c97
2 changed files with 2 additions and 28 deletions

View File

@ -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

View File

@ -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);
}