72 Commits

Author SHA1 Message Date
b476ceaeef Fix MSVC Spectre warnings 2025-04-20 20:28:02 +01:00
b884d0e6a6 Switch to using WAPP_PLATFORM_CPP instead of __cplusplus 2025-04-20 19:52:33 +01:00
2ab3bfc2e1 Fix wrong include 2025-04-20 16:46:31 +01:00
add2ba541d Merge branch 'codegen' 2025-04-19 13:52:27 +01:00
63ed2633ea Update code generation to create one file for dbl_list 2025-04-19 13:33:09 +01:00
Abdelrahman Said
3c32b247c0 Upgrade codegen 2025-04-17 09:03:30 +01:00
Abdelrahman Said
aa04fab6ea Update codegen 2025-04-16 10:05:42 +01:00
Abdelrahman Said
2017f6de79 Start updating code for new Str8List 2025-04-16 08:14:02 +01:00
Abdelrahman Said
31373eba03 Update dbl_list functionality 2025-04-16 00:42:20 +01:00
Abdelrahman Said
778a4da092 Add utility to create list node from item 2025-04-16 00:27:01 +01:00
Abdelrahman Said
6fb078a868 Remove codegen and implement dbl_list as generic container 2025-04-16 00:07:11 +01:00
70e075d2f6 Add message at top of codegen files to avoid overwriting them 2025-03-02 13:42:23 +00:00
e7d2553400 Add code generation for doubly linked list 2025-03-02 13:20:27 +00:00
Abdelrahman Said
4c14588d92 Update core headers and sources to use relative includes 2025-02-24 07:51:08 +00:00
1479c13417 Move os layer to be part of the core 2025-02-24 00:30:25 +00:00
4520f2269d Reorganise memory utilities 2025-02-24 00:21:14 +00:00
6119cf5c5f Improve Str8 macros ergonomics 2025-02-23 23:53:28 +00:00
491c742189 Add single header and single source entries for all components as well as the full library (#2)
Reviewed-on: #2
Co-authored-by: Abdelrahman <said.abdelrahman89@gmail.com>
Co-committed-by: Abdelrahman <said.abdelrahman89@gmail.com>
2025-02-23 15:19:14 +00:00
d9314fb41e Update slice and substr functions 2025-02-22 21:34:29 +00:00
ba5e902a1d Add wapp_str8_push_back and wapp_str8_list_empty 2025-02-22 17:48:04 +00:00
80bd68f313 Add string formatting to Str8 2025-02-22 16:41:05 +00:00
54da75f89f Update comment for wapp_str8_lit_ro_initialiser_list 2025-02-22 15:03:13 +00:00
f89a4bf343 Add wapp_str8_lit_ro_initialiser_list to fix gcc compilation errors 2025-02-22 14:33:15 +00:00
0d795cc0d9 Update wapp_str8_alloc_buf to make a single big allocation 2025-02-22 13:54:03 +00:00
28ac9ed8c8 Modify Str8 substr functionality 2025-02-22 13:39:03 +00:00
99f7dcd794 Rename wapp_str8_buf_alloc to wapp_str8_alloc_buf 2025-02-18 21:02:02 +00:00
a308359942 Add wapp_str8_equal_to_count function 2025-02-16 22:44:18 +00:00
2c9e4c91a0 Add function to copy Str8 to C string buffer 2025-02-16 21:30:25 +00:00
0569fca193 Add str8_copy functions 2025-02-16 17:34:48 +00:00
19134d0e15 Address Windows Spectre mitigation warnings 2025-02-16 14:55:17 +00:00
f60442bfcf Fix bug with arena allocation on Windows 2025-02-16 14:52:31 +00:00
d50b41acac Add str8 split, rsplit, join, concat and concat_capped functions 2025-02-15 23:45:07 +00:00
71b6242f16 Update allocator free to take object size 2025-02-15 23:44:23 +00:00
241edfc7e4 Change Str8Node to use Str8 instead of Str8RO 2025-02-15 20:36:31 +00:00
68fe421ab0 Add Str8List and str8 equality function 2025-02-15 20:29:15 +00:00
023c74d8d9 Add functions to dynamically allocate strings 2025-02-09 18:46:32 +00:00
86fe867011 Reformat 2025-02-09 18:21:36 +00:00
98829b8400 Reformat 2025-02-09 18:19:27 +00:00
093d0daf6f Add find and rfine functions 2025-02-09 16:35:28 +00:00
d1d6a8e64b Add utils for str8 printing 2025-02-09 15:13:50 +00:00
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
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
8f10ac2916 Add string buffer macro and tests for Str8 2024-10-08 23:57:55 +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