Skip to content

Commit

Permalink
getting rid of excess imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevoronov committed Apr 28, 2020
1 parent 8960e72 commit 72e9311
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
10 changes: 2 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand Down Expand Up @@ -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

Expand Down
20 changes: 0 additions & 20 deletions src/wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

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

0 comments on commit 72e9311

Please sign in to comment.