hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit b392836bcd721b6b04ebcf2575141da483f7e27d
parent e34c123e1856965f3e44d5d1cce305bef34a5c04
Author: Bor Grošelj Simić <bgs@turminal.net>
Date:   Tue, 16 Apr 2024 02:22:41 +0200

all: drop trailing ... in functions that are not variadic

Diffstat:
Mcmd/hare/build.ha | 2+-
Mcmd/hare/build/util.ha | 2+-
Mcmd/hare/deps.ha | 2+-
Mcmd/hare/main.ha | 2+-
Mos/os.ha | 2+-
Mtemp/+linux.ha | 2+-
6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/cmd/hare/build.ha b/cmd/hare/build.ha @@ -136,7 +136,7 @@ fn build(name: str, cmd: *getopt::command) (void | error) = { }; if (name == "build" && len(cmd.args) > 1) { - getopt::printusage(os::stderr, name, cmd.help...)!; + getopt::printusage(os::stderr, name, cmd.help)!; os::exit(os::status::FAILURE); }; diff --git a/cmd/hare/build/util.ha b/cmd/hare/build/util.ha @@ -55,7 +55,7 @@ fn get_deps(ctx: *context, t: *task) []str = { case stage::S => return alloc([get_cache(ctx, t.idx, stage::SSA)!]...); case stage::O => - let deps = strings::dupall(mod.srcs.s...); + let deps = strings::dupall(mod.srcs.s); append(deps, get_cache(ctx, t.idx, stage::S)!); return deps; case stage::BIN => diff --git a/cmd/hare/deps.ha b/cmd/hare/deps.ha @@ -41,7 +41,7 @@ fn deps(name: str, cmd: *getopt::command) (void | error) = { }; if (len(cmd.args) > 1) { - getopt::printusage(os::stderr, name, cmd.help...)!; + getopt::printusage(os::stderr, name, cmd.help)!; os::exit(os::status::FAILURE); }; diff --git a/cmd/hare/main.ha b/cmd/hare/main.ha @@ -87,7 +87,7 @@ export fn main() void = { defer getopt::finish(&cmd); match (cmd.subcmd) { case void => - getopt::printusage(os::stderr, os::args[0], help...)!; + getopt::printusage(os::stderr, os::args[0], help)!; os::exit(os::status::FAILURE); case let subcmd: (str, *getopt::command) => const task = switch (subcmd.0) { diff --git a/os/os.ha b/os/os.ha @@ -125,7 +125,7 @@ export fn create( path: str, mode: fs::mode, flags: fs::flag = fs::flag::WRONLY | fs::flag::TRUNC, -) (io::file | fs::error) = fs::create_file(cwd, path, mode, flags...); +) (io::file | fs::error) = fs::create_file(cwd, path, mode, flags); // Canonicalizes a path in this filesystem by resolving all symlinks and // collapsing any "." or ".." path components. diff --git a/temp/+linux.ha b/temp/+linux.ha @@ -30,7 +30,7 @@ export fn file(iomode: io::mode, mode: fs::mode) (io::file | fs::error) = { // TODO: Add a custom "close" function which removes the named file match (os::create(get_tmpdir(), mode, oflags)) { case let err: fs::error => - return named(os::cwd, get_tmpdir(), iomode, mode...)?.0; + return named(os::cwd, get_tmpdir(), iomode, mode)?.0; case let f: io::file => return f; };