aboutsummaryrefslogtreecommitdiff
path: root/lib.h
AgeCommit message (Collapse)Author
3 daysImplement SIZE_FMT and vec_append_fmtAryadev Chavali
SIZE_FMT gets the size of a cstr with the given sprintf formatted string and arguments using `snprintf`. vec_append_fmt formats a cstr with the given sprintf arguments then appends it to the given vector. This simplifies a little bit of the wordy implementation of the assembler.
3 daysChange vec_append signature to ensure ptr is constantAryadev Chavali
8 daysIntroduce and implement vec_tAryadev Chavali
A vec_t is a dynamic array, separate to a buffer. Should make it easier to distinguish purposes using these two data types.
8 daysDelete buffer stretchy functionsAryadev Chavali
A buffer should be a strictly sized array representing a file in memory. No dynamic size functions.
8 daysFix MAX macroAryadev Chavali
2024-12-03Moved MEMORY_DEFAULT to lib.hAryadev Chavali
2024-12-03Implement buffer_t functions to make it stretchyAryadev Chavali
2024-12-03Introduce some nice typedefs in lib.hAryadev Chavali
2023-09-02New module for functions I no longer need to work onAryadev Chavali
lib.(h|c) basically has structures and functions I no longer want to stare at in main.c