~sircmpwn/hare

b392836bcd721b6b04ebcf2575141da483f7e27d — Bor Grošelj Simić a month ago e34c123
all: drop trailing ... in functions that are not variadic
6 files changed, 6 insertions(+), 6 deletions(-)

M cmd/hare/build.ha
M cmd/hare/build/util.ha
M cmd/hare/deps.ha
M cmd/hare/main.ha
M os/os.ha
M temp/+linux.ha
M cmd/hare/build.ha => cmd/hare/build.ha +1 -1
@@ 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);
	};


M cmd/hare/build/util.ha => cmd/hare/build/util.ha +1 -1
@@ 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 =>

M cmd/hare/deps.ha => cmd/hare/deps.ha +1 -1
@@ 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);
	};


M cmd/hare/main.ha => cmd/hare/main.ha +1 -1
@@ 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) {

M os/os.ha => os/os.ha +1 -1
@@ 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.

M temp/+linux.ha => temp/+linux.ha +1 -1
@@ 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;
	};