Commit Graph

108 Commits

Author SHA1 Message Date
7c4725edef Add shell_utils 2024-06-16 23:18:52 +01:00
4fc99f76a5 Move termcolour to shell 2024-06-16 23:17:54 +01:00
25ab75f74f Move memory utilities to common 2024-06-16 15:30:53 +01:00
f6dd7e7aa8 Reorganise files 2024-06-16 12:29:43 +01:00
8f5bee45c6 Reformat compile script 2024-06-12 23:20:49 +01:00
25964d9a3c Run tests before building library 2024-06-09 22:46:17 +01:00
d9cf98da73 Rename print_test_result and exit on any failing function 2024-06-09 22:45:27 +01:00
8c153b5321 Build tests on Windows 2024-06-09 22:31:14 +01:00
3c4112d080 Remove building test.c from the Posix compilation script 2024-06-09 22:30:46 +01:00
aa28dd481b Platform abstraction for terminal colour 2024-06-09 22:30:21 +01:00
42187beee5 Fix auto formatting 2024-06-09 22:29:30 +01:00
8cc17f1490 Reformat and update types 2024-06-09 22:28:07 +01:00
b4c1301600 Update .gitignore 2024-06-09 22:25:46 +01:00
2c556e12f1 Initial implementation of Windows build script 2024-06-09 18:27:34 +01:00
6c82898225 Update dstr to remove MSVC warnings 2024-06-09 18:25:37 +01:00
a85508e0a4 Add padding to StringUpdate struct 2024-06-09 18:25:00 +01:00
cd78913e83 Add padding to arena and test_func_result structs 2024-06-09 17:40:41 +01:00
a0acada9b4 Fix Windows warning about assigning in conditional expression 2024-06-09 17:40:01 +01:00
8eaa4afed1 Add WINDOWS_LEAN_AND_MEAN to mem_utils.c 2024-06-09 17:35:22 +01:00
1ce07e9e4e Add WINDOWS_LEAN_AND_MEAN 2024-06-09 17:34:54 +01:00
162b255e1b Add utility for calculating padding size 2024-06-09 17:34:16 +01:00
99a9cd10f5 Update .gitignore 2024-06-09 16:20:15 +01:00
7e1c25b649 Use out of source build 2024-06-09 16:19:44 +01:00
9008e10651 Fix bug in dirup function 2024-06-09 16:19:26 +01:00
d27fc14b31 Fix termcolour include in tester.c 2024-06-09 15:26:20 +01:00
dbdab01a2c Merge branch 'temp' into 'main' 2024-06-09 01:50:51 +01:00
cf12144230 Add utility macros for arena initialisation 2024-06-09 01:46:23 +01:00
ccc86342cd Add address parameter to wapp_mem_util_alloc 2024-06-09 01:45:29 +01:00
Abdelrahman Said
8d89695fcc Test reserving a massive arena 2024-06-03 08:05:14 +01:00
Abdelrahman Said
6499dd7be9 Rename testing macros 2024-06-03 07:58:24 +01:00
75bbb82058 Add helper macro for running test functions 2024-06-02 23:55:41 +01:00
7fb13f2439 Update compile script to run tests 2024-06-02 23:35:34 +01:00
0b63bc746d Add tests 2024-06-02 23:35:26 +01:00
6ee3c762df Add terminal colour constants 2024-06-02 23:35:04 +01:00
59f1c3eb58 Add testing utilities 2024-06-02 23:34:53 +01:00
55d0c25c90 Reformat 2024-06-02 23:34:38 +01:00
cfc98e0137 Update .gitignore 2024-06-02 21:26:32 +01:00
Abdelrahman Said
32877cdeaa Fix platform detection on Apple platforms 2024-06-02 20:54:20 +01:00
Abdelrahman Said
7e2d7b28b7 Update .gitignore 2024-06-02 20:54:07 +01:00
23886f40e8 Switch to using wapp_mem_util_alloc instead of calloc 2024-06-02 20:42:10 +01:00
57de75c1f8 Set allocation flags per platform 2024-06-02 20:41:30 +01:00
9807334ac9 Complete memory allocation and deallocation function definitions 2024-06-02 20:09:56 +01:00
18448dd7c1 Define memory allocation and deallocation functions 2024-06-02 20:09:08 +01:00
62fdef8601 Add platform detection definitions 2024-06-02 20:08:28 +01:00
61c29ee564 Remove growing_arena and use base_arena 2024-06-02 01:17:03 +01:00
36bc8ab54a Ignore test files 2024-06-02 01:16:46 +01:00
a8e5913254 Add release build and compile test 2024-06-02 01:16:24 +01:00
b59aedad89 Add BasicString and StringView 2024-04-29 23:22:59 +01:00
3f5e3558b9 Add BasicString 2024-04-29 23:06:22 +01:00
bb2db0d30d Return StringUpdate from the dstr update functions 2024-04-29 22:55:40 +01:00