diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-12-28 17:30:04 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-12-28 17:30:04 -0500 |
| commit | fedc4b0ead8f7874120c6e86aaa971a790faea1f (patch) | |
| tree | 2973f9691b72c97a9cc80fd75c4db8e2e2c59e63 /src/parse/utils.c | |
| parent | 469030e9686e81c520c2ecbeab703a07361f51a4 (diff) | |
| parent | cfce376f585e0cd0231e95843617f75bd65b6c07 (diff) | |
Merge branch 'dev' into static-dependencies
Diffstat (limited to 'src/parse/utils.c')
| -rw-r--r-- | src/parse/utils.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/parse/utils.c b/src/parse/utils.c index 26a33e70..bdf59aff 100644 --- a/src/parse/utils.c +++ b/src/parse/utils.c @@ -41,7 +41,9 @@ size_t some_not(const char **pos, const char *forbid) { return len; } -size_t spaces(const char **pos) { return some_of(pos, " \t"); } +size_t spaces(const char **pos) { + return some_of(pos, " \t"); +} void whitespace(parse_ctx_t *ctx, const char **pos) { while (some_of(pos, " \t\r\n") || comment(ctx, pos)) @@ -93,7 +95,9 @@ const char *get_id(const char **inout) { return word; } -PUREFUNC const char *eol(const char *str) { return str + strcspn(str, "\r\n"); } +PUREFUNC const char *eol(const char *str) { + return str + strcspn(str, "\r\n"); +} bool comment(parse_ctx_t *ctx, const char **pos) { if ((*pos)[0] == '#') { |
