Implemented a dynamically sized byte array

Pretty simple, want to ensure amortised constant big O so I use a
REALLOC_MULT, which can be redefined if wished.
This commit is contained in:
2023-10-15 21:49:30 +01:00
parent 98760ee63b
commit c24c1d1607
3 changed files with 94 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ OUT=ovm.out
SRC=src
DIST=build
CODE=$(addprefix $(SRC)/, runtime.c main.c)
CODE=$(addprefix $(SRC)/, darr.c runtime.c main.c)
OBJECTS=$(CODE:$(SRC)/%.c=$(DIST)/%.o)
DEPS=$(OBJECTS:%.o=%.d)