|
bbf38499ca
|
Implement read-only string literals
|
2025-02-09 14:29:54 +00:00 |
|
|
7657ad1b58
|
Remove libc allocator
|
2025-02-01 21:39:27 +00:00 |
|
|
70399cb797
|
Change c16 and c32 defintions
|
2025-02-01 20:21:45 +00:00 |
|
|
76c3b02e45
|
Change char type to c8 in Str8 functions
|
2024-10-17 00:13:35 +01:00 |
|
|
6d09059911
|
Change wapp_str8_lit implementation to support mutable string literals
|
2024-10-17 00:07:30 +01:00 |
|
|
894ae028b7
|
Add aliases for character data types
|
2024-10-17 00:06:56 +01:00 |
|
|
8f10ac2916
|
Add string buffer macro and tests for Str8
|
2024-10-08 23:57:55 +01:00 |
|
|
bfb4e87a1e
|
Remove extra spaces in aliases.h
|
2024-10-08 22:45:48 +01:00 |
|
|
685682e1c8
|
revamp-strings (#1)
Co-authored-by: Abdelrahman Said <said.abdelrahman@flawlessai.com>
Reviewed-on: #1
Co-authored-by: Abdelrahman <said.abdelrahman89@gmail.com>
Co-committed-by: Abdelrahman <said.abdelrahman89@gmail.com>
|
2024-10-07 22:35:56 +00:00 |
|
|
40d301fd95
|
Reformat
|
2024-10-06 21:31:04 +01:00 |
|
|
7d8df816a5
|
Move cpath to os
|
2024-10-06 20:04:38 +01:00 |
|
|
ce656a6275
|
Fix Spectre warnings for MSVC
|
2024-10-06 19:54:13 +01:00 |
|
|
77e634ec2d
|
Fix comment
|
2024-10-06 19:30:19 +01:00 |
|
|
22ece7215a
|
Move path utils to os, fix bugs with it and write tests
|
2024-10-06 19:28:34 +01:00 |
|
|
4af4b39d6f
|
Remove unnecessary clang-format comments
|
2024-10-06 12:59:21 +01:00 |
|
|
a48002996e
|
Reorganise src directory
|
2024-10-06 12:54:04 +01:00 |
|
|
e9451f10f8
|
Reformat and increase minimum arena capacity to 4 pages
|
2024-10-06 12:42:12 +01:00 |
|
|
1de3608b1f
|
Pass MemInitType to platform functions
|
2024-10-05 22:30:11 +01:00 |
|
|
3a25571105
|
Reformat
|
2024-10-05 23:18:23 +01:00 |
|
|
139b4ca589
|
Restore missing mem_utils code
|
2024-10-05 23:17:23 +01:00 |
|
|
e431cf729e
|
Reformat
|
2024-10-05 23:15:03 +01:00 |
|
|
1d1c3ca928
|
Split the platform specific mem_utils implementations
|
2024-10-05 23:05:32 +01:00 |
|
|
f2f155744a
|
Declare external functions for termcolour and commander in the headers
|
2024-10-05 23:04:35 +01:00 |
|
|
d3a86ec6cb
|
Add extern alias
|
2024-10-05 23:03:19 +01:00 |
|
|
e053aa44ab
|
Remove unnecessary termcolour header files
|
2024-10-05 22:28:24 +01:00 |
|
|
a546a09565
|
Split commander windows and posix implementations
|
2024-10-05 22:25:21 +01:00 |
|
|
12f182f0cf
|
Define macros for C linkage
|
2024-10-05 22:06:13 +01:00 |
|
|
ffb99a3644
|
Fix MSVC errors and warnings
|
2024-10-05 20:07:48 +01:00 |
|
|
1ddc5610f9
|
Remove aligned_alloc from libc allocator since it's not implemented on Windows
|
2024-10-05 19:11:13 +01:00 |
|
|
d8c7b3162f
|
Split termcolour implementations by platform and simplify the API
|
2024-10-05 18:46:14 +01:00 |
|
|
9e1e4688e4
|
Reformat
|
2024-10-05 18:45:32 +01:00 |
|
|
7fea236618
|
Implement reallocation functionality for Arena allocator
|
2024-09-14 17:27:33 +01:00 |
|
|
16a1b8fa35
|
Reformat
|
2024-09-14 14:49:18 +01:00 |
|
|
a0dfe8acd0
|
Start implementing realloc functions for Arena allocator
|
2024-09-14 13:39:59 +01:00 |
|
|
95c47ec940
|
Update libc allocator realloc function
|
2024-09-14 13:39:32 +01:00 |
|
|
46f32f2ba9
|
Update signature of realloc functions to expect old and new sizes
|
2024-09-14 13:38:55 +01:00 |
|
|
8f794dee15
|
Reformat
|
2024-09-07 20:54:49 +01:00 |
|
|
034b105ea1
|
Reformat
|
2024-09-07 20:53:20 +01:00 |
|
|
c90874ad10
|
Reformat
|
2024-09-07 20:49:13 +01:00 |
|
|
8468bb8e28
|
Reorganise allocators
|
2024-09-07 20:27:49 +01:00 |
|
|
59e56a75d3
|
Reimplement Allocator API for Arena
|
2024-09-07 15:43:25 +01:00 |
|
|
5d6ce1d2c3
|
Restore libc Allocator implementation
|
2024-09-07 15:43:00 +01:00 |
|
|
ce537b7494
|
Restore Allocator implementation
|
2024-09-07 15:42:36 +01:00 |
|
|
b8f6e5f187
|
Fix bug in memory allocation function
|
2024-08-24 19:07:00 +01:00 |
|
|
775f0864a8
|
Rename arena default allocation function
|
2024-08-23 22:29:56 +01:00 |
|
|
1fb340561f
|
Add size utils
|
2024-08-23 21:48:38 +01:00 |
|
|
8ed372d938
|
Ensure stderr is piped to stdout to capture errors in output
|
2024-06-17 00:18:27 +01:00 |
|
|
802b70f5ee
|
Add option to discard command output
|
2024-06-17 00:14:34 +01:00 |
|
|
92c2439b56
|
Ensure cleanup on command failure
|
2024-06-16 23:29:19 +01:00 |
|
|
781a46713b
|
Add shell commander
|
2024-06-16 23:19:34 +01:00 |
|
|
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 |
|
|
d9cf98da73
|
Rename print_test_result and exit on any failing function
|
2024-06-09 22:45:27 +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 |
|
|
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 |
|
|
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
|
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 |
|
|
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 |
|
Abdelrahman Said
|
32877cdeaa
|
Fix platform detection on Apple platforms
|
2024-06-02 20:54:20 +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 |
|
|
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 |
|
|
e75846a507
|
Update dstr to use Arena
|
2024-04-29 22:48:10 +01:00 |
|
|
05e56d67ea
|
Reorganise the code
|
2024-04-29 21:42:33 +01:00 |
|