junie-undo

This commit is contained in:
2025-11-29 11:55:55 -08:00
parent a574df2ab7
commit 0cfb06dff2
9 changed files with 388 additions and 57 deletions

7
abuf.h
View File

@@ -19,11 +19,14 @@ typedef struct abuf {
void ab_init(abuf *buf);
void ab_init_cap(abuf *buf, size_t cap);
void ab_init_str(abuf *buf, const char *s);
void ab_resize(abuf *buf, size_t cap);
void ab_appendch(abuf *buf, char c);
void ab_append(abuf *buf, const char *s, size_t len);
void ab_prependch(abuf *buf, const char c);
void ab_prepend(abuf *buf, const char *s, const size_t len);
void ab_append_ab(abuf *buf, abuf *other);
void ab_prependch(abuf *buf, char c);
void ab_prepend(abuf *buf, const char *s, size_t len);
void ab_prepend_ab(abuf *buf, abuf *other);
void ab_free(abuf *buf);