|
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 |
|
|
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 |
|
|
7164156c35
|
Simplify Arena
|
2024-04-28 22:59:37 +01:00 |
|
|
e67e1df9a5
|
Rename arena free functions
|
2024-04-28 22:04:23 +01:00 |
|
|
e206b4f4a6
|
Remove Allocator functions from Arena
|
2024-04-24 23:40:10 +01:00 |
|
|
05bfa73509
|
Revert "Simplify Arena allocator"
This reverts commit d4313fb8e4 .
|
2024-04-24 23:18:19 +01:00 |
|
|
d4313fb8e4
|
Simplify Arena allocator
|
2024-04-24 23:10:55 +01:00 |
|
|
92db9206cc
|
Remove complicated memory abstractions
|
2024-04-24 22:51:42 +01:00 |
|
|
6195b521f5
|
Set minimum capacity for arena
|
2024-04-21 23:59:00 +01:00 |
|
|
be64571b0e
|
Pass allocator as const *
|
2024-03-31 17:29:23 +01:00 |
|
|
645686ae22
|
Remove unused variable
|
2024-03-31 17:05:04 +01:00 |
|
|
3f9a908860
|
Address some minor bugs in dstr
|
2024-03-31 17:00:16 +01:00 |
|
|
2e93bd794a
|
Switch to using Allocator in dstr
|
2024-03-31 17:00:01 +01:00 |
|
|
39c88505bd
|
Fix bug with libc allocator where memory was set to 0 on reallocation
|
2024-03-31 16:58:38 +01:00 |
|
|
970c588d66
|
Pass const Arena* to Allocator constuctor instead of Arena*
|
2024-03-25 07:52:49 +00:00 |
|
Abdelrahman Said
|
efe8a104de
|
Add allocator functions
|
2024-03-24 21:06:41 +00:00 |
|
Abdelrahman Said
|
6f799c4330
|
Remove alloc_obj and pass double pointer to free function
|
2024-03-24 21:05:32 +00:00 |
|
Abdelrahman Said
|
8a58a1cc48
|
Implement Allocator wrapper for memory context
|
2024-03-24 20:30:14 +00:00 |
|
Abdelrahman Said
|
03d2a59948
|
Implement Allocator wrapper for Arena
|
2024-03-24 20:25:51 +00:00 |
|
Abdelrahman Said
|
5b8e9f8be6
|
Wrap libc memory functions in Allocator interface
|
2024-03-24 19:25:07 +00:00 |
|
Abdelrahman Said
|
9ec123c41b
|
Start implementing allocator abstraction
|
2024-03-24 19:24:54 +00:00 |
|
Abdelrahman Said
|
7039b5437a
|
Implement memory context realloc function
|
2024-03-24 19:24:36 +00:00 |
|
Abdelrahman Said
|
ca36e0dc35
|
Fix bug in the function that searches for the allocation header
|
2024-03-24 17:24:33 +00:00 |
|
Abdelrahman Said
|
3fdd897291
|
Implement realloc function for Arena
|
2024-03-24 14:57:21 +00:00 |
|
Abdelrahman Said
|
08703b465c
|
Add arena allocation header
|
2024-03-24 13:55:13 +00:00 |
|
Abdelrahman Said
|
49ce26a6c2
|
Switch to using calloc instead of malloc
|
2024-03-24 11:25:52 +00:00 |
|
|
feada0b31c
|
Add -O3 to compile flags
|
2024-03-24 08:10:40 +00:00 |
|
Abdelrahman Said
|
0c07437ef2
|
Implement memory context with main and temp arenas
|
2024-03-24 07:59:46 +00:00 |
|
Abdelrahman Said
|
063bc03974
|
Fix bug with clearing arena function
|
2024-03-24 07:49:49 +00:00 |
|
Abdelrahman Said
|
09af7ec734
|
Update .gitignore
|
2024-03-24 07:21:08 +00:00 |
|
Abdelrahman Said
|
04e86d355d
|
Rename output name in compile script
|
2024-03-24 07:20:50 +00:00 |
|
Abdelrahman Said
|
7bfaf53d4e
|
Return false when initialising arena with 0 capacity
|
2024-03-24 07:15:39 +00:00 |
|
Abdelrahman Said
|
958df4b55a
|
Update .gitignore
|
2024-03-24 07:09:17 +00:00 |
|