commit 63ca95ead948e3d1cf12269ded8c16fee8f58a8d
parent 39d2f22f126ad91ece46cc7f9a6f7f76acf869d5
Author: Sebastian <sebastian@sebsite.pw>
Date: Fri, 13 May 2022 22:22:19 -0400
hare::module: rename parse_name to parsename
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/cmd/hare/plan.ha b/cmd/hare/plan.ha
@@ -83,7 +83,7 @@ fn mkplan(ctx: *module::context, libs: []str) plan = {
defer os::finish(iter);
for (true) match (fs::next(iter)) {
case let d: fs::dirent =>
- const p = module::parse_name(d.name);
+ const p = module::parsename(d.name);
const name = p.0, ext = p.1, tags = p.2;
defer module::tags_free(tags);
diff --git a/hare/module/manifest.ha b/hare/module/manifest.ha
@@ -161,7 +161,7 @@ export fn manifest_load(ctx: *context, ident: ast::ident) (manifest | error) = {
return manifest;
};
- let parsed = parse_name(path);
+ let parsed = parsename(path);
let ftype = match (type_for_ext(path)) {
case void =>
return manifest;
diff --git a/hare/module/scan.ha b/hare/module/scan.ha
@@ -95,7 +95,7 @@ export fn scan(ctx: *context, path: str) (version | error) = {
// Given a file or directory name, parses it into the basename, extension, and
// tag set.
-export fn parse_name(name: str) (str, str, []tag) = {
+export fn parsename(name: str) (str, str, []tag) = {
let ext = path::extension(name);
let base = ext.0, ext = ext.1;
@@ -196,7 +196,7 @@ fn scan_directory(
for (let i = 0z; i < len(dirs); i += 1) {
let name = dirs[i];
- let parsed = parse_name(name);
+ let parsed = parsename(name);
let base = parsed.0, tags = parsed.2;
if (!strings::hasprefix(name, "+")
@@ -240,7 +240,7 @@ fn scan_directory(
for (let i = 0z; i < len(files); i += 1) {
let name = files[i];
- let parsed = parse_name(name);
+ let parsed = parsename(name);
let base = parsed.0, ext = parsed.1, tags = parsed.2;
let eligible = false;