update
This commit is contained in:
5
app.cpp
5
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<string> args = getArgs(arena, argc, argv);
|
||||
|
||||
print("%S", strSplit(arena, "-"_s, "hallo-world"_s));
|
||||
|
||||
return statusCode;
|
||||
return 0;
|
||||
}
|
||||
|
||||
2
core.cpp
2
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));
|
||||
}
|
||||
|
||||
2
core.h
2
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);
|
||||
|
||||
Reference in New Issue
Block a user