summaryrefslogtreecommitdiff
path: root/mbld/deps.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-07-17 15:30:01 -0700
committerOri Bernstein <ori@markovcorp.com>2017-07-17 15:30:01 -0700
commit492aca3ff6f829ee09c52e17c86a808430ee7df4 (patch)
treef97424e14c9d3277c78ff53082daec725e1f4dcb /mbld/deps.myr
parent11f79ed8ff75049f6b1866d70bc032c8d18b1463 (diff)
downloadmc-492aca3ff6f829ee09c52e17c86a808430ee7df4.tar.gz
Convert from `in` to `:`.
The winds of change are a-blowin.
Diffstat (limited to 'mbld/deps.myr')
-rw-r--r--mbld/deps.myr20
1 files changed, 10 insertions, 10 deletions
diff --git a/mbld/deps.myr b/mbld/deps.myr
index 506fffa..e501983 100644
--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -111,7 +111,7 @@ const swapall = {srcs, suff
var sl
sl = [][:]
- for s in srcs
+ for s : srcs
std.slpush(&sl, srcswapsuffix(s, suff))
;;
-> sl
@@ -125,8 +125,8 @@ const dumpgraph = {dg
;;
keys = std.htkeys(dg.deps)
mbldput("digraph dg {{\n")
- for k in keys
- for v in std.htgetv(dg.deps, k, ["WTFUNKNOWN!"][:])
+ for k : keys
+ for v : std.htgetv(dg.deps, k, ["WTFUNKNOWN!"][:])
mbldput("\t\"{}\" -> \"{}\";\n", k, v)
;;
;;
@@ -143,14 +143,14 @@ const srcdeps = {b, ds, g, path, obj, usefile
std.slpush(&ds.depstk, path)
if std.htgetv(g.seen, path, false)
std.fput(1, "dependency loop involving {}:\n", path)
- for d in ds.depstk
+ for d : ds.depstk
std.fput(1, "\t{}\n", d)
;;
std.exit(1)
;;
deps = getdeps(b, ds, path, std.dirname(path))
std.htput(g.seen, path, true)
- for d in deps
+ for d : deps
match d
| `Lib (lib, lnum):
/*
@@ -233,7 +233,7 @@ const getcflags = {ln, cflags, libs
| `std.None:
| `std.Some m:
flags = std.strtok(m[1])
- for fl in flags
+ for fl : flags
std.slpush(&cflags, std.sldup(fl))
;;
std.slfree(flags)
@@ -244,7 +244,7 @@ const getcflags = {ln, cflags, libs
| `std.None:
| `std.Some m:
flags = std.strtok(m[1])
- for fl in flags
+ for fl : flags
std.slpush(&libs, std.sldup(fl))
;;
std.slfree(flags)
@@ -358,7 +358,7 @@ const scrapelibs = {dg, lib, incs
;;
bio.close(f)
std.htput(dg.libs, lib, deps)
- for dep in deps
+ for dep : deps
scrapelibs(dg, dep, incs)
;;
}
@@ -366,7 +366,7 @@ const scrapelibs = {dg, lib, incs
const openlib = {lib, incs
var path, libname
- for p in incs
+ for p : incs
libname = std.fmt("lib{}.use", lib)
path = std.pathjoin([p, libname][:])
std.slfree(libname)
@@ -399,7 +399,7 @@ const openlib = {lib, incs
;;
std.fput(std.Err, "could not find library {}\n", lib)
std.fput(std.Err, "search path is:\n")
- for p in incs
+ for p : incs
std.fput(std.Err, "\t{}\n", p)
;;
std.fput(std.Err, "\t{}\n", config.Libpath)