aboutsummaryrefslogtreecommitdiff
path: root/src/parse/utils.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-12-28 17:30:04 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-12-28 17:30:04 -0500
commitfedc4b0ead8f7874120c6e86aaa971a790faea1f (patch)
tree2973f9691b72c97a9cc80fd75c4db8e2e2c59e63 /src/parse/utils.c
parent469030e9686e81c520c2ecbeab703a07361f51a4 (diff)
parentcfce376f585e0cd0231e95843617f75bd65b6c07 (diff)
Merge branch 'dev' into static-dependencies
Diffstat (limited to 'src/parse/utils.c')
-rw-r--r--src/parse/utils.c8
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] == '#') {