aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-12-07 22:57:28 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-12-07 22:57:28 -0500
commit4c5d15115d2d6c08c080d7d4a39efe039658d616 (patch)
treee6183cef477ce83e667cc73702a55d96355ab5a0
parent890d16fae503a5ffbb9f3c3e70e02938b4f55756 (diff)
Add comments
-rw-r--r--src/stdlib/paths.h1
-rw-r--r--src/stdlib/text.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/stdlib/paths.h b/src/stdlib/paths.h
index 4e52866e..881a3c78 100644
--- a/src/stdlib/paths.h
+++ b/src/stdlib/paths.h
@@ -11,6 +11,7 @@
Path_t Path$from_str(const char *str);
Path_t Path$from_text(Text_t text);
+// This function is defined as an extern in `src/stdlib/print.h`
// int Path$print(FILE *f, Path_t path);
// UNSAFE: this works because each type of path has a .components in the same place
#define Path$components(path) ((path).components)
diff --git a/src/stdlib/text.h b/src/stdlib/text.h
index fba8b08f..9ad7441c 100644
--- a/src/stdlib/text.h
+++ b/src/stdlib/text.h
@@ -50,6 +50,7 @@ static inline Text_t Text_from_text(Text_t t) { return t; }
Text_t Text$_concat(int n, Text_t items[n]);
#define Text$concat(...) Text$_concat(sizeof((Text_t[]){__VA_ARGS__}) / sizeof(Text_t), (Text_t[]){__VA_ARGS__})
#define Texts(...) Text$concat(MAP_LIST(convert_to_text, __VA_ARGS__))
+// This function is defined as an extern in `src/stdlib/print.h`
// int Text$print(FILE *stream, Text_t t);
Text_t Text$slice(Text_t text, Int_t first_int, Int_t last_int);
Text_t Text$from(Text_t text, Int_t first);