From 1c3b867b68aa0200581296a9b19a88f001615bec Mon Sep 17 00:00:00 2001 From: retoor Date: Sun, 8 Dec 2024 19:58:50 +0100 Subject: [PATCH] Removed debug messages. --- Makefile | 7 ++++--- sorm | Bin 216384 -> 216384 bytes sorm.h | 9 --------- sorm.so | Bin 256088 -> 256088 bytes 4 files changed, 4 insertions(+), 12 deletions(-) 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 215b8131df29a6633cfb4927a1e0568ff2b4a91a..723d75a809f0218e0b939c31a0b3fea9b636799e 100755 GIT binary patch delta 55 zcmV-70LcHqnhn634X}6v6p4pAd{o?g7x_6|5$G|@!Ej3RD1(dxhl~ROw~PY<+E@id NWn&;9w`*Ji)$o+`7V7{2 delta 55 zcmV-70LcHqnhn634X}6v6xp=QhxkX@MQo1Kw2by2cg`Aoor8=6hl~ROw~PY<+E@in NZ+0Luw`*Ji)$s6a8CU=S 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 988baecce76b24c1dddced3b7d447856147e24bb..e5b7cd59e04ac8596c82f58abf4db99617d5f06a 100755 GIT binary patch delta 55 zcmV-70LcH?&=1(q53tw*6mS8eNT_1^45!;BHp73lixfJ;NQ3MGhwK6Yx9kD}TImHu NWn&;9w@d5-4gAjQ7)$^F delta 55 zcmV-70LcH?&=1(q53tw*6o+>%DbvgMA;MPSHTQM-6MrH4ZG-FrhwK6Yx9kD}TImH& NZ+0Luw@d5-4g3e*8W{ip