core_library to core

This commit is contained in:
Krzosa Karol
2024-01-28 18:52:01 +01:00
parent 1547ebd5ce
commit 57b61e366f
9 changed files with 5 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
#define _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS
#endif #endif
#include "../core_library/core.c" #include "../core/core.c"
#define CL_Allocator MA_Arena * #define CL_Allocator MA_Arena *
#define CL_Allocate(a, s) MA_PushSizeNonZeroed(a, s) #define CL_Allocate(a, s) MA_PushSizeNonZeroed(a, s)

View File

@@ -3,6 +3,7 @@
leeway for big buffers and other such things. Just make sure to not relay on it because it's easier unless specified. leeway for big buffers and other such things. Just make sure to not relay on it because it's easier unless specified.
- Not sure if we should assume that strings should use allocators or arenas, for now it's arenas because I don't have other use cases - Not sure if we should assume that strings should use allocators or arenas, for now it's arenas because I don't have other use cases
@todo @todo
- Add compiler checking to make sure it's on the path and if it's not message
- Add file, line info to Arenas! - Add file, line info to Arenas!
- Remove static buffers from filesystem, use scratch arenas, more secure, data corruption instead of control flow corruption - Remove static buffers from filesystem, use scratch arenas, more secure, data corruption instead of control flow corruption
- Use allocators instead of concrete Arenas - Use allocators instead of concrete Arenas

View File

@@ -1,4 +1,4 @@
#include "../core_library/core.c" #include "../core/core.c"
int main() { int main() {
MA_Arena arena = {0}; MA_Arena arena = {0};

View File

@@ -36,7 +36,7 @@ void TestLexDir(S8_String dir) {
void TestClexer() { void TestClexer() {
TestLexDir("../standalone_libraries"); TestLexDir("../standalone_libraries");
TestLexDir("../core_library"); TestLexDir("../core");
TestLexDir("../build_tool"); TestLexDir("../build_tool");
TestLexDir("../tests"); TestLexDir("../tests");
} }

View File

@@ -1,4 +1,4 @@
#include "../core_library/core.cpp" #include "../core/core.cpp"
#include "test_table.cpp" #include "test_table.cpp"
#include "test_array.cpp" #include "test_array.cpp"
#include "test_arena.cpp" #include "test_arena.cpp"