From 827f324acc9d2d02173b042eaeccd1650f91a96c Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Sat, 21 Jun 2025 19:22:32 +0200 Subject: [PATCH] update --- app.cpp | 5 ++--- core.cpp | 2 +- core.h | 2 +- os.cpp | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app.cpp b/app.cpp index e803b90..0d9a646 100644 --- a/app.cpp +++ b/app.cpp @@ -3,12 +3,11 @@ #include "core.h" int main(int argc, char **argv) { - int statusCode = 0; - initialiseCore(); + initialiseDjStdCore(); Arena *arena = arenaAlloc(Megabytes(64)); list args = getArgs(arena, argc, argv); print("%S", strSplit(arena, "-"_s, "hallo-world"_s)); - return statusCode; + return 0; } diff --git a/core.cpp b/core.cpp index 5c632cb..a01ee67 100644 --- a/core.cpp +++ b/core.cpp @@ -46,7 +46,7 @@ void arenaPopTo(Arena *arena, void *position) { Arena *scratchArenas[2]; -void initialiseCore() { +void initialiseDjStdCore() { for (EachInArray(scratchArenas, i)) { scratchArenas[i] = arenaAlloc(Megabytes(64)); } diff --git a/core.h b/core.h index 720e1cf..b7af898 100644 --- a/core.h +++ b/core.h @@ -63,7 +63,7 @@ void arenaFree(Arena *arena); void arenaFreeFrom(Arena *arena, size_t pos); void arenaPopTo(Arena *arena, void *pos); -void initialiseCore(); +void initialiseDjStdCore(); Scratch scratchStart(Arena **conflicts, size_t conflictCount); void scratchEnd(Scratch scratch); diff --git a/os.cpp b/os.cpp index 64a2575..480231e 100644 --- a/os.cpp +++ b/os.cpp @@ -5,7 +5,7 @@ #include "os_win32.cpp" #elif OS_LINUX #include "os_linux.cpp" -#else +#else #error Development environment not supported. #endif