summaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-23 03:15:40 -0800
committerOri Bernstein <ori@eigenstate.org>2016-01-23 03:15:40 -0800
commita87c06a2b53bbaae033b37327c7e3db0495f23e4 (patch)
treebafcf0b1403ca6a8ea30a9884004dbf6fdd3b74f /lib/std
parent6d5d0ec7ee3480347255a9f469c26c8c34b2819a (diff)
downloadmc-a87c06a2b53bbaae033b37327c7e3db0495f23e4.tar.gz
Move away from ".use" suffix.
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/alloc.myr12
-rw-r--r--lib/std/assert.myr6
-rw-r--r--lib/std/bigint.myr30
-rw-r--r--lib/std/bitset.myr16
-rw-r--r--lib/std/blat.myr4
-rw-r--r--lib/std/chartype.myr4
-rw-r--r--lib/std/clear.myr2
-rw-r--r--lib/std/cmp.myr8
-rw-r--r--lib/std/consts.myr2
-rw-r--r--lib/std/cstrconv.myr2
-rw-r--r--lib/std/dial+plan9.myr22
-rw-r--r--lib/std/dial+posixy.myr30
-rw-r--r--lib/std/die.myr4
-rw-r--r--lib/std/dir+freebsd.myr14
-rw-r--r--lib/std/dir+linux.myr16
-rw-r--r--lib/std/dir+osx.myr14
-rw-r--r--lib/std/dir+plan9.myr16
-rw-r--r--lib/std/diriter.myr6
-rw-r--r--lib/std/dirname.myr16
-rw-r--r--lib/std/env+plan9.myr24
-rw-r--r--lib/std/env+posixy.myr6
-rw-r--r--lib/std/execvp.myr16
-rw-r--r--lib/std/fltfmt.myr20
-rw-r--r--lib/std/fmt.myr44
-rw-r--r--lib/std/fmtfuncs.myr14
-rw-r--r--lib/std/fndup.myr8
-rw-r--r--lib/std/getcwd.myr10
-rw-r--r--lib/std/hashfuncs.myr14
-rw-r--r--lib/std/hasprefix.myr2
-rw-r--r--lib/std/hassuffix.myr2
-rw-r--r--lib/std/htab.myr10
-rw-r--r--lib/std/intparse.myr12
-rw-r--r--lib/std/introspect.myr4
-rw-r--r--lib/std/ipparse.myr24
-rw-r--r--lib/std/memops-impl.myr2
-rw-r--r--lib/std/memops.myr2
-rw-r--r--lib/std/mk.myr2
-rw-r--r--lib/std/mkpath.myr4
-rw-r--r--lib/std/mktemp.myr26
-rw-r--r--lib/std/now.myr4
-rw-r--r--lib/std/optparse.myr24
-rw-r--r--lib/std/pathjoin.myr20
-rw-r--r--lib/std/putint.myr4
-rw-r--r--lib/std/rand.myr12
-rw-r--r--lib/std/resolve+posixy.myr40
-rw-r--r--lib/std/search.myr4
-rw-r--r--lib/std/slcp.myr6
-rw-r--r--lib/std/sldup.myr6
-rw-r--r--lib/std/sljoin.myr4
-rw-r--r--lib/std/slpop.myr4
-rw-r--r--lib/std/slpush.myr4
-rw-r--r--lib/std/slput.myr6
-rw-r--r--lib/std/slurp.myr14
-rw-r--r--lib/std/sort.myr2
-rw-r--r--lib/std/spork.myr12
-rw-r--r--lib/std/strbuf.myr14
-rw-r--r--lib/std/strfind.myr4
-rw-r--r--lib/std/strjoin.myr6
-rw-r--r--lib/std/strsplit.myr18
-rw-r--r--lib/std/strstrip.myr6
-rw-r--r--lib/std/syswrap+plan9-x6.myr2
-rw-r--r--lib/std/syswrap+plan9.myr12
-rw-r--r--lib/std/syswrap+posixy.myr10
-rw-r--r--lib/std/syswrap-ss+freebsd.myr8
-rw-r--r--lib/std/syswrap-ss+linux.myr2
-rw-r--r--lib/std/syswrap-ss+osx.myr8
-rw-r--r--lib/std/syswrap-ss+plan9.myr4
-rw-r--r--lib/std/test/bytebuf.myr8
-rw-r--r--lib/std/try.myr6
-rw-r--r--lib/std/units.myr2
-rw-r--r--lib/std/utf.myr4
-rw-r--r--lib/std/varargs.myr8
-rw-r--r--lib/std/wait+plan9.myr26
-rw-r--r--lib/std/wait+posixy.myr4
-rw-r--r--lib/std/writeall.myr10
75 files changed, 399 insertions, 399 deletions
diff --git a/lib/std/alloc.myr b/lib/std/alloc.myr
index d20c236..dc7f9d1 100644
--- a/lib/std/alloc.myr
+++ b/lib/std/alloc.myr
@@ -1,9 +1,9 @@
-use "die.use"
-use "extremum.use"
-use "types.use"
-use "units.use"
-use "syswrap.use"
-use "memops.use"
+use "die"
+use "extremum"
+use "types"
+use "units"
+use "syswrap"
+use "memops"
/*
The allocator implementation here is based on Bonwick's slab allocator.
diff --git a/lib/std/assert.myr b/lib/std/assert.myr
index 58ad9d3..e413c37 100644
--- a/lib/std/assert.myr
+++ b/lib/std/assert.myr
@@ -1,6 +1,6 @@
-use "fmt.use"
-use "syswrap.use"
-use "varargs.use"
+use "fmt"
+use "syswrap"
+use "varargs"
pkg std =
const assert : (cond : bool, fmt : byte[:], args : ... -> void)
diff --git a/lib/std/bigint.myr b/lib/std/bigint.myr
index bae57b4..7d2fed2 100644
--- a/lib/std/bigint.myr
+++ b/lib/std/bigint.myr
@@ -1,18 +1,18 @@
-use "alloc.use"
-use "chartype.use"
-use "cmp.use"
-use "die.use"
-use "extremum.use"
-use "hasprefix.use"
-use "option.use"
-use "slcp.use"
-use "sldup.use"
-use "slfill.use"
-use "slpush.use"
-use "types.use"
-use "utf.use"
-use "errno.use"
-use "memops.use"
+use "alloc"
+use "chartype"
+use "cmp"
+use "die"
+use "extremum"
+use "hasprefix"
+use "option"
+use "slcp"
+use "sldup"
+use "slfill"
+use "slpush"
+use "types"
+use "utf"
+use "errno"
+use "memops"
pkg std =
type bigint = struct
diff --git a/lib/std/bitset.myr b/lib/std/bitset.myr
index c323194..3d4efb7 100644
--- a/lib/std/bitset.myr
+++ b/lib/std/bitset.myr
@@ -1,11 +1,11 @@
-use "alloc.use"
-use "die.use"
-use "extremum.use"
-use "mk.use"
-use "slcp.use"
-use "sldup.use"
-use "slfill.use"
-use "types.use"
+use "alloc"
+use "die"
+use "extremum"
+use "mk"
+use "slcp"
+use "sldup"
+use "slfill"
+use "types"
pkg std =
type bitset = struct
diff --git a/lib/std/blat.myr b/lib/std/blat.myr
index ed27f97..803f7ec 100644
--- a/lib/std/blat.myr
+++ b/lib/std/blat.myr
@@ -1,5 +1,5 @@
-use "syswrap.use"
-use "result.use"
+use "syswrap"
+use "result"
pkg std =
const blat : (path : byte[:], buf : byte[:], perm : int64 -> bool)
diff --git a/lib/std/chartype.myr b/lib/std/chartype.myr
index fe59202..4185060 100644
--- a/lib/std/chartype.myr
+++ b/lib/std/chartype.myr
@@ -1,5 +1,5 @@
-use "die.use"
-use "types.use"
+use "die"
+use "types"
/*
Tables adapted from plan 9's runetype.c,
diff --git a/lib/std/clear.myr b/lib/std/clear.myr
index c16c851..192a84f 100644
--- a/lib/std/clear.myr
+++ b/lib/std/clear.myr
@@ -1,4 +1,4 @@
-use "slfill.use"
+use "slfill"
pkg std =
generic clear : (p : @a# -> void)
;;
diff --git a/lib/std/cmp.myr b/lib/std/cmp.myr
index 021f5bc..15c4994 100644
--- a/lib/std/cmp.myr
+++ b/lib/std/cmp.myr
@@ -1,7 +1,7 @@
-use "extremum.use"
-use "types.use"
-use "utf.use"
-use "chartype.use"
+use "extremum"
+use "types"
+use "utf"
+use "chartype"
pkg std =
type order = union
diff --git a/lib/std/consts.myr b/lib/std/consts.myr
index 641e93e..63b95a2 100644
--- a/lib/std/consts.myr
+++ b/lib/std/consts.myr
@@ -1,4 +1,4 @@
-use "syswrap.use"
+use "syswrap"
pkg std =
const In : fd = 0
diff --git a/lib/std/cstrconv.myr b/lib/std/cstrconv.myr
index a517e19..de2baac 100644
--- a/lib/std/cstrconv.myr
+++ b/lib/std/cstrconv.myr
@@ -1,4 +1,4 @@
-use "types.use"
+use "types"
pkg std =
const cstrlen : (buf : byte[:] -> size)
diff --git a/lib/std/dial+plan9.myr b/lib/std/dial+plan9.myr
index ca7b6dd..75da35b 100644
--- a/lib/std/dial+plan9.myr
+++ b/lib/std/dial+plan9.myr
@@ -1,16 +1,16 @@
use sys
-use "alloc.use"
-use "die.use"
-use "fmt.use"
-use "option.use"
-use "pathjoin.use"
-use "result.use"
-use "sleq.use"
-use "strfind.use"
-use "strstrip.use"
-use "syswrap.use"
-use "utf.use"
+use "alloc"
+use "die"
+use "fmt"
+use "option"
+use "pathjoin"
+use "result"
+use "sleq"
+use "strfind"
+use "strstrip"
+use "syswrap"
+use "utf"
pkg std =
diff --git a/lib/std/dial+posixy.myr b/lib/std/dial+posixy.myr
index 334e989..d314515 100644
--- a/lib/std/dial+posixy.myr
+++ b/lib/std/dial+posixy.myr
@@ -1,20 +1,20 @@
use sys
-use "alloc.use"
-use "chartype.use"
-use "die.use"
-use "endian.use"
-use "hasprefix.use"
-use "intparse.use"
-use "ipparse.use"
-use "option.use"
-use "resolve.use"
-use "result.use"
-use "sleq.use"
-use "slcp.use"
-use "strfind.use"
-use "syswrap.use"
-use "utf.use"
+use "alloc"
+use "chartype"
+use "die"
+use "endian"
+use "hasprefix"
+use "intparse"
+use "ipparse"
+use "option"
+use "resolve"
+use "result"
+use "sleq"
+use "slcp"
+use "strfind"
+use "syswrap"
+use "utf"
pkg std =
const dial : (dialstr : byte[:] -> result(fd, byte[:]))
diff --git a/lib/std/die.myr b/lib/std/die.myr
index ababd82..be6dd30 100644
--- a/lib/std/die.myr
+++ b/lib/std/die.myr
@@ -1,5 +1,5 @@
-use "syswrap.use"
-use "types.use"
+use "syswrap"
+use "types"
pkg std =
$noret const die : (msg : byte[:] -> void)
diff --git a/lib/std/dir+freebsd.myr b/lib/std/dir+freebsd.myr
index 6190b56..fdfcb3b 100644
--- a/lib/std/dir+freebsd.myr
+++ b/lib/std/dir+freebsd.myr
@@ -1,12 +1,12 @@
use sys
-use "alloc.use"
-use "die.use"
-use "option.use"
-use "result.use"
-use "slcp.use"
-use "sldup.use"
-use "types.use"
+use "alloc"
+use "die"
+use "option"
+use "result"
+use "slcp"
+use "sldup"
+use "types"
pkg std =
type dir = struct
diff --git a/lib/std/dir+linux.myr b/lib/std/dir+linux.myr
index 4ecd5ff..750c7fe 100644
--- a/lib/std/dir+linux.myr
+++ b/lib/std/dir+linux.myr
@@ -1,13 +1,13 @@
use sys
-use "alloc.use"
-use "die.use"
-use "memops.use"
-use "option.use"
-use "result.use"
-use "slcp.use"
-use "sldup.use"
-use "types.use"
+use "alloc"
+use "die"
+use "memops"
+use "option"
+use "result"
+use "slcp"
+use "sldup"
+use "types"
pkg std =
type dir = struct
diff --git a/lib/std/dir+osx.myr b/lib/std/dir+osx.myr
index 28ef26b..ba75b8b 100644
--- a/lib/std/dir+osx.myr
+++ b/lib/std/dir+osx.myr
@@ -1,12 +1,12 @@
use sys
-use "alloc.use"
-use "die.use"
-use "option.use"
-use "result.use"
-use "slcp.use"
-use "sldup.use"
-use "types.use"
+use "alloc"
+use "die"
+use "option"
+use "result"
+use "slcp"
+use "sldup"
+use "types"
pkg std =
type dir = struct
diff --git a/lib/std/dir+plan9.myr b/lib/std/dir+plan9.myr
index ed8caa7..d860d94 100644
--- a/lib/std/dir+plan9.myr
+++ b/lib/std/dir+plan9.myr
@@ -1,13 +1,13 @@
use sys
-use "alloc.use"
-use "die.use"
-use "option.use"
-use "result.use"
-use "slcp.use"
-use "sldup.use"
-use "syswrap.use"
-use "types.use"
+use "alloc"
+use "die"
+use "option"
+use "result"
+use "slcp"
+use "sldup"
+use "syswrap"
+use "types"
pkg std =
type dir = struct
diff --git a/lib/std/diriter.myr b/lib/std/diriter.myr
index bdb6f19..4517ca4 100644
--- a/lib/std/diriter.myr
+++ b/lib/std/diriter.myr
@@ -1,6 +1,6 @@
-use "alloc.use"
-use "dir.use"
-use "option.use"
+use "alloc"
+use "dir"
+use "option"
pkg std =
type diriter = dir#
diff --git a/lib/std/dirname.myr b/lib/std/dirname.myr
index 1b6e66c..175dcaf 100644
--- a/lib/std/dirname.myr
+++ b/lib/std/dirname.myr
@@ -1,11 +1,11 @@
-use "alloc.use"
-use "slcp.use"
-use "die.use"
-use "sldup.use"
-use "strfind.use"
-use "option.use"
-use "types.use"
-use "memops.use"
+use "alloc"
+use "slcp"
+use "die"
+use "sldup"
+use "strfind"
+use "option"
+use "types"
+use "memops"
pkg std =
const dirname : (p : byte[:] -> byte[:])
diff --git a/lib/std/env+plan9.myr b/lib/std/env+plan9.myr
index de65305..79c27ac 100644
--- a/lib/std/env+plan9.myr
+++ b/lib/std/env+plan9.myr
@@ -1,17 +1,17 @@
use sys
-use "alloc.use"
-use "die.use"
-use "extremum.use"
-use "fmt.use"
-use "option.use"
-use "result.use"
-use "slcp.use"
-use "sldup.use"
-use "sleq.use"
-use "slpush.use"
-use "slurp.use"
-use "cstrconv.use"
+use "alloc"
+use "die"
+use "extremum"
+use "fmt"
+use "option"
+use "result"
+use "slcp"
+use "sldup"
+use "sleq"
+use "slpush"
+use "slurp"
+use "cstrconv"
pkg std =
const getenv : (name : byte[:] -> option(byte[:]))
diff --git a/lib/std/env+posixy.myr b/lib/std/env+posixy.myr
index d7b0e5e..09f1e5a 100644
--- a/lib/std/env+posixy.myr
+++ b/lib/std/env+posixy.myr
@@ -1,8 +1,8 @@
use sys
-use "extremum.use"
-use "option.use"
-use "sleq.use"
+use "extremum"
+use "option"
+use "sleq"
pkg std =
const getenv : (name : byte[:] -> option(byte[:]))
diff --git a/lib/std/execvp.myr b/lib/std/execvp.myr
index d8a5119..c719e5c 100644
--- a/lib/std/execvp.myr
+++ b/lib/std/execvp.myr
@@ -1,11 +1,11 @@
-use "alloc.use"
-use "env.use"
-use "errno.use"
-use "fmt.use"
-use "option.use"
-use "strfind.use"
-use "strsplit.use"
-use "syswrap.use"
+use "alloc"
+use "env"
+use "errno"
+use "fmt"
+use "option"
+use "strfind"
+use "strsplit"
+use "syswrap"
pkg std =
const execvp : (cmd : byte[:], args : byte[:][:] -> errno)
diff --git a/lib/std/fltfmt.myr b/lib/std/fltfmt.myr
index 42c0dc6..6378f93 100644
--- a/lib/std/fltfmt.myr
+++ b/lib/std/fltfmt.myr
@@ -1,13 +1,13 @@
-use "alloc.use"
-use "bigint.use"
-use "die.use"
-use "extremum.use"
-use "fltbits.use"
-use "slpush.use"
-use "strbuf.use"
-use "types.use"
-use "utf.use"
-use "memops.use"
+use "alloc"
+use "bigint"
+use "die"
+use "extremum"
+use "fltbits"
+use "slpush"
+use "strbuf"
+use "types"
+use "utf"
+use "memops"
pkg std =
pkglocal const MNormal = 0
diff --git a/lib/std/fmt.myr b/lib/std/fmt.myr
index 5aa50f3..9c803b6 100644
--- a/lib/std/fmt.myr
+++ b/lib/std/fmt.myr
@@ -1,25 +1,25 @@
-use "alloc.use"
-use "chartype.use"
-use "die.use"
-use "extremum.use"
-use "fltfmt.use"
-use "hashfuncs.use"
-use "hasprefix.use"
-use "htab.use"
-use "introspect.use"
-use "intparse.use"
-use "option.use"
-use "result.use"
-use "sleq.use"
-use "slpush.use"
-use "strbuf.use"
-use "strfind.use"
-use "strsplit.use"
-use "syswrap-ss.use"
-use "syswrap.use"
-use "types.use"
-use "utf.use"
-use "varargs.use"
+use "alloc"
+use "chartype"
+use "die"
+use "extremum"
+use "fltfmt"
+use "hashfuncs"
+use "hasprefix"
+use "htab"
+use "introspect"
+use "intparse"
+use "option"
+use "result"
+use "sleq"
+use "slpush"
+use "strbuf"
+use "strfind"
+use "strsplit"
+use "syswrap-ss"
+use "syswrap"
+use "types"
+use "utf"
+use "varargs"
pkg std =
/* write to fd */
diff --git a/lib/std/fmtfuncs.myr b/lib/std/fmtfuncs.myr
index 3bb07f6..a2ad90b 100644
--- a/lib/std/fmtfuncs.myr
+++ b/lib/std/fmtfuncs.myr
@@ -1,10 +1,10 @@
-use "alloc.use"
-use "bigint.use"
-use "bitset.use"
-use "fmt.use"
-use "introspect.use"
-use "strbuf.use"
-use "varargs.use"
+use "alloc"
+use "bigint"
+use "bitset"
+use "fmt"
+use "introspect"
+use "strbuf"
+use "varargs"
pkg std =
;;
diff --git a/lib/std/fndup.myr b/lib/std/fndup.myr
index 250d5d7..81257ac 100644
--- a/lib/std/fndup.myr
+++ b/lib/std/fndup.myr
@@ -1,7 +1,7 @@
-use "alloc.use"
-use "die.use"
-use "sldup.use"
-use "types.use"
+use "alloc"
+use "die"
+use "sldup"
+use "types"
pkg std =
generic fndup : (fn : @fn::function -> @fn::function)
diff --git a/lib/std/getcwd.myr b/lib/std/getcwd.myr
index c9dbbea..9eed2ca 100644
--- a/lib/std/getcwd.myr
+++ b/lib/std/getcwd.myr
@@ -1,9 +1,9 @@
-use "alloc.use"
-use "errno.use"
-use "extremum.use"
-use "syswrap.use"
-use "syswrap-ss.use"
+use "alloc"
+use "errno"
+use "extremum"
+use "syswrap"
+use "syswrap-ss"
pkg std =
const getcwd : (-> byte[:])
;;
diff --git a/lib/std/hashfuncs.myr b/lib/std/hashfuncs.myr
index 8fb6265..414d6cd 100644
--- a/lib/std/hashfuncs.myr
+++ b/lib/std/hashfuncs.myr
@@ -1,10 +1,10 @@
-use "alloc.use"
-use "chartype.use"
-use "die.use"
-use "sleq.use"
-use "slpush.use"
-use "types.use"
-use "utf.use"
+use "alloc"
+use "chartype"
+use "die"
+use "sleq"
+use "slpush"
+use "types"
+use "utf"
pkg std =
const strhash : (s : byte[:] -> uint32)
diff --git a/lib/std/hasprefix.myr b/lib/std/hasprefix.myr
index c9749f6..879118d 100644
--- a/lib/std/hasprefix.myr
+++ b/lib/std/hasprefix.myr
@@ -1,4 +1,4 @@
-use "cmp.use"
+use "cmp"
pkg std =
const hasprefix : (s : byte[:], pre : byte[:] -> bool)
;;
diff --git a/lib/std/hassuffix.myr b/lib/std/hassuffix.myr
index 87369af..6f32d1d 100644
--- a/lib/std/hassuffix.myr
+++ b/lib/std/hassuffix.myr
@@ -1,4 +1,4 @@
-use "sleq.use"
+use "sleq"
pkg std =
const hassuffix : (s : byte[:], suff : byte[:] -> bool)
;;
diff --git a/lib/std/htab.myr b/lib/std/htab.myr
index 0f7384d..8829e1f 100644
--- a/lib/std/htab.myr
+++ b/lib/std/htab.myr
@@ -1,8 +1,8 @@
-use "alloc.use"
-use "die.use"
-use "extremum.use"
-use "option.use"
-use "types.use"
+use "alloc"
+use "die"
+use "extremum"
+use "option"
+use "types"
pkg std =
type htab(@k, @v) = struct
diff --git a/lib/std/intparse.myr b/lib/std/intparse.myr
index 549fb00..815cc3b 100644
--- a/lib/std/intparse.myr
+++ b/lib/std/intparse.myr
@@ -1,9 +1,9 @@
-use "chartype.use"
-use "die.use"
-use "hasprefix.use"
-use "option.use"
-use "types.use"
-use "utf.use"
+use "chartype"
+use "die"
+use "hasprefix"
+use "option"
+use "types"
+use "utf"
pkg std =
generic intparsebase : (s : byte[:], base : int -> option(@a::(integral,numeric)))
diff --git a/lib/std/introspect.myr b/lib/std/introspect.myr
index 1adf987..246ef92 100644
--- a/lib/std/introspect.myr
+++ b/lib/std/introspect.myr
@@ -1,5 +1,5 @@
-use "types.use"
-use "die.use"
+use "types"
+use "die"
pkg std =
type typedesc = union
diff --git a/lib/std/ipparse.myr b/lib/std/ipparse.myr
index 8c6f7c7..00ca42a 100644
--- a/lib/std/ipparse.myr
+++ b/lib/std/ipparse.myr
@@ -1,17 +1,17 @@
-use "die.use"
-use "intparse.use"
-use "option.use"
-use "strfind.use"
-use "types.use"
-use "chartype.use"
-use "fmt.use"
-use "slcp.use"
-use "slfill.use"
-use "sleq.use"
+use "die"
+use "intparse"
+use "option"
+use "strfind"
+use "types"
+use "chartype"
+use "fmt"
+use "slcp"
+use "slfill"
+use "sleq"
/* FIXME: needed for decls which should be pulled in as hidden */
-use "hasprefix.use"
-use "utf.use"
+use "hasprefix"
+use "utf"
pkg std =
diff --git a/lib/std/memops-impl.myr b/lib/std/memops-impl.myr
index 568e8c0..043edf7 100644
--- a/lib/std/memops-impl.myr
+++ b/lib/std/memops-impl.myr
@@ -1,4 +1,4 @@
-use "types.use"
+use "types"
pkg std =
pkglocal const memblit : (dst : byte#, src : byte#, len : std.size -> void)
diff --git a/lib/std/memops.myr b/lib/std/memops.myr
index 58add1e..8559097 100644
--- a/lib/std/memops.myr
+++ b/lib/std/memops.myr
@@ -1,4 +1,4 @@
-use "types.use"
+use "types"
pkg std =
pkglocal extern const memblit : (src : byte#, dst : byte#, len : std.size -> void)
diff --git a/lib/std/mk.myr b/lib/std/mk.myr
index 19b46d2..6fcc09e 100644
--- a/lib/std/mk.myr
+++ b/lib/std/mk.myr
@@ -1,4 +1,4 @@
-use "alloc.use"
+use "alloc"
pkg std =
generic mk : (val : @a -> @a#)
diff --git a/lib/std/mkpath.myr b/lib/std/mkpath.myr
index b766a68..1bff52a 100644
--- a/lib/std/mkpath.myr
+++ b/lib/std/mkpath.myr
@@ -1,5 +1,5 @@
-use "syswrap.use"
-use "errno.use"
+use "syswrap"
+use "errno"
pkg std =
const mkpath : (p : byte[:], mode : int64 -> errno)
diff --git a/lib/std/mktemp.myr b/lib/std/mktemp.myr
index 5231508..e9b5db1 100644
--- a/lib/std/mktemp.myr
+++ b/lib/std/mktemp.myr
@@ -1,16 +1,16 @@
-use "die.use"
-use "alloc.use"
-use "env.use"
-use "errno.use"
-use "fmt.use"
-use "option.use"
-use "pathjoin.use"
-use "memops.use"
-use "rand.use"
-use "result.use"
-use "sldup.use"
-use "syswrap.use"
-use "types.use"
+use "die"
+use "alloc"
+use "env"
+use "errno"
+use "fmt"
+use "option"
+use "pathjoin"
+use "memops"
+use "rand"
+use "result"
+use "sldup"
+use "syswrap"
+use "types"
pkg std =
const mktemp : (base : byte[:], opt : fdopt, mode : int64 -> std.result((fd, byte[:]), errno))
diff --git a/lib/std/now.myr b/lib/std/now.myr
index 5f6d8d1..8edd7cd 100644
--- a/lib/std/now.myr
+++ b/lib/std/now.myr
@@ -1,5 +1,5 @@
-use "types.use"
-use "syswrap.use"
+use "types"
+use "syswrap"
pkg std =
const now : (-> time)
diff --git a/lib/std/optparse.myr b/lib/std/optparse.myr
index 81b0d98..64dcbe0 100644
--- a/lib/std/optparse.myr
+++ b/lib/std/optparse.myr
@@ -1,15 +1,15 @@
-use "alloc.use"
-use "die.use"
-use "extremum.use"
-use "fmt.use"
-use "strbuf.use"
-use "option.use"
-use "sleq.use"
-use "slpush.use"
-use "syswrap-ss.use"
-use "syswrap.use"
-use "types.use"
-use "utf.use"
+use "alloc"
+use "die"
+use "extremum"
+use "fmt"
+use "strbuf"
+use "option"
+use "sleq"
+use "slpush"
+use "syswrap-ss"
+use "syswrap"
+use "types"
+use "utf"
pkg std =
type optdef = struct
diff --git a/lib/std/pathjoin.myr b/lib/std/pathjoin.myr
index f9df8aa..2cc2340 100644
--- a/lib/std/pathjoin.myr
+++ b/lib/std/pathjoin.myr
@@ -1,13 +1,13 @@
-use "alloc.use"
-use "extremum.use"
-use "strjoin.use"
-use "strsplit.use"
-use "sleq.use"
-use "sljoin.use"
-use "sldup.use"
-use "slcp.use"
-use "die.use"
-use "fmt.use"
+use "alloc"
+use "extremum"
+use "strjoin"
+use "strsplit"
+use "sleq"
+use "sljoin"
+use "sldup"
+use "slcp"
+use "die"
+use "fmt"
pkg std =
const pathcat : (a : byte[:], b : byte[:] -> byte[:])
diff --git a/lib/std/putint.myr b/lib/std/putint.myr
index 2bf7b12..7f63b24 100644
--- a/lib/std/putint.myr
+++ b/lib/std/putint.myr
@@ -1,5 +1,5 @@
-use "assert.use"
-use "types.use"
+use "assert"
+use "types"
pkg std =
generic putle64 : (buf : byte[:], v : @a::(numeric,integral) -> size)
diff --git a/lib/std/rand.myr b/lib/std/rand.myr
index 3eb17d1..011fec2 100644
--- a/lib/std/rand.myr
+++ b/lib/std/rand.myr
@@ -1,9 +1,9 @@
-use "die.use"
-use "extremum.use"
-use "assert.use"
-use "types.use"
-use "alloc.use"
-use "now.use"
+use "die"
+use "extremum"
+use "assert"
+use "types"
+use "alloc"
+use "now"
/*
Translated from C by Ori Bernstein
diff --git a/lib/std/resolve+posixy.myr b/lib/std/resolve+posixy.myr
index 0d43cd0..99f5690 100644
--- a/lib/std/resolve+posixy.myr
+++ b/lib/std/resolve+posixy.myr
@@ -1,24 +1,24 @@
use sys
-use "alloc.use"
-use "chartype.use"
-use "die.use"
-use "endian.use"
-use "extremum.use"
-use "hashfuncs.use"
-use "htab.use"
-use "ipparse.use"
-use "option.use"
-use "result.use"
-use "slcp.use"
-use "sldup.use"
-use "sleq.use"
-use "slpush.use"
-use "slurp.use"
-use "strfind.use"
-use "strsplit.use"
-use "strstrip.use"
-use "types.use"
-use "utf.use"
+use "alloc"
+use "chartype"
+use "die"
+use "endian"
+use "extremum"
+use "hashfuncs"
+use "htab"
+use "ipparse"
+use "option"
+use "result"
+use "slcp"
+use "sldup"
+use "sleq"
+use "slpush"
+use "slurp"
+use "strfind"
+use "strsplit"
+use "strstrip"
+use "types"
+use "utf"
pkg std =
type rectype = union
diff --git a/lib/std/search.myr b/lib/std/search.myr
index fa2ae40..3bf93fc 100644
--- a/lib/std/search.myr
+++ b/lib/std/search.myr
@@ -1,5 +1,5 @@
-use "cmp.use"
-use "option.use"
+use "cmp"
+use "option"
pkg std =
generic lsearch : (sl : @t[:], val : @t, cmp : (a : @t, b : @t -> order) -> option(@idx::(integral,numeric)))
diff --git a/lib/std/slcp.myr b/lib/std/slcp.myr
index 5e40702..182e5dc 100644
--- a/lib/std/slcp.myr
+++ b/lib/std/slcp.myr
@@ -1,6 +1,6 @@
-use "die.use"
-use "types.use"
-use "memops.use"
+use "die"
+use "types"
+use "memops"
pkg std =
generic slcp : (a : @a[:], b : @a[:] -> void)
diff --git a/lib/std/sldup.myr b/lib/std/sldup.myr
index 70cbee4..a3b7310 100644
--- a/lib/std/sldup.myr
+++ b/lib/std/sldup.myr
@@ -1,6 +1,6 @@
-use "alloc.use"
-use "die.use"
-use "slcp.use"
+use "alloc"
+use "die"
+use "slcp"
pkg std =
generic sldup : (sl : @a[:] -> @a[:])
diff --git a/lib/std/sljoin.myr b/lib/std/sljoin.myr
index f1fe58a..7fadc27 100644
--- a/lib/std/sljoin.myr
+++ b/lib/std/sljoin.myr
@@ -1,5 +1,5 @@
-use "alloc.use"
-use "slcp.use"
+use "alloc"
+use "slcp"
pkg std =
generic sljoin : (dst : @a[:], src : @a[:] -> @a[:])
diff --git a/lib/std/slpop.myr b/lib/std/slpop.myr
index e45e7b3..9c8f152 100644
--- a/lib/std/slpop.myr
+++ b/lib/std/slpop.myr
@@ -1,5 +1,5 @@
-use "types.use"
-use "alloc.use"
+use "types"
+use "alloc"
pkg std =
generic slpop : (sl : @a[:] -> (@a, @a[:]))
diff --git a/lib/std/slpush.myr b/lib/std/slpush.myr
index b30b1e2..0fa0021 100644
--- a/lib/std/slpush.myr
+++ b/lib/std/slpush.myr
@@ -1,5 +1,5 @@
-use "types.use"
-use "alloc.use"
+use "types"
+use "alloc"
pkg std =
generic slpush : (sl : @a[:], elt : @a -> @a[:])
diff --git a/lib/std/slput.myr b/lib/std/slput.myr
index 88dc875..a912095 100644
--- a/lib/std/slput.myr
+++ b/lib/std/slput.myr
@@ -1,6 +1,6 @@
-use "types.use"
-use "alloc.use"
-use "die.use"
+use "types"
+use "alloc"
+use "die"
pkg std =
generic slput : (sl : @a[:], idx : size, elt : @a -> @a[:])
diff --git a/lib/std/slurp.myr b/lib/std/slurp.myr
index e644a87..849f187 100644
--- a/lib/std/slurp.myr
+++ b/lib/std/slurp.myr
@@ -1,10 +1,10 @@
-use "alloc.use"
-use "die.use"
-use "result.use"
-use "extremum.use"
-use "syswrap.use"
-use "errno.use"
-use "types.use"
+use "alloc"
+use "die"
+use "result"
+use "extremum"
+use "syswrap"
+use "errno"
+use "types"
pkg std =
const slurp : (path : byte[:] -> result(byte[:], errno))
diff --git a/lib/std/sort.myr b/lib/std/sort.myr
index a51731d..c049df5 100644
--- a/lib/std/sort.myr
+++ b/lib/std/sort.myr
@@ -1,4 +1,4 @@
-use "cmp.use"
+use "cmp"
pkg std =
generic sort : (sl:@a[:], cmp:(a:@a, b:@a -> order) -> @a[:])
diff --git a/lib/std/spork.myr b/lib/std/spork.myr
index 4ef525a..57fc1f2 100644
--- a/lib/std/spork.myr
+++ b/lib/std/spork.myr
@@ -1,9 +1,9 @@
-use "die.use"
-use "execvp.use"
-use "fmt.use"
-use "result.use"
-use "syswrap.use"
-use "errno.use"
+use "die"
+use "execvp"
+use "fmt"
+use "result"
+use "syswrap"
+use "errno"
pkg std =
const spork : (cmd : byte[:][:] -> result((pid, fd, fd), errno))
diff --git a/lib/std/strbuf.myr b/lib/std/strbuf.myr
index 54d31f5..85078de 100644
--- a/lib/std/strbuf.myr
+++ b/lib/std/strbuf.myr
@@ -1,10 +1,10 @@
-use "alloc.use"
-use "die.use"
-use "extremum.use"
-use "slcp.use"
-use "types.use"
-use "utf.use"
-use "memops.use"
+use "alloc"
+use "die"
+use "extremum"
+use "slcp"
+use "types"
+use "utf"
+use "memops"
pkg std =
type strbuf = struct
diff --git a/lib/std/strfind.myr b/lib/std/strfind.myr
index 7336b8d..3645f8c 100644
--- a/lib/std/strfind.myr
+++ b/lib/std/strfind.myr
@@ -1,5 +1,5 @@
-use "types.use"
-use "option.use"
+use "types"
+use "option"
pkg std =
const strfind : (haystack : byte[:], needle : byte[:] -> option(size))
diff --git a/lib/std/strjoin.myr b/lib/std/strjoin.myr
index b8dc813..461b795 100644
--- a/lib/std/strjoin.myr
+++ b/lib/std/strjoin.myr
@@ -1,6 +1,6 @@
-use "alloc.use"
-use "die.use"
-use "slcp.use"
+use "alloc"
+use "die"
+use "slcp"
pkg std =
const strcat : (a : byte[:], b : byte[:] -> byte[:])
diff --git a/lib/std/strsplit.myr b/lib/std/strsplit.myr
index f7c30d8..fdea549 100644
--- a/lib/std/strsplit.myr
+++ b/lib/std/strsplit.myr
@@ -1,12 +1,12 @@
-use "alloc.use"
-use "chartype.use"
-use "die.use"
-use "extremum.use"
-use "option.use"
-use "slpush.use"
-use "strfind.use"
-use "types.use"
-use "utf.use"
+use "alloc"
+use "chartype"
+use "die"
+use "extremum"
+use "option"
+use "slpush"
+use "strfind"
+use "types"
+use "utf"
pkg std =
const strsplit : (s : byte[:], delim : byte[:] -> byte[:][:])
diff --git a/lib/std/strstrip.myr b/lib/std/strstrip.myr
index 4f8a539..a974609 100644
--- a/lib/std/strstrip.myr
+++ b/lib/std/strstrip.myr
@@ -1,6 +1,6 @@
-use "types.use"
-use "utf.use"
-use "chartype.use"
+use "types"
+use "utf"
+use "chartype"
pkg std =
const strstrip : (str : byte[:] -> byte[:])
diff --git a/lib/std/syswrap+plan9-x6.myr b/lib/std/syswrap+plan9-x6.myr
index 2559263..cace0e7 100644
--- a/lib/std/syswrap+plan9-x6.myr
+++ b/lib/std/syswrap+plan9-x6.myr
@@ -1,5 +1,5 @@
use sys
-use "types.use"
+use "types"
pkg std =
type fd = sys.fd
diff --git a/lib/std/syswrap+plan9.myr b/lib/std/syswrap+plan9.myr
index 76ef06a..4fd5c7c 100644
--- a/lib/std/syswrap+plan9.myr
+++ b/lib/std/syswrap+plan9.myr
@@ -1,11 +1,11 @@
use sys
-use "option.use"
-use "types.use"
-use "errno.use"
-use "result.use"
-use "cstrconv.use"
-use "strfind.use"
+use "option"
+use "types"
+use "errno"
+use "result"
+use "cstrconv"
+use "strfind"
pkg std =
type fd = sys.fd
diff --git a/lib/std/syswrap+posixy.myr b/lib/std/syswrap+posixy.myr
index b040af5..2526208 100644
--- a/lib/std/syswrap+posixy.myr
+++ b/lib/std/syswrap+posixy.myr
@@ -1,9 +1,9 @@
use sys
-use "cstrconv.use"
-use "errno.use"
-use "option.use"
-use "result.use"
-use "types.use"
+use "cstrconv"
+use "errno"
+use "option"
+use "result"
+use "types"
pkg std =
type fd = sys.fd
diff --git a/lib/std/syswrap-ss+freebsd.myr b/lib/std/syswrap-ss+freebsd.myr
index 15bb6fa..523453f 100644
--- a/lib/std/syswrap-ss+freebsd.myr
+++ b/lib/std/syswrap-ss+freebsd.myr
@@ -1,8 +1,8 @@
use sys
-use "errno.use"
-use "cstrconv.use"
-use "slcp.use"
-use "die.use"
+use "errno"
+use "cstrconv"
+use "slcp"
+use "die"
pkg std =
const exit : (status:int -> void)
diff --git a/lib/std/syswrap-ss+linux.myr b/lib/std/syswrap-ss+linux.myr
index 1982e54..1cdddc4 100644
--- a/lib/std/syswrap-ss+linux.myr
+++ b/lib/std/syswrap-ss+linux.myr
@@ -1,5 +1,5 @@
use sys
-use "errno.use"
+use "errno"
pkg std =
const exit : (status:int -> void)
diff --git a/lib/std/syswrap-ss+osx.myr b/lib/std/syswrap-ss+osx.myr
index 5e7f001..982ca71 100644
--- a/lib/std/syswrap-ss+osx.myr
+++ b/lib/std/syswrap-ss+osx.myr
@@ -1,8 +1,8 @@
use sys
-use "errno.use"
-use "cstrconv.use"
-use "slcp.use"
-use "die.use"
+use "errno"
+use "cstrconv"
+use "slcp"
+use "die"
pkg std =
const exit : (status:int -> void)
diff --git a/lib/std/syswrap-ss+plan9.myr b/lib/std/syswrap-ss+plan9.myr
index 60fefc2..c830b33 100644
--- a/lib/std/syswrap-ss+plan9.myr
+++ b/lib/std/syswrap-ss+plan9.myr
@@ -1,7 +1,7 @@
use sys
-use "errno.use"
-use "cstrconv.use"
+use "errno"
+use "cstrconv"
pkg std =
$noret const exit : (status : int -> void)
diff --git a/lib/std/test/bytebuf.myr b/lib/std/test/bytebuf.myr
index 48f6715..48bbe0e 100644
--- a/lib/std/test/bytebuf.myr
+++ b/lib/std/test/bytebuf.myr
@@ -1,9 +1,9 @@
-use "bytebuf.use"
+use "bytebuf"
/* support */
-use "die.use"
-use "fmt.use"
-use "sleq.use"
+use "die"
+use "fmt"
+use "sleq"
const main = {
var bb, v
diff --git a/lib/std/try.myr b/lib/std/try.myr
index da960ac..4fdda95 100644
--- a/lib/std/try.myr
+++ b/lib/std/try.myr
@@ -1,6 +1,6 @@
-use "result.use"
-use "option.use"
-use "fmt.use"
+use "result"
+use "option"
+use "fmt"
pkg std =
generic try : (v : result(@a, @b) -> @a)
diff --git a/lib/std/units.myr b/lib/std/units.myr
index 4f1d24c..67eab81 100644
--- a/lib/std/units.myr
+++ b/lib/std/units.myr
@@ -1,4 +1,4 @@
-use "types.use"
+use "types"
pkg std =
/* JEDEC 100B.1 memory sizes */
diff --git a/lib/std/utf.myr b/lib/std/utf.myr
index 5923285..54a1ec7 100644
--- a/lib/std/utf.myr
+++ b/lib/std/utf.myr
@@ -1,5 +1,5 @@
-use "die.use"
-use "types.use"
+use "die"
+use "types"
pkg std =
const Badchar : char = -1 castto(char)
diff --git a/lib/std/varargs.myr b/lib/std/varargs.myr
index d7b8362..a9670b1 100644
--- a/lib/std/varargs.myr
+++ b/lib/std/varargs.myr
@@ -1,7 +1,7 @@
-use "types.use"
-use "introspect.use"
-use "sleq.use"
-use "die.use"
+use "types"
+use "introspect"
+use "sleq"
+use "die"
pkg std =
type valist
diff --git a/lib/std/wait+plan9.myr b/lib/std/wait+plan9.myr
index efe1a1c..60d1134 100644
--- a/lib/std/wait+plan9.myr
+++ b/lib/std/wait+plan9.myr
@@ -1,17 +1,17 @@
use sys
-use "alloc.use"
-use "chartype.use"
-use "die.use"
-use "extremum.use"
-use "hashfuncs.use"
-use "hasprefix.use"
-use "htab.use"
-use "intparse.use"
-use "option.use"
-use "strsplit.use"
-use "syswrap.use"
-use "utf.use"
+use "alloc"
+use "chartype"
+use "die"
+use "extremum"
+use "hashfuncs"
+use "hasprefix"
+use "htab"
+use "intparse"
+use "option"
+use "strsplit"
+use "syswrap"
+use "utf"
pkg std =
type waitstatus = union
@@ -91,4 +91,4 @@ const parsestatus = {status -> (waitstatus, pid)
}
const pidhash = {x; -> inthash(x castto(int32))}
-const pideq = {a, b; -> a == b} \ No newline at end of file
+const pideq = {a, b; -> a == b}
diff --git a/lib/std/wait+posixy.myr b/lib/std/wait+posixy.myr
index a690feb..93e019f 100644
--- a/lib/std/wait+posixy.myr
+++ b/lib/std/wait+posixy.myr
@@ -1,7 +1,7 @@
use sys
-use "die.use"
-use "syswrap.use"
+use "die"
+use "syswrap"
pkg std =
type waitstatus = union
diff --git a/lib/std/writeall.myr b/lib/std/writeall.myr
index 7d848c7..9e5ea09 100644
--- a/lib/std/writeall.myr
+++ b/lib/std/writeall.myr
@@ -1,8 +1,8 @@
-use "errno.use"
-use "result.use"
-use "option.use"
-use "syswrap.use"
-use "types.use"
+use "errno"
+use "result"
+use "option"
+use "syswrap"
+use "types"
pkg std =
const writeall : (fd : fd, src : byte[:] -> (size, option(errno)))