diff options
| author | Elis Eriksson <spelis@spelis.li> | 2026-07-01 22:39:28 +0200 |
|---|---|---|
| committer | Elis Eriksson <spelis@spelis.li> | 2026-07-01 22:43:49 +0200 |
| commit | b2a53020c9e19b6eb7c6b18afb940bdcf0b604cf (patch) | |
| tree | 454deffc4365e9d17969d377f13231c06e0c4674 /src/str.h | |
| parent | 29766e048cabc8db71cb735c424e0fdfff468198 (diff) | |
| download | bfc-main.tar bfc-main.tar.gz bfc-main.tar.bz2 bfc-main.tar.lz bfc-main.tar.xz bfc-main.tar.zst bfc-main.zip | |
also omit the lexer entirely, plus the parser type.
Diffstat (limited to 'src/str.h')
| -rw-r--r-- | src/str.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/str.h b/src/str.h deleted file mode 100644 index 416a846..0000000 --- a/src/str.h +++ /dev/null @@ -1,22 +0,0 @@ -#pragma once - -#include <stddef.h> -#include <stdio.h> - -typedef struct { - char *data; - size_t length; - size_t capacity; -} str; - -void free_str(str *s); - -void str_append(str *s, const char *from); -void str_append_c(str *s, char c); -void str_append_len(str *s, const char *from, size_t len); - -void str_append_read(str *s, int fd); -void str_append_fread(str *s, FILE *file); -void str_append_fread_len(str *s, size_t size, FILE *file); - -void str_appendf(str *s, const char *fmt, ...); |
