diff --git a/Makefile b/Makefile index dfc73df..f094a4b 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,9 @@ all: build run build: gcc main.c -lsqlite3 -lreadline -o sorm - gcc -shared -o sorm.so -fPIC main.c -lsqlite3 -lreadline - + gcc -shared -o sorm.so -fPIC main.c -lsqlite3 -lreadline run: - ./sorm \ No newline at end of file + ./sorm + + \ No newline at end of file diff --git a/sorm b/sorm index 215b813..723d75a 100755 Binary files a/sorm and b/sorm differ diff --git a/sorm.h b/sorm.h index aacf85c..4d4f899 100644 --- a/sorm.h +++ b/sorm.h @@ -73,18 +73,14 @@ int sorm_instance_count = 0; int sormc(char *path) { // sorm connect - printf("HIERR\n"); sorm_instance_count++; sorm_instance_count++; sorm_instances = realloc(sorm_instances, sorm_instance_count * sizeof(sorm_t *) + sorm_instance_count * sizeof(sorm_t)); - printf("HIERR\n"); sorm_t *db = &sorm_instances[sorm_instance_count - 1]; - printf("HIERR\n"); db->conn = NULL; - printf("HIERR\n"); db->csv = NULL; db->current_column = 0; db->current_row = 0; @@ -99,7 +95,6 @@ int sormc(char *path) { fprintf(stderr, "Can't open database: %s\n", sqlite3_errmsg(db->conn)); return 0; } - printf("DONE!\n"); return sorm_instance_count; } sorm_t *sormg(int ptr) { return &sorm_instances[ptr - 1]; } @@ -312,10 +307,6 @@ char *sormm(sorm_t *db) { sorm_ptr sormq(int sorm, char *sql, ...) { sorm_t *db = sormg(sorm); - if (db->csv) { - // free(db->csv); - // db->csv = NULL; - } _sorm_query_start = nsecs(); db->time_query_start = nsecs(); va_list args; diff --git a/sorm.so b/sorm.so index 988baec..e5b7cd5 100755 Binary files a/sorm.so and b/sorm.so differ