From c3281dc94699e61e892aa28d1d175050677aaa28 Mon Sep 17 00:00:00 2001 From: Aaron Blakely Date: Wed, 6 Mar 2024 02:52:38 -0600 Subject: [PATCH] cleanup --- .gitignore | 1 + mods/lua/scripts | 2 -- scripts/t1.lua | 0 test.db | Bin 8386 -> 0 bytes test1.db | Bin 8386 -> 0 bytes test_db.c | 57 ----------------------------------------------- testdb | Bin 27600 -> 0 bytes xbot.db | Bin 77 -> 0 bytes 8 files changed, 1 insertion(+), 59 deletions(-) delete mode 100755 mods/lua/scripts delete mode 100755 scripts/t1.lua delete mode 100755 test.db delete mode 100755 test1.db delete mode 100755 test_db.c delete mode 100755 testdb delete mode 100755 xbot.db diff --git a/.gitignore b/.gitignore index 964321c..4e6bb04 100755 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ mods/test .cache UpgradeLog*.XML +xbot.db *.so *.dll *.lib diff --git a/mods/lua/scripts b/mods/lua/scripts deleted file mode 100755 index d7a1022..0000000 --- a/mods/lua/scripts +++ /dev/null @@ -1,2 +0,0 @@ -hello.lua -test.lua diff --git a/scripts/t1.lua b/scripts/t1.lua deleted file mode 100755 index e69de29..0000000 diff --git a/test.db b/test.db deleted file mode 100755 index aa5dc1650c8846662663320d69f62e04a006557f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8386 zcmeI$!3n}J6vpv~6F5Q#kRIH{0cr?X2u*2T4zA%Iu2AeEUBMMh>Y)of(8K>h!b=X{ z3%_ID^K(6l$f2xSug9g7$kNo4NXT8A+|-Ynz84nz&4&=%5`9vibZhQ0Yrgv0TTCDW z0R#|0009ILKmY**5I_I{1b!{Be=4|`2eo<5*(Qb*1Q0*~0R#|0009ILKmY**5corZ E53PkAGXMYp diff --git a/test1.db b/test1.db deleted file mode 100755 index b4cdfc9e0fef37b98f310daac4cf9c533e07b85f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8386 zcmeI$!3n}J6vpv~6F5Q#kRIH{0cr?X2u*2T4ld#ru267;PS6!x!K5C#zym$}A0)iw z@V)Rm<~={xqlg^Js -#include -#include -#include - -#define FNAME "xbot.db" - -int main() -{ - struct db_table *db; - int i; - - if (access(FNAME, F_OK) == -1) - { - printf("Creating db\n"); - - db = (struct db_table *)malloc(sizeof(struct db_table)); - db->count = 0; - db->hashes = NULL; - } - else - { - db = read_db(FNAME); - } - - // write some data if db is empty - if (db->count == 0) - { - db_set_hash_char(db, "lua.scripts", "hello.lua,test.lua,youtube.lua"); - db_set_hash_int(db, "lua.scriptcount", 2); - db_set_hash_float(db, "lua.version", 5.1); - write_db(db, FNAME); - - return 0; - } - - for (i = 0; i < db->count; i++) - { - if (db->hashes[i].type == DB_TYPE_INT) - { - printf("Key: %s, Value: %d\n", db->hashes[i].key, get_hash_int(db, db->hashes[i].key)); - } - else if (db->hashes[i].type == DB_TYPE_FLOAT) - { - printf("Key: %s, Value: %f\n", db->hashes[i].key, get_hash_float(db, db->hashes[i].key)); - } - else if (db->hashes[i].type == DB_TYPE_CHAR) - { - printf("Key: %s, Value: %s\n", db->hashes[i].key, get_hash_char(db, db->hashes[i].key)); - } - } - - free(db); - - return 0; -} diff --git a/testdb b/testdb deleted file mode 100755 index 479996cbdfd0bd57d061ae98dbc44a3181cc0cc8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 27600 zcmeHweSB2ao%g*nbCSvH1d>2_lL1Abz$5`gPy*p4IDrHrf(1l}NoJBvNhaxJhL=9J z<&&r-O|wsE_p#LSv08Uq`(o{D6n$*-0GT$wI7(xF??oq(iQMwtw7wj>)GY7YsL-b86IM{+bYiX={Y zg0c#?!*)g2Q1eseRY*IA4Srksuc1|sVspMq>YcAohl46E=M>a>gp%Hn(i>8GDX0Q5 zq@a!`#e{yVl|Ob^4IZUxz8Z#I?}*Z~!_7)wLn?#PEw9Hze@S@_TCY;tS#5)NO0uD$ zF7IaOQC$Aqq?>uCDsQ58s8I3OP=(bfZ;LdpT3Ox}TGkecCXOsS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z+JgO(LL<@U4xJA+Hpaq-G=^jN!#a=X=`4}aabjt6$$tW&$Ag&K@yB$T%J58`l7{+y zCrOpEI#2Lw{OCEO)?cmkHLM2Dn(#0=Ev*7()jy*2HM}NGn)Ynzsn(`{O6hCpO&1@h z|55O97!&=)fzzPU*HG7=_Lr3G{s%#$J)_niQu-PeDF)S%;;i-Q(JrM3ex#!H^?PF) zmXMMq*-+!-;L$r-T3^41r6Ii(L`nOvhc=V2!#`Sw%8tUzb-G4TU3%vkDZKCy$ zksy+WgN%)pZ?FFs!6*HVO0HT7Xh{1kO631^{OtM_ZJjmHS7%ip5_I*0YlPq5*x!c{Sp||ceK8~?@RrEG|GR~tyA`NJ6?t^iD>;n zdUl93xL(3V5~QxWTn*`u%T|5;p69UAr~5f;(s~*?plsFG_ch0=rIz+n+t7L`9Lhw~ z{_B14K(&;x%Trm_ME7e%tFRK0*ZTJHr}Z_Qru1#<#D%Miv0KV_>V}bM z%2#cNUVNauUH_MRq{7dYo(5Xa3T;(n(ZRh^9smFU diff --git a/xbot.db b/xbot.db deleted file mode 100755 index 973d31842f21bd058de3a1c47cc259eba2e2e310..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 77 zcmaFAZ|yw+1_lO3AO?XC3nN2ALm3!&fNV~%2!s%r2NB;e2SVqRCh8R@7iAWd6f=~h K7MJJ&1sDL1JQA7!