This repo contains libraries for the C9 language. Development of these helper libraries is done here, not in the language spec repo. All libraries are implemented as implementation only, ie no header files. The libraries are not self contained, so make sure you copy all #included files to your project.
arena.c
: Simple growing arena allocatorarray.c
: Dynamic array type and array functionsrandom.c
: Fast pseudo random number generatorstatus.c
: Status code struct typestring.c
: String type and string functionstypes.c
: Basic int and float typestypes_print.c
: Print functions for basic types
The libraries are implemented for direct inclusion in your source files. To use them, copy the .c
files to your tree and include them where you need them:
#include "array.c"
All .c
files have include guards, so you can include them in multiple places without issues.