b5cf633e98
Updated c_library generation to support latest changes with context struct (also prepped for static/dynamic linkage)
ed2024-12-13 22:09:43 -05:00
16d0e0834f
All global vars (except concepts) have been retrofitetd to the library's new Context struct
ed2024-12-13 20:40:18 -05:00
76ac3a0f93
Introduced the general context struct for gencpp
ed2024-12-13 19:16:52 -05:00
cf0d787196
corrected formatting for gen_segmented
ed2024-12-13 15:44:29 -05:00
8d436fe546
correct formatting in singleheader.cpp
ed2024-12-13 15:42:13 -05:00
e15ac22132
Made Token::Text/Length into Str Text; (Str slice)
ed2024-12-13 15:36:40 -05:00
bac57a5872
Corrected enum serialization of ecodetypes, eoperator, especifier, and etoktype, some more naming refactors for strbuilder... formatting
ed2024-12-13 14:38:27 -05:00
012fcb6bd5
Corrected order of Str to how the slice type is defined in Odin and RAD Debugger (my reference on slice types)
ed2024-12-13 13:20:16 -05:00
6ffdca8595
formatting, fixes from testing latest in Odin fork
ed2024-12-13 11:56:07 -05:00
65c3fabc52
C-library gen progress: Header files mostly done, starting dep c impl and fixes to generic selection generation
ed2024-12-08 16:37:04 -05:00
c016e245eb
still misbehaving (going to try alignas next...)
ed2024-12-07 20:49:43 -05:00
99dbc499fa
WIP: code_types.hpp c_library.cpp conversion (issue with C struct padding on asts)
ed2024-12-07 19:44:58 -05:00
1c133bfc8d
Massive total progress on c_library generation: (Summary of last 3 WIP commits)
ed2024-12-07 17:58:56 -05:00
451b71884c
WIP: Broken af
ed2024-12-07 17:17:02 -05:00
4d638a7255
borken : lots of stuff changed, explaining in later commit...v
ed2024-12-07 00:21:09 -05:00
ceea184d5a
Update to c_library.cpp (now up to ast.hpp)
ed2024-12-06 05:29:36 -05:00
92e0d3ab8b
DId a pass on ast.hpp, types.hpp and helper.hpp for C compatability (unfortuantely clang-format doesn't like my enum macro...
ed2024-12-06 05:29:17 -05:00
266163557f
Finished draft pass verifying containers.array.hpp is equivalent to container.hpp's array.
ed2024-12-05 21:01:04 -05:00
8bb2bc7b1b
fixes on containers (compiles but still verifying parity with c++ templates
ed2024-12-05 17:48:24 -05:00
a3407c14d5
First compiling version of operator overloading for C! (on both msvc and clang using -std=c11 flag, using _Generic selection with some helper macros)
ed2024-12-05 17:04:17 -05:00
47b9c37e94
began to setup generation of Array_ssize and StringTable in the c-library
ed2024-12-05 03:41:08 -05:00
1c3134218e
preogress on getting dependencies compilable in C-library
ed2024-12-05 02:53:14 -05:00
a3e7ec4c72
successful compile of c_library for: platform, macros, basic_types, debug, and memory headers (and newly generated c-code)
ed2024-12-05 00:40:51 -05:00