Commit Graph
100 Commits
Author SHA1 Message Date
abdelrahman b884d0e6a6 Switch to using WAPP_PLATFORM_CPP instead of __cplusplus 2025-04-20 19:52:33 +01:00
abdelrahman 494bbeb398 Update platform cracking 2025-04-20 19:42:45 +01:00
abdelrahman 7605eb4e57 Add C and CPP version macros 2025-04-20 19:39:16 +01:00
abdelrahman 037b0fe698 Enforce C11 with GNU extensions on POSIX platforms 2025-04-20 18:28:17 +01:00
abdelrahman b13274cd81 Add compiler detection macros 2025-04-20 18:27:57 +01:00
abdelrahman 4f9f632362 Update windows build script 2025-04-20 17:28:38 +01:00
abdelrahman 6b039aeac0 Use posix path separator for codegen even on Windows 2025-04-20 16:47:11 +01:00
abdelrahman 2ab3bfc2e1 Fix wrong include 2025-04-20 16:46:31 +01:00
abdelrahman bf99bef291 Support multiple python versions for code generation 2025-04-20 16:23:23 +01:00
abdelrahman 50e23d8a13 Testing ideas for array implementation 2025-04-20 00:21:22 +01:00
abdelrahman 3a49dba366 Generate dbl_list for default C types 2025-04-19 22:17:26 +01:00
abdelrahman 1cfc52b35e Handle pointer types properly in dbl_list codegen 2025-04-19 21:27:00 +01:00
abdelrahman 25395553d7 Fix codegen hidden bugs 2025-04-19 21:11:10 +01:00
abdelrahman 9a651665ba Remove forward declaration from dbl_list source 2025-04-19 20:56:15 +01:00
abdelrahman 8dbdfa2094 Update dbl_list codegen 2025-04-19 20:54:04 +01:00
abdelrahman add2ba541d Merge branch 'codegen' 2025-04-19 13:52:27 +01:00
abdelrahman 63ed2633ea Update code generation to create one file for dbl_list 2025-04-19 13:33:09 +01:00
abdelrahman 0942643b4e Update Makefile 2025-04-13 22:21:55 +01:00
abdelrahman 70e075d2f6 Add message at top of codegen files to avoid overwriting them 2025-03-02 13:42:23 +00:00
abdelrahman 96db885344 Remove codegen as submodule and just add it in place 2025-03-02 13:28:26 +00:00
abdelrahman fb512e4a15 Add code generation for windows 2025-03-02 13:22:05 +00:00
abdelrahman 9361f0fe37 Run code generation for posix platforms 2025-03-02 13:20:51 +00:00
abdelrahman e7d2553400 Add code generation for doubly linked list 2025-03-02 13:20:27 +00:00
abdelrahman 509724cc31 Update .gitignore 2025-03-02 13:17:50 +00:00
abdelrahman b9ea290322 Update posix compile script 2025-02-24 00:30:48 +00:00
abdelrahman 1479c13417 Move os layer to be part of the core 2025-02-24 00:30:25 +00:00
abdelrahman 4520f2269d Reorganise memory utilities 2025-02-24 00:21:14 +00:00
abdelrahman 6119cf5c5f Improve Str8 macros ergonomics 2025-02-23 23:53:28 +00:00
abdelrahman 358f61e556 Reorder tests 2025-02-23 19:27:54 +00:00
abdelrahman 7ac6100a5a Add platform detection to Windows build 2025-02-23 16:26:47 +00:00
abdelrahman 19efb08a3a Add platform detection to posix compilation script 2025-02-23 15:32:13 +00:00
abdelrahman 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
abdelrahman 4f5dd3900f Remove unused join_root_and_leaf 2025-02-22 22:11:51 +00:00
abdelrahman dbedcb3100 Replace char * with Str8 in cpath dirup 2025-02-22 22:09:04 +00:00
abdelrahman d9314fb41e Update slice and substr functions 2025-02-22 21:34:29 +00:00
abdelrahman fe2bb65b06 Fix spectre warning for MSVC 2025-02-22 18:04:05 +00:00
abdelrahman ed4ec54c7a Switch wapp_cpath_join_path to use Str8 2025-02-22 17:48:25 +00:00
abdelrahman ba5e902a1d Add wapp_str8_push_back and wapp_str8_list_empty 2025-02-22 17:48:04 +00:00
abdelrahman 01f066d20c Add test for wapp_str8_format 2025-02-22 16:44:19 +00:00
abdelrahman 80bd68f313 Add string formatting to Str8 2025-02-22 16:41:05 +00:00
abdelrahman cda7e413e2 Rename tester directory 2025-02-22 15:26:40 +00:00
abdelrahman 54da75f89f Update comment for wapp_str8_lit_ro_initialiser_list 2025-02-22 15:03:13 +00:00
abdelrahman 7df64a3168 Fix ASan linking error when compiling with gcc 2025-02-22 14:58:41 +00:00
abdelrahman f9f8f092b5 Fix compilation error in gcc 2025-02-22 14:58:19 +00:00
abdelrahman f89a4bf343 Add wapp_str8_lit_ro_initialiser_list to fix gcc compilation errors 2025-02-22 14:33:15 +00:00
abdelrahman 0d795cc0d9 Update wapp_str8_alloc_buf to make a single big allocation 2025-02-22 13:54:03 +00:00
abdelrahman 28ac9ed8c8 Modify Str8 substr functionality 2025-02-22 13:39:03 +00:00
abdelrahman 99f7dcd794 Rename wapp_str8_buf_alloc to wapp_str8_alloc_buf 2025-02-18 21:02:02 +00:00
abdelrahman c5ca39939d Fix shell commander test on Windows 2025-02-16 22:44:42 +00:00
abdelrahman a308359942 Add wapp_str8_equal_to_count function 2025-02-16 22:44:18 +00:00
abdelrahman a3d9bcf1a1 Update .gitignore 2025-02-16 21:42:14 +00:00
abdelrahman 11949e69be Update shell_commander to use Str8 instead of const char * 2025-02-16 21:31:22 +00:00
abdelrahman 2c9e4c91a0 Add function to copy Str8 to C string buffer 2025-02-16 21:30:25 +00:00
abdelrahman 76b078fbc0 Use str8_copy function in tester 2025-02-16 17:35:10 +00:00
abdelrahman 0569fca193 Add str8_copy functions 2025-02-16 17:34:48 +00:00
abdelrahman 6078e54087 Fix windows bugs 2025-02-16 17:09:40 +00:00
abdelrahman 180425707b Use Str8 instead of const char * in termcolour functions 2025-02-16 16:32:52 +00:00
abdelrahman 62dcfdaa93 Use Str8 instead of const char * in tester functions 2025-02-16 16:32:29 +00:00
abdelrahman 19134d0e15 Address Windows Spectre mitigation warnings 2025-02-16 14:55:17 +00:00
abdelrahman ca2b1cbf23 Reformat 2025-02-16 14:53:29 +00:00
abdelrahman f60442bfcf Fix bug with arena allocation on Windows 2025-02-16 14:52:31 +00:00
abdelrahman a4a1e82c40 Add tests for str8 splitting, joining and concatenation 2025-02-15 23:45:37 +00:00
abdelrahman d50b41acac Add str8 split, rsplit, join, concat and concat_capped functions 2025-02-15 23:45:07 +00:00
abdelrahman 71b6242f16 Update allocator free to take object size 2025-02-15 23:44:23 +00:00
abdelrahman 241edfc7e4 Change Str8Node to use Str8 instead of Str8RO 2025-02-15 20:36:31 +00:00
abdelrahman d635e03cd8 Add tests for Str8List utilities 2025-02-15 20:29:50 +00:00
abdelrahman 68fe421ab0 Add Str8List and str8 equality function 2025-02-15 20:29:15 +00:00
abdelrahman 622a4391a0 Update compile script 2025-02-15 10:49:23 +00:00
abdelrahman ff4d3c9e99 Add tests for string allocation functions 2025-02-09 18:47:10 +00:00
abdelrahman 023c74d8d9 Add functions to dynamically allocate strings 2025-02-09 18:46:32 +00:00
abdelrahman 86fe867011 Reformat 2025-02-09 18:21:36 +00:00
abdelrahman 98829b8400 Reformat 2025-02-09 18:19:27 +00:00
abdelrahman a7e98211f9 Update find and rfind tests 2025-02-09 16:41:29 +00:00
abdelrahman 4642361969 Add tests for find and rfind 2025-02-09 16:35:42 +00:00
abdelrahman 093d0daf6f Add find and rfine functions 2025-02-09 16:35:28 +00:00
abdelrahman f8e0804dd2 Fix unused variable error 2025-02-09 16:34:36 +00:00
abdelrahman fdb0650634 Add -Wextra flag for compilation 2025-02-09 16:34:12 +00:00
abdelrahman d1d6a8e64b Add utils for str8 printing 2025-02-09 15:13:50 +00:00
abdelrahman bbf38499ca Implement read-only string literals 2025-02-09 14:29:54 +00:00
abdelrahman 7657ad1b58 Remove libc allocator 2025-02-01 21:39:27 +00:00
abdelrahman 70399cb797 Change c16 and c32 defintions 2025-02-01 20:21:45 +00:00
abdelrahman 76c3b02e45 Change char type to c8 in Str8 functions 2024-10-17 00:13:35 +01:00
abdelrahman abf9b09495 Implement test for wapp_str8_set 2024-10-17 00:08:08 +01:00
abdelrahman 6d09059911 Change wapp_str8_lit implementation to support mutable string literals 2024-10-17 00:07:30 +01:00
abdelrahman 894ae028b7 Add aliases for character data types 2024-10-17 00:06:56 +01:00
abdelrahman 84a4ec223c Commit the Str8 tests 2024-10-08 23:58:24 +01:00
abdelrahman 8f10ac2916 Add string buffer macro and tests for Str8 2024-10-08 23:57:55 +01:00
abdelrahman bfb4e87a1e Remove extra spaces in aliases.h 2024-10-08 22:45:48 +01:00
abdelrahmanandAbdelrahman Said 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
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