Commit Graph

40 Commits

Author SHA1 Message Date
9c5b95c229 Change boolean size to 1 byte 2025-12-07 12:17:40 +00:00
0354c7b485 Prefix static macros 2025-10-18 16:17:13 +01:00
14bd6ce5fd File utilities and datatype implementation for a C-based code generator (#5)
Co-authored-by: Abdelrahman Said <said.abdelrahman@flawlessai.com>
Reviewed-on: #5
Co-authored-by: Abdelrahman <said.abdelrahman89@gmail.com>
Co-committed-by: Abdelrahman <said.abdelrahman89@gmail.com>
2025-09-20 13:48:08 +00:00
d3fccd61b5 Reintroduce C++ support and add usage tests for C++ (#4)
Reviewed-on: #4
Co-authored-by: Abdelrahman <said.abdelrahman89@gmail.com>
Co-committed-by: Abdelrahman <said.abdelrahman89@gmail.com>
2025-08-10 22:33:40 +00:00
b8c548ee4b Add static, runtime and debug assert utilities 2025-08-09 22:37:55 +01:00
75be2316e0 Add vim encoding and folding marker 2025-08-09 14:35:28 +01:00
175f627f93 Remove text from asserts 2025-05-05 19:29:44 +01:00
def7576101 Use asserts in arena 2025-05-05 18:57:11 +01:00
3fed536a74 Use assert in wapp_mem_util_align_forward instead of returning NULL 2025-05-05 18:51:10 +01:00
98a802e3eb Remove C++ pseudo support 2025-05-05 02:48:35 +01:00
f444911452 Refactor strings and allocator to primitives 2025-05-04 23:25:27 +01:00
6064ed346c Ensure arena capacity is a power of 2 2025-05-04 18:02:32 +01:00
b884d0e6a6 Switch to using WAPP_PLATFORM_CPP instead of __cplusplus 2025-04-20 19:52:33 +01:00
Abdelrahman Said
4c14588d92 Update core headers and sources to use relative includes 2025-02-24 07:51:08 +00:00
4520f2269d Reorganise memory utilities 2025-02-24 00:21:14 +00:00
f60442bfcf Fix bug with arena allocation on Windows 2025-02-16 14:52:31 +00:00
71b6242f16 Update allocator free to take object size 2025-02-15 23:44:23 +00:00
86fe867011 Reformat 2025-02-09 18:21:36 +00:00
98829b8400 Reformat 2025-02-09 18:19:27 +00:00
7657ad1b58 Remove libc allocator 2025-02-01 21:39:27 +00:00
e9451f10f8 Reformat and increase minimum arena capacity to 4 pages 2024-10-06 12:42:12 +01:00
e431cf729e Reformat 2024-10-05 23:15:03 +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
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
775f0864a8 Rename arena default allocation function 2024-08-23 22:29:56 +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