]>
www.git.momoyon.org Git - commonlib.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
ahmedsamyh [Thu, 15 May 2025 04:38:39 +0000 (09:38 +0500)]
[commonlib.h] Add TODO.
ahmedsamyh [Thu, 15 May 2025 04:36:30 +0000 (09:36 +0500)]
Merge branch 'main' of ssh://github.com/momoyon/commonlib
ahmedsamyh [Thu, 15 May 2025 04:35:07 +0000 (09:35 +0500)]
[commonlib.h] Add Math.clamp() and Sv.sv_get_part()
momoyon [Sun, 13 Apr 2025 12:37:44 +0000 (17:37 +0500)]
[test.py] Update
momoyon [Sun, 13 Apr 2025 12:19:29 +0000 (17:19 +0500)]
Merge branch 'main' of github.com:momoyon/commonlib
momoyon [Sun, 13 Apr 2025 12:10:47 +0000 (17:10 +0500)]
[commonlib.h] sv_get_range()
momoyon [Sun, 13 Apr 2025 12:07:28 +0000 (17:07 +0500)]
[commonlib.h] Add Maths
ahmedsamyh [Fri, 11 Apr 2025 14:44:29 +0000 (19:44 +0500)]
[commonlib.h] Remove sv_to_ptr()
ahmedsamyh [Tue, 8 Apr 2025 23:50:48 +0000 (04:50 +0500)]
[tests/string_view.c] Add tests for sv to number conversions.
ahmedsamyh [Tue, 8 Apr 2025 23:50:24 +0000 (04:50 +0500)]
[commonlib.h] Improve sv_to_<NUMBER_TYPE> funcs
ahmedsamyh [Tue, 8 Apr 2025 23:05:38 +0000 (04:05 +0500)]
[test.py] Update
ahmedsamyh [Mon, 7 Apr 2025 17:34:01 +0000 (22:34 +0500)]
[test] Remove unwanted test intermmediates.
ahmedsamyh [Mon, 7 Apr 2025 17:33:10 +0000 (22:33 +0500)]
[tests] slurp_file.c -> read_file.c
ahmedsamyh [Mon, 7 Apr 2025 17:20:24 +0000 (22:20 +0500)]
[commonlib.h] c_slurp_file() -> c_read_file().
ahmedsamyh [Mon, 7 Apr 2025 17:19:28 +0000 (22:19 +0500)]
[test.py] Update
momoyon [Sun, 6 Apr 2025 16:17:24 +0000 (21:17 +0500)]
Remove old testing intermmediates
momoyon [Sun, 6 Apr 2025 16:13:27 +0000 (21:13 +0500)]
Change slurp_file to read in text_mode
momoyon [Sun, 6 Apr 2025 15:30:28 +0000 (20:30 +0500)]
Add test script for windows.
momoyon [Sun, 6 Apr 2025 15:30:13 +0000 (20:30 +0500)]
Change slurp_file() to return file_size instead of success.
ahmedsamyh [Wed, 26 Mar 2025 22:23:01 +0000 (03:23 +0500)]
[commonlib.h] Arena_func -> arena_func.
ahmedsamyh [Wed, 26 Mar 2025 21:54:26 +0000 (02:54 +0500)]
[tests] Add sv_to_cstr test in string_view.c
ahmedsamyh [Wed, 26 Mar 2025 21:54:12 +0000 (02:54 +0500)]
[commonlib.h] Fix sv_to_cstr().
ahmedsamyh [Wed, 26 Mar 2025 21:53:19 +0000 (02:53 +0500)]
[commonlib.h] c_<MACRO> -> C_<MACRO>
ahmedsamyh [Tue, 25 Mar 2025 14:20:02 +0000 (19:20 +0500)]
[tests] Fix dynamic_array.c
ahmedsamyh [Wed, 19 Mar 2025 18:09:00 +0000 (23:09 +0500)]
Implemented new modular test system.
ahmedsamyh [Mon, 17 Mar 2025 03:27:35 +0000 (08:27 +0500)]
WIP: migrating to modular test.py
ahmedsamyh [Mon, 17 Mar 2025 02:38:57 +0000 (07:38 +0500)]
[tests/dynamic_array.c] Add da_shift test.\
ahmedsamyh [Mon, 17 Mar 2025 02:38:38 +0000 (07:38 +0500)]
[commonlib.h] Surround da in ()'s in da_shift().
ahmedsamyh [Tue, 4 Mar 2025 18:55:24 +0000 (23:55 +0500)]
[commonlib.h] c_ASSERT -> assert in c_da_shift.
ahmedsamyh [Tue, 4 Mar 2025 18:48:50 +0000 (23:48 +0500)]
[commonlib.h] pop_front -> shift.
ahmedsamyh [Mon, 3 Mar 2025 12:04:12 +0000 (17:04 +0500)]
[commonlib.h] TODO Done: Refactor slurp_file error msgs.
ahmedsamyh [Fri, 28 Feb 2025 05:55:15 +0000 (10:55 +0500)]
[tests] New test string_view.c
ahmedsamyh [Fri, 28 Feb 2025 05:55:01 +0000 (10:55 +0500)]
[commonlib.h] Implemented sv_lpop_until_string().
ahmedsamyh [Fri, 28 Feb 2025 03:33:08 +0000 (08:33 +0500)]
[commonlib.h] cast cstr -> char* in c_SV() macro.
ahmedsamyh [Fri, 28 Feb 2025 03:16:32 +0000 (08:16 +0500)]
[commonlib.h] Wrap sv arround () in SV_ARG(sv)
ahmedsamyh [Wed, 26 Feb 2025 18:01:28 +0000 (23:01 +0500)]
[commonlib.h] Make memory allocation funcs redefinable.
ahmedsamyh [Wed, 26 Feb 2025 17:59:29 +0000 (22:59 +0500)]
[commonlib.h] da_free.
ahmedsamyh [Wed, 26 Feb 2025 17:26:22 +0000 (22:26 +0500)]
[commonlib.h] Remove prefix for String view interface.
ahmedsamyh [Tue, 25 Feb 2025 10:33:59 +0000 (15:33 +0500)]
[test.py] New flag '-x' Stop on error.
ahmedsamyh [Tue, 25 Feb 2025 10:30:20 +0000 (15:30 +0500)]
[test] New test 'shift_args.c'
ahmedsamyh [Tue, 25 Feb 2025 10:30:12 +0000 (15:30 +0500)]
[commonlib.h] Implemented c_pop_front...
- Make c_shift_args -> c_pop_front.
ahmedsamyh [Tue, 25 Feb 2025 10:15:07 +0000 (15:15 +0500)]
[commonlib.h] Remove prefix for 'shift_args';
ahmedsamyh [Fri, 21 Feb 2025 14:06:16 +0000 (19:06 +0500)]
Fix da_append.
ahmedsamyh [Sun, 26 Jan 2025 18:19:59 +0000 (23:19 +0500)]
Remove prefix of da_append...
ahmedsamyh [Sun, 26 Jan 2025 18:18:13 +0000 (23:18 +0500)]
Fix escaped comment
ahmedsamyh [Sun, 26 Jan 2025 17:47:21 +0000 (22:47 +0500)]
Remove beykaaru assertion
ahmedsamyh [Sun, 26 Jan 2025 12:45:16 +0000 (17:45 +0500)]
Add new tess; dynamic_array.c
ahmedsamyh [Sun, 26 Jan 2025 12:42:42 +0000 (17:42 +0500)]
[commonlib.h] Fix some prefix errors...
- [commonlib.h] Remove DEFINE_DYNAMIC_ARRAY() macro.
ahmedsamyh [Sun, 26 Jan 2025 12:30:32 +0000 (17:30 +0500)]
[tests] verbose (-v) Flag.
- [tests] Much nicer output.
- [tests] Keep count and report passing tests count.
ahmedsamyh [Sun, 26 Jan 2025 12:06:32 +0000 (17:06 +0500)]
Add flags and can pass, run multiple subcmds/flags
ahmedsamyh [Sun, 26 Jan 2025 11:53:02 +0000 (16:53 +0500)]
Add new test; slurp_file.c
ahmedsamyh [Sat, 25 Jan 2025 17:21:56 +0000 (22:21 +0500)]
Much nicer output
ahmedsamyh [Sat, 25 Jan 2025 17:12:48 +0000 (22:12 +0500)]
Remove unnecessary test files.
momoyonwork [Sat, 25 Jan 2025 16:28:31 +0000 (21:28 +0500)]
Implemented 'record' subcommand...
- TODO: Take input for the test while recording and pass it while
running.
momoyonwork [Sat, 25 Jan 2025 16:10:32 +0000 (21:10 +0500)]
Changed to python test script.
- Can build and run tests.
- TODO: record expected behaviour of tests, instead of manually doing
so.
ahmedsamyh [Sat, 25 Jan 2025 14:58:51 +0000 (19:58 +0500)]
Change testing to a python script.
ahmedsamyh [Sat, 25 Jan 2025 14:46:09 +0000 (19:46 +0500)]
Make memory-allocation procs changable(for a lack of a betterword).
ahmedsamyh [Sat, 25 Jan 2025 14:42:31 +0000 (19:42 +0500)]
WIP: String_Builder
ahmedsamyh [Sat, 25 Jan 2025 14:41:37 +0000 (19:41 +0500)]
[commonlib.h] Add missing linux headers.
momoyonwork [Sat, 25 Jan 2025 12:59:35 +0000 (17:59 +0500)]
Redirect test output to its own files...
- WIP: Compare with expected outputs.
- TODO: Pass input to test.
- TODO: subcommand to record expected outputs.
momoyonwork [Sat, 25 Jan 2025 09:15:26 +0000 (14:15 +0500)]
Remove prefix
momoyonwork [Sat, 25 Jan 2025 09:15:05 +0000 (14:15 +0500)]
Added .gitignore
momoyonwork [Sat, 25 Jan 2025 09:14:34 +0000 (14:14 +0500)]
Remove *.exe
momoyonwork [Sat, 25 Jan 2025 09:13:33 +0000 (14:13 +0500)]
Implement tests.
- WIP: Use nob to compile and run tests...
momoyonwork [Sat, 25 Jan 2025 07:20:10 +0000 (12:20 +0500)]
Add LICENSE and README.md
momoyonwork [Sat, 25 Jan 2025 07:17:09 +0000 (12:17 +0500)]
Add Dynamic-Array.
momoyonwork [Sat, 25 Jan 2025 07:04:11 +0000 (12:04 +0500)]
Prefix everything*
momoyonwork [Sat, 25 Jan 2025 06:46:29 +0000 (11:46 +0500)]
Fix OS detection...
- Fix ASSERT()
- Simplify logging.
- Remove Windows specific functions.
- Mark Unimplemented functions.
momoyonwork [Sat, 25 Jan 2025 06:25:43 +0000 (11:25 +0500)]
Removed ext-libs
ahmedsamyh [Wed, 25 Sep 2024 13:30:25 +0000 (18:30 +0500)]
Add os_file_exists() and touch_file_if_doesnt_exist()
- @TODO: Also tweaked the log_print() function. Don't remember what tho.
ahmedsamyh [Wed, 11 Sep 2024 18:19:38 +0000 (23:19 +0500)]
[log_file] Handle %.*s
ahmedsamyh [Wed, 29 May 2024 22:57:42 +0000 (03:57 +0500)]
Bake stb_ds.h and stb_sprintf.h
ahmedsamyh [Wed, 29 May 2024 22:36:24 +0000 (03:36 +0500)]
Done many things...
- typedefs for wide chars.
- STRUCT and ENUM pre-declare macros.
- winapi_get_current_working_directory().
- Arena.buff_size's type: size_t -> uint64.
- Arena_make(buff_size) takes buff_size as argument.
- Arena_reset() which sets the ptr to buff.
- Arena_alloc_str() macro which allocs a str printed using snprintf
and returns the string
- new Category "String".
- cstr_to_wstr().
- new Category "Args".
- shift_args().
- Arena_alloc() reallocs buff if buff cannot hold new size.
ahmedsamyh [Fri, 19 Apr 2024 19:10:11 +0000 (00:10 +0500)]
Done many things...
- Winapi functions
- real[32/64] -> float[32/64]
- Fix ASSERT()
- Refactor log_f
- String_view conversion functions
- Arena Allocator
ahmedsamyh [Sun, 24 Mar 2024 17:40:37 +0000 (22:40 +0500)]
Initial Commit