54 Commits

Author SHA1 Message Date
49b53ec5b1
removed pointless strlen from for loops 2024-02-20 13:45:47 +01:00
b6bace31e2
removed stupid goto in logger 2024-02-19 12:17:44 +01:00
bd3eb8ed4a
removed duplicate tkch version
so yeah v1 and v2 were the same
2024-01-24 21:07:45 +01:00
42f406f6b6
implemented tkch_version in why2_input_flags 2024-01-24 15:11:22 +01:00
e92c2f4d9d
fixed (possibly) invalid symlink path in why2_init_logger
fuuck I was using different variable REE
2023-02-08 19:09:56 +01:00
44941a1b05
implemented why2_opendir
shit it works

no memery lekz

LET'S FUCKING GO
2023-02-06 17:00:19 +01:00
55dacb2a84
removing possible memory leaks from why2_init_logger 2023-02-06 08:19:47 +01:00
a42e0a9ca9
implemented why2_open
wow no memory leak

ngl didn't expect that
2023-02-05 19:07:43 +01:00
6e7ea8b6f5
renamed why2_free to why2_deallocate 2023-02-05 18:25:42 +01:00
aaeec50687
removed TODO from why2_write_log's write 2023-02-04 18:23:10 +01:00
792877202c
added no_output check to previous commit 2023-02-04 18:15:00 +01:00
2a1e05886a
implemented why2_clean_memory in why2_init_logger 2023-02-04 18:12:32 +01:00
bbb09428d1
renamed all 'public' identificators to snake_case
I mean the identificators user gets in contact with
2023-02-03 17:03:46 +01:00
f8f53b4305
implemented why2_strdup
hehe
2023-02-01 15:11:27 +01:00
7dd4f08d55
removed unused stdlib includes 2023-01-31 18:20:35 +01:00
6cce28c65a
implemented why2_malloc & why2_calloc & why2_free 2023-01-29 20:39:52 +01:00
5e8cf54145
renamed every global function & flag
basically - it's in snake_case now AND there's "why2_" at the beginning
2023-01-29 20:14:11 +01:00
bf96f9e55e
replaced malloc with strcpy with strdup
heh
2023-01-26 12:48:07 +01:00
e2eca1e3ea
revert "removed unused void casts"
yes so it works on my machine

but not on debian-based; fuck

reverts commit 8700f38260350cec20b6c48b30eda977018faab9.
2023-01-25 20:38:56 +01:00
8700f38260
removed unused void casts
wtf without it, it was throwing compile errors (like month ago) and now it works perfectly fine wtfff
2023-01-25 20:37:26 +01:00
f2a62fdb7b
added colon to WRITE_FORMAT flag
and implemented it => that flag is used for getting length of log prefix so yeah you get it

hehe
2023-01-24 11:55:42 +01:00
914e7a2020
added read mode to logFile creation 2023-01-21 21:09:48 +01:00
596d6aff9a
removing newline from logMessage 2022-12-11 17:59:43 +01:00
403cb396b6
added one byte to buffer allocation
see 875c3c34d90d2845325db2739233d9312f056785
2022-12-11 16:20:53 +01:00
f26945a841
added check if flags weren't changed to writeLog 2022-12-10 16:25:46 +01:00
b4d1be73f9
fixed writeLog memory leak 2022-12-10 15:01:14 +01:00
afc9d97bbb
using inputFlags in logger 2022-12-09 19:00:37 +01:00
6cb9e09a87
implemented encryption in logger
NOTE: This was pretty big change, I hope everything is cool
2022-12-09 18:55:18 +01:00
7a5e632f7a
added missing comment 2022-12-09 15:21:02 +01:00
f38e6e15f4
fixed 'ignoring return value' problem in symlink creation
see 215121f209f3e09a5ad3ce4fc5ed052d9d66708d
2022-12-09 15:13:59 +01:00
cd6600a83f
added latest log feature && simplified LOG_FORMATTING 2022-12-09 15:10:41 +01:00
215121f209
kind of fixed 'ignoring return value' problem
saying I bypassed compiler would sound weird, so yeah... 🤠
2022-12-09 14:09:15 +01:00
fd6aa19eba
added proper expression for comparing write & fread return values
still not complete tho
2022-12-07 17:30:47 +01:00
8df7a56095
fixed what I fucked up last commit 2022-12-06 18:30:49 +01:00
0cacbcf174
patched unused-result error
hopefully
2022-12-06 18:22:58 +01:00
ee886f0237
fixed possible segfault in writeLog
This would happen if initLogger returned INVALID_FILE and you still tried using writeLog
2022-12-06 18:14:34 +01:00
d94a65e50d
preventing from [-Werror=unused-result] (2#) 2022-12-04 19:46:37 +01:00
cfdcad1c9b
removed needed pointer deallocation 2022-12-04 19:18:04 +01:00
e2c5791dc7
implemented logFile type in logger.c 2022-12-04 19:13:05 +01:00
f71647e0ff
added license at top of every file
I mean, the files where it is possible
2022-12-04 18:55:13 +01:00
8d136b726f
implemented last commit; removed todo 2022-11-23 19:52:03 +01:00
488a59db56
fixed filePath allocation syze 2022-11-23 19:45:07 +01:00
5054284370
fixed log folder counting bug
gonna make this variable, don't worry
2022-11-23 19:44:35 +01:00
48977c0fe1
added on byte to writeLog's buffer allocation
I mean... Valgrind told me to.
2022-11-22 18:50:41 +01:00
0f4492a611
added some *working* code into writeLog's body 2022-11-22 18:47:56 +01:00
95d5c8201f
added missing header file include
I thought it write() was in fcnttl

whoops
2022-11-22 18:30:55 +01:00
e5a4c21f6a
added test code into writeLog 2022-11-22 18:29:00 +01:00
614d788350 implemented LOG_FORMATTING in logger 2022-11-21 12:08:37 +00:00
4a7f3ac3ab fixed logger's todo
and deallocated filePath
2022-11-21 11:58:10 +00:00
ddb5389916 implemented MAX_USAGE flag 2022-11-21 11:55:25 +00:00