Commit Graph

31 Commits

Author SHA1 Message Date
6db36114d5 Fix leak in sb_read_file_alloc() 2025-06-18 10:37:45 +02:00
c3be4ce8ee Allow RULE()s with 0 dependencies 2025-06-18 01:50:36 +02:00
d8e1d54f3d Typo 2025-06-16 00:51:00 +02:00
2f9ff2e757 add cmd_run_async() 2025-06-14 22:47:54 +02:00
61e59e6550 Implement cmd_run_XXX variants for running via a file descriptor 2025-06-09 20:10:46 +02:00
9582176638 nsl_join for default allocator 2025-06-09 14:32:12 +02:00
692358fd8a Cleanup after logging command 2025-06-09 14:29:38 +02:00
579c2f34d9 alias nil to NULL 2025-06-02 12:39:50 +02:00
5724c8ffa8 Add sb_read_file() 2025-06-01 23:34:31 +02:00
0ce4a1018e Add shorter types, use nil macro 2025-06-01 23:02:38 +02:00
3cbe43eec4 Only care about POSIX platforms 2025-06-01 21:36:35 +02:00
f2aa836d4f Remove old arena aliases without the prefix 2025-06-01 13:31:17 +02:00
ed39351983 Rework the arena once again... 2025-06-01 13:24:14 +02:00
dd74b7f78a Add an arena out-of-memory handler 2025-06-01 12:47:40 +02:00
5a1fe0521f Add quickstart 2025-06-01 02:07:40 +02:00
6a10cb2847 Add license 2025-06-01 01:57:51 +02:00
3636b08c10 Reimplement the arena 2025-06-01 01:47:47 +02:00
a191abc2b7 Add RULE() macro for conviniently defining build rules 2025-05-31 23:20:41 +02:00
214b2d8a67 Stripping prefixes 2025-05-30 13:47:07 +02:00
3872c0d746 Regenerate compile_flags.txt when build program changes 2025-05-25 22:56:27 +02:00
fe2c4f1cf7 Auto generate compile_flags.txt for clang tools 2025-05-25 22:48:37 +02:00
aad54edf84 gebs_cmd_run_collect() for collecting command output, Add examples/commands.c 2025-05-25 22:02:21 +02:00
11e3ee039a Add GEBS_SHIFT() macro, pass commandline arguments to self after rebuild, add build dep on gebs.h 2025-05-20 23:21:09 +02:00
206b1c4f0a Add gebs_scratch_arena_reset() 2025-05-20 00:08:02 +02:00
c015a4d861 Implement gebs_fmt() as a function 2025-05-20 00:06:05 +02:00
c1e0a5ec35 Account for realloc moving the memory in gebs_arena_realloc() 2025-05-19 23:55:14 +02:00
78732d1aef gebs_needs_rebuild_many() macro 2025-05-19 14:20:10 +02:00
dbe1af7125 Scratch arena, in-place temporary gebs_fmt() macro 2025-05-19 14:09:07 +02:00
c905379d14 Restructure project, add gebs_exists() and gebs_mkdir() 2025-05-19 12:25:08 +02:00
0087c523b5 GEBS_CMD() convinience macro 2025-05-19 11:44:52 +02:00
6cbfd5ca91 Self rebuilding 2025-05-19 00:48:18 +02:00