ed

[hare] The standard editor
Log | Files | Refs | README | LICENSE

commit 5d5c690c2845eb85b51ebeda80fc3e7aa1923bd7
parent ce7729e781922c34e39533ecbc2e37aefb76dcf4
Author: Byron Torres <b@torresjrjr.com>
Date:   Tue, 30 May 2023 21:05:10 +0100

update for getopt::printusage and function types

Diffstat:
Mcommand.ha | 2+-
Mmain.ha | 2+-
Mutil.ha | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/command.ha b/command.ha @@ -20,7 +20,7 @@ type command = struct { subcmds: []command, }; -type commandfn = *fn(_: *session, _: *command) (void | error); +type commandfn = *fn(*session, *command) (void | error); type printmode = enum { NONE, diff --git a/main.ha b/main.ha @@ -137,7 +137,7 @@ export fn main() void = { }; @noreturn fn exit_usage(help: []getopt::help) void = { - getopt::printusage(os::stderr, os::args[0], help); + getopt::printusage(os::stderr, os::args[0], help)!; os::exit(1); }; diff --git a/util.ha b/util.ha @@ -18,7 +18,7 @@ fn debug(fmtstr: str, args: fmt::field...) void = { fmt::errorln("\x1b[m")!; }; -type printer = *fn(_: *buffer, _: size, _: size) (size | io::error); +type printer = *fn(*buffer, size, size) (size | io::error); fn printlns(buf: *buffer, a: size, b: size) (size | io::error) = { let sz = 0z;