aboutsummaryrefslogtreecommitdiff
path: root/stdlib/paths.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-16 14:02:53 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-16 14:02:53 -0400
commitb0b3a5f95a70c25a1dcaa43b7a1fb44c782b35c0 (patch)
tree11bdc6b110633556cd352e0e01eb3833e1225bd2 /stdlib/paths.c
parent469b1e067961e021e7860f70919b574c142d1f40 (diff)
Add begin:/end: for do: blocks
Diffstat (limited to 'stdlib/paths.c')
-rw-r--r--stdlib/paths.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stdlib/paths.c b/stdlib/paths.c
index fc823901..fe4bde2e 100644
--- a/stdlib/paths.c
+++ b/stdlib/paths.c
@@ -146,6 +146,7 @@ public Path_t Path$relative_to(Path_t path, Path_t relative_to)
for (; shared < path.components.length && shared < relative_to.components.length; shared++) {
Text_t *p = (Text_t*)(path.components.data + shared*path.components.stride);
Text_t *r = (Text_t*)(relative_to.components.data + shared*relative_to.components.stride);
+ printf("%ld shared: %k vs %r\n", p, r);
if (!Text$equal_values(*p, *r))
break;
}