Commit Graph

157 Commits

Author SHA1 Message Date
abdelrahman 36e88ba84d Remove old strings implementation 2024-10-06 22:41:43 +01:00
abdelrahman 0617ca2316 Update compile script 2024-10-06 22:06:57 +01:00
abdelrahman 40d301fd95 Reformat 2024-10-06 21:31:04 +01:00
abdelrahman 7d8df816a5 Move cpath to os 2024-10-06 20:04:38 +01:00
abdelrahman 17f0f0eaf3 Fix cpath tests on Windows 2024-10-06 19:54:34 +01:00
abdelrahman ce656a6275 Fix Spectre warnings for MSVC 2024-10-06 19:54:13 +01:00
abdelrahman 8d8fcf9dc5 Improve early exit code in test_cpath 2024-10-06 19:33:13 +01:00
abdelrahman 77e634ec2d Fix comment 2024-10-06 19:30:19 +01:00
abdelrahman 22ece7215a Move path utils to os, fix bugs with it and write tests 2024-10-06 19:28:34 +01:00
abdelrahman 4af4b39d6f Remove unnecessary clang-format comments 2024-10-06 12:59:21 +01:00
abdelrahman a48002996e Reorganise src directory 2024-10-06 12:54:04 +01:00
abdelrahman e9451f10f8 Reformat and increase minimum arena capacity to 4 pages 2024-10-06 12:42:12 +01:00
abdelrahman 1de3608b1f Pass MemInitType to platform functions 2024-10-05 22:30:11 +01:00
abdelrahman 3a25571105 Reformat 2024-10-05 23:18:23 +01:00
abdelrahman 139b4ca589 Restore missing mem_utils code 2024-10-05 23:17:23 +01:00
abdelrahman e431cf729e Reformat 2024-10-05 23:15:03 +01:00
abdelrahman 1d1c3ca928 Split the platform specific mem_utils implementations 2024-10-05 23:05:32 +01:00
abdelrahman f2f155744a Declare external functions for termcolour and commander in the headers 2024-10-05 23:04:35 +01:00
abdelrahman d3a86ec6cb Add extern alias 2024-10-05 23:03:19 +01:00
abdelrahman e053aa44ab Remove unnecessary termcolour header files 2024-10-05 22:28:24 +01:00
abdelrahman a546a09565 Split commander windows and posix implementations 2024-10-05 22:25:21 +01:00
abdelrahman 12f182f0cf Define macros for C linkage 2024-10-05 22:06:13 +01:00
abdelrahman ffb99a3644 Fix MSVC errors and warnings 2024-10-05 20:07:48 +01:00
abdelrahman 1ddc5610f9 Remove aligned_alloc from libc allocator since it's not implemented on Windows 2024-10-05 19:11:13 +01:00
abdelrahman d8c7b3162f Split termcolour implementations by platform and simplify the API 2024-10-05 18:46:14 +01:00
abdelrahman 9e1e4688e4 Reformat 2024-10-05 18:45:32 +01:00
abdelrahman cd38672581 Add test for Arena's reallocation functionality 2024-09-14 17:28:07 +01:00
abdelrahman 7fea236618 Implement reallocation functionality for Arena allocator 2024-09-14 17:27:33 +01:00
abdelrahman 16a1b8fa35 Reformat 2024-09-14 14:49:18 +01:00
abdelrahman a0dfe8acd0 Start implementing realloc functions for Arena allocator 2024-09-14 13:39:59 +01:00
abdelrahman 95c47ec940 Update libc allocator realloc function 2024-09-14 13:39:32 +01:00
abdelrahman 46f32f2ba9 Update signature of realloc functions to expect old and new sizes 2024-09-14 13:38:55 +01:00
abdelrahman 8f794dee15 Reformat 2024-09-07 20:54:49 +01:00
abdelrahman 034b105ea1 Reformat 2024-09-07 20:53:20 +01:00
abdelrahman c90874ad10 Reformat 2024-09-07 20:49:13 +01:00
abdelrahman 8468bb8e28 Reorganise allocators 2024-09-07 20:27:49 +01:00
abdelrahman d30eee0cf8 Add tests for Allocator implementations 2024-09-07 15:43:47 +01:00
abdelrahman 59e56a75d3 Reimplement Allocator API for Arena 2024-09-07 15:43:25 +01:00
abdelrahman 5d6ce1d2c3 Restore libc Allocator implementation 2024-09-07 15:43:00 +01:00
abdelrahman ce537b7494 Restore Allocator implementation 2024-09-07 15:42:36 +01:00
abdelrahman b8f6e5f187 Fix bug in memory allocation function 2024-08-24 19:07:00 +01:00
abdelrahman 775f0864a8 Rename arena default allocation function 2024-08-23 22:29:56 +01:00
abdelrahman 8b6fb23bac Use size utils in arena tests 2024-08-23 21:50:22 +01:00
abdelrahman 1fb340561f Add size utils 2024-08-23 21:48:38 +01:00
abdelrahman 8ed372d938 Ensure stderr is piped to stdout to capture errors in output 2024-06-17 00:18:27 +01:00
abdelrahman 8a91a0ec6b Add tests for the shell commander 2024-06-17 00:15:10 +01:00
abdelrahman 802b70f5ee Add option to discard command output 2024-06-17 00:14:34 +01:00
abdelrahman 92c2439b56 Ensure cleanup on command failure 2024-06-16 23:29:19 +01:00
abdelrahman 781a46713b Add shell commander 2024-06-16 23:19:34 +01:00
abdelrahman 7c4725edef Add shell_utils 2024-06-16 23:18:52 +01:00