summaryrefslogtreecommitdiff
path: root/mbld/util.myr
diff options
context:
space:
mode:
Diffstat (limited to 'mbld/util.myr')
-rw-r--r--mbld/util.myr16
1 files changed, 8 insertions, 8 deletions
diff --git a/mbld/util.myr b/mbld/util.myr
index 29e325c..9e11a35 100644
--- a/mbld/util.myr
+++ b/mbld/util.myr
@@ -20,17 +20,17 @@ const run = {cmd
printcmd(cmd)
pid = std.fork()
if pid == -1
- std.fatal(1, "could not fork command\n")
+ std.fatal("could not fork command\n")
elif pid == 0
if std.execvp(cmd[0], cmd) < 0
- std.fatal(1, "failed to exec %s\n", cmd[0])
+ std.fatal("failed to exec %s\n", cmd[0])
;;
else
match std.wait(pid)
| `std.Wsuccess: /* nothing */
- | `std.Wfailure: std.fatal(1, "FAIL: \"%s\"\n", std.strjoin(cmd, " "))
- | `std.Wsignalled: std.fatal(1, "CRASH: \"%s\"\n", std.strjoin(cmd, " "))
- | `std.Waiterror: std.fatal(1, "WAT: \"%s\"\n", std.strjoin(cmd, " "))
+ | `std.Wfailure: std.fatal("FAIL: \"%s\"\n", std.strjoin(cmd, " "))
+ | `std.Wsignalled: std.fatal("CRASH: \"%s\"\n", std.strjoin(cmd, " "))
+ | `std.Waiterror: std.fatal("WAT: \"%s\"\n", std.strjoin(cmd, " "))
;;
;;
}
@@ -85,7 +85,7 @@ const srcswapsuffix = {src, new
elif std.sleq(suff, ".s")
-> std.strcat(base, new)
else
- std.fatal(1, "unrecognized source %s\n", src)
+ std.fatal("unrecognized source %s\n", src)
;;
}
@@ -98,7 +98,7 @@ const strlistfree = {sl
const gettarg = {tab, n
match std.htget(tab, n)
- | `std.None: std.fatal(1, "internal: nonexistent %s\n", n)
+ | `std.None: std.fatal("internal: nonexistent %s\n", n)
| `std.Some t: -> t
;;
}
@@ -114,7 +114,7 @@ const setdir = {b, dir
std.put("Entering directory '%s'\n", dir)
if !std.chdir(p)
- std.fatal(1, "could not cd into %s\n", p)
+ std.fatal("could not cd into %s\n", p)
;;
b.curdir = dir
std.slfree(p)