]> www.git.momoyon.org Git - commonlib.git/log
commonlib.git
2 months ago[commonlib.h] Remove prefix for String view interface.
ahmedsamyh [Wed, 26 Feb 2025 17:26:22 +0000 (22:26 +0500)]
[commonlib.h] Remove prefix for String view interface.

2 months ago[test.py] New flag '-x' Stop on error.
ahmedsamyh [Tue, 25 Feb 2025 10:33:59 +0000 (15:33 +0500)]
[test.py] New flag '-x' Stop on error.

2 months ago[test] New test 'shift_args.c'
ahmedsamyh [Tue, 25 Feb 2025 10:30:20 +0000 (15:30 +0500)]
[test] New test 'shift_args.c'

2 months ago[commonlib.h] Implemented c_pop_front...
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.

2 months ago[commonlib.h] Remove prefix for 'shift_args';
ahmedsamyh [Tue, 25 Feb 2025 10:15:07 +0000 (15:15 +0500)]
[commonlib.h] Remove prefix for 'shift_args';

2 months agoFix da_append.
ahmedsamyh [Fri, 21 Feb 2025 14:06:16 +0000 (19:06 +0500)]
Fix da_append.

3 months agoRemove prefix of da_append...
ahmedsamyh [Sun, 26 Jan 2025 18:19:59 +0000 (23:19 +0500)]
Remove prefix of da_append...

3 months agoFix escaped comment
ahmedsamyh [Sun, 26 Jan 2025 18:18:13 +0000 (23:18 +0500)]
Fix escaped comment

3 months agoRemove beykaaru assertion
ahmedsamyh [Sun, 26 Jan 2025 17:47:21 +0000 (22:47 +0500)]
Remove beykaaru assertion

3 months agoAdd new tess; dynamic_array.c
ahmedsamyh [Sun, 26 Jan 2025 12:45:16 +0000 (17:45 +0500)]
Add new tess; dynamic_array.c

3 months ago[commonlib.h] Fix some prefix errors...
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.

3 months ago[tests] verbose (-v) Flag.
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.

3 months agoAdd flags and can pass, run multiple subcmds/flags
ahmedsamyh [Sun, 26 Jan 2025 12:06:32 +0000 (17:06 +0500)]
Add flags and can pass, run multiple subcmds/flags

3 months agoAdd new test; slurp_file.c
ahmedsamyh [Sun, 26 Jan 2025 11:53:02 +0000 (16:53 +0500)]
Add new test; slurp_file.c

3 months agoMuch nicer output
ahmedsamyh [Sat, 25 Jan 2025 17:21:56 +0000 (22:21 +0500)]
Much nicer output

3 months agoRemove unnecessary test files.
ahmedsamyh [Sat, 25 Jan 2025 17:12:48 +0000 (22:12 +0500)]
Remove unnecessary test files.

3 months agoImplemented 'record' subcommand...
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.

3 months agoChanged to python test script.
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.

3 months agoChange testing to a python script.
ahmedsamyh [Sat, 25 Jan 2025 14:58:51 +0000 (19:58 +0500)]
Change testing to a python script.

3 months agoMake memory-allocation procs changable(for a lack of a betterword).
ahmedsamyh [Sat, 25 Jan 2025 14:46:09 +0000 (19:46 +0500)]
Make memory-allocation procs changable(for a lack of a betterword).

3 months agoWIP: String_Builder
ahmedsamyh [Sat, 25 Jan 2025 14:42:31 +0000 (19:42 +0500)]
WIP: String_Builder

3 months ago[commonlib.h] Add missing linux headers.
ahmedsamyh [Sat, 25 Jan 2025 14:41:37 +0000 (19:41 +0500)]
[commonlib.h] Add missing linux headers.

3 months agoRedirect test output to its own files...
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.

3 months agoRemove prefix
momoyonwork [Sat, 25 Jan 2025 09:15:26 +0000 (14:15 +0500)]
Remove prefix

3 months agoAdded .gitignore
momoyonwork [Sat, 25 Jan 2025 09:15:05 +0000 (14:15 +0500)]
Added .gitignore

3 months agoRemove *.exe
momoyonwork [Sat, 25 Jan 2025 09:14:34 +0000 (14:14 +0500)]
Remove *.exe

3 months agoImplement tests.
momoyonwork [Sat, 25 Jan 2025 09:13:33 +0000 (14:13 +0500)]
Implement tests.

- WIP: Use nob to compile and run tests...

3 months agoAdd LICENSE and README.md
momoyonwork [Sat, 25 Jan 2025 07:20:10 +0000 (12:20 +0500)]
Add LICENSE and README.md

3 months agoAdd Dynamic-Array.
momoyonwork [Sat, 25 Jan 2025 07:17:09 +0000 (12:17 +0500)]
Add Dynamic-Array.

3 months agoPrefix everything*
momoyonwork [Sat, 25 Jan 2025 07:04:11 +0000 (12:04 +0500)]
Prefix everything*

3 months agoFix OS detection...
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.

3 months agoRemoved ext-libs
momoyonwork [Sat, 25 Jan 2025 06:25:43 +0000 (11:25 +0500)]
Removed ext-libs

7 months agoAdd os_file_exists() and touch_file_if_doesnt_exist()
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.

8 months ago[log_file] Handle %.*s
ahmedsamyh [Wed, 11 Sep 2024 18:19:38 +0000 (23:19 +0500)]
[log_file] Handle %.*s

11 months agoBake stb_ds.h and stb_sprintf.h
ahmedsamyh [Wed, 29 May 2024 22:57:42 +0000 (03:57 +0500)]
Bake stb_ds.h and stb_sprintf.h

11 months agoDone many things...
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.

13 months agoDone many things...
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

13 months agoInitial Commit
ahmedsamyh [Sun, 24 Mar 2024 17:40:37 +0000 (22:40 +0500)]
Initial Commit