abdelrahman
|
0a00721c10
|
Add codegen as dependency for install target
|
2025-11-08 00:19:07 +00:00 |
|
abdelrahman
|
725955cb2e
|
Allow user to pass code generation input to Makefile
|
2025-11-08 00:06:48 +00:00 |
|
abdelrahman
|
0354c7b485
|
Prefix static macros
|
2025-10-18 16:17:13 +01:00 |
|
abdelrahman
|
9f32891bbc
|
Add test for str8 array
|
2025-09-28 00:05:17 +01:00 |
|
abdelrahman
|
b3ebff3635
|
Remove ABS_INSTALL_PREFIX
|
2025-09-20 15:43:36 +01:00 |
|
 abdelrahmanandAbdelrahman Said
|
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 |
|
abdelrahman
|
09e96f8112
|
Update Makefile
|
2025-09-06 21:27:17 +01:00 |
|
abdelrahman
|
26fd329caa
|
Update codegen to support accepting JSON file as input
|
2025-08-31 20:56:49 +01:00 |
|
abdelrahman
|
1e224702a3
|
Add default target as one of the available targets when make help is run
|
2025-08-31 14:21:55 +01:00 |
|
abdelrahman
|
74cca183e0
|
Make all the default target
|
2025-08-31 14:20:44 +01:00 |
|
abdelrahman
|
e26bf613a5
|
Add support for release builds with debug info and using lib externally
|
2025-08-31 14:17:04 +01:00 |
|
abdelrahman
|
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 |
|
abdelrahman
|
011083ab83
|
Replace bool, true and false with aliases
|
2025-08-09 22:38:03 +01:00 |
|
abdelrahman
|
b8c548ee4b
|
Add static, runtime and debug assert utilities
|
2025-08-09 22:37:55 +01:00 |
|
abdelrahman
|
75be2316e0
|
Add vim encoding and folding marker
|
2025-08-09 14:35:28 +01:00 |
|
abdelrahman
|
74164717d0
|
Fix bug in array codegen
|
2025-05-05 19:15:58 +01:00 |
|
abdelrahman
|
6c8434a530
|
Use asserts in array
|
2025-05-05 20:06:58 +01:00 |
|
abdelrahman
|
cac66b9dbb
|
Use asserts in dbl_list
|
2025-05-05 19:55:42 +01:00 |
|
abdelrahman
|
175f627f93
|
Remove text from asserts
|
2025-05-05 19:29:44 +01:00 |
|
abdelrahman
|
be30189d15
|
Assert uuid argument isn't NULL
|
2025-05-05 19:12:13 +01:00 |
|
abdelrahman
|
3689c17d09
|
Use asserts to validate arguments for Str8
|
2025-05-05 19:08:44 +01:00 |
|
abdelrahman
|
8e952d9bc8
|
Use assert to validate inputs to allocator functions
|
2025-05-05 19:01:10 +01:00 |
|
abdelrahman
|
def7576101
|
Use asserts in arena
|
2025-05-05 18:57:11 +01:00 |
|
abdelrahman
|
3fed536a74
|
Use assert in wapp_mem_util_align_forward instead of returning NULL
|
2025-05-05 18:51:10 +01:00 |
|
abdelrahman
|
aae39fe656
|
Fix MSVC errors
|
2025-05-05 16:41:56 +01:00 |
|
abdelrahman
|
4e3945d1d0
|
Refactor array to avoid having to include external types
|
2025-05-05 16:33:08 +01:00 |
|
abdelrahman
|
98a802e3eb
|
Remove C++ pseudo support
|
2025-05-05 02:48:35 +01:00 |
|
abdelrahman
|
0d4aa7a9c2
|
Modify README.md
|
2025-05-05 02:28:29 +01:00 |
|
abdelrahman
|
a229f9be8c
|
Run codegen on Linux
|
2025-05-05 00:04:24 +01:00 |
|
abdelrahman
|
2156d2ff3a
|
Fix MSVC Spectre warnings
|
2025-05-04 23:59:50 +01:00 |
|
abdelrahman
|
12f083edb0
|
Add code generation for array
|
2025-05-04 23:26:03 +01:00 |
|
abdelrahman
|
f444911452
|
Refactor strings and allocator to primitives
|
2025-05-04 23:25:27 +01:00 |
|
abdelrahman
|
163283f77f
|
Remove unnecessary separate handling for bool type
|
2025-05-04 22:20:38 +01:00 |
|
abdelrahman
|
6064ed346c
|
Ensure arena capacity is a power of 2
|
2025-05-04 18:02:32 +01:00 |
|
abdelrahman
|
77f3c40ebd
|
Add copy array with allocation and finish writing array tests
|
2025-04-27 19:30:14 +01:00 |
|
abdelrahman
|
d3f1686d58
|
Add testing for i32 array to test array logic
|
2025-04-21 17:47:33 +01:00 |
|
abdelrahman
|
a359331df7
|
Complete array implementation before moving it to codegen
|
2025-04-21 17:46:59 +01:00 |
|
abdelrahman
|
14115f7e7e
|
Move rounding up and va_args count to misc_utils
|
2025-04-21 17:46:27 +01:00 |
|
abdelrahman
|
12bd3eb489
|
Add .clangd config file
|
2025-04-21 14:21:40 +01:00 |
|
abdelrahman
|
266d43e262
|
Update Makefile
|
2025-04-21 14:16:54 +01:00 |
|
abdelrahman
|
a568b30163
|
Update snippets
|
2025-04-21 13:52:24 +01:00 |
|
abdelrahman
|
b1773746d8
|
Add missing include
|
2025-04-21 13:45:29 +01:00 |
|
abdelrahman
|
a479a43f4c
|
Reformat
|
2025-04-20 21:32:38 +01:00 |
|
abdelrahman
|
b476ceaeef
|
Fix MSVC Spectre warnings
|
2025-04-20 20:28:02 +01:00 |
|
abdelrahman
|
4d69b97149
|
Add /std:c11 to Windows build
|
2025-04-20 20:20:39 +01:00 |
|
abdelrahman
|
181c4b8614
|
Update xorshift
|
2025-04-20 20:47:20 +01:00 |
|
abdelrahman
|
0d541f6ee8
|
Add aliases.h and platform.h by default in codegen
|
2025-04-20 20:10:10 +01:00 |
|
abdelrahman
|
9e34b37d8d
|
Update codegen with WAPP_PLATFORM_CPP
|
2025-04-20 19:57:57 +01:00 |
|
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 |
|